Hacking Gmail

(Grace) #1

Chapter 7 — Gmail Libraries 129


Function What It Does


edit_labels( label => Deletes the label ‘label_name’.
‘label_name’, action =>
‘delete’ );


edit_labels( label => Adds a label to a message.
‘label_name’, action =>
‘add’, msgid =>
$message_id );


$gmail->edit_labels Removes a label from a message.
( label => ‘label_name’,
action => ‘remove’,
msgid => $message_id );


update_prefs Sets preferences inside Gmail. The available options are:
( indicators => 0, keyboard_shortcuts = ( 0, 1 )
reply_to => indicators = ( 0, 1 )
[email protected]’ ); snippets = ( 0, 1 )
max_page_size = ( 25, 50, 100 )
display_name = ( ‘’, string value up to 96
characters )
reply_to = ( ‘’, string value up to 320
characters )
signature = ( ‘’, string value up to 1000
characters )


edit_star( action => Stars a message.
‘add’, ‘msgid’ =>
$msgid );


edit_star( action => Unstars the message.
‘remove’, ‘msgid’ =>
$msgid );


edit_archive( action => Archives the message.
‘archive’, ‘msgid’ =>
$msgid );


edit_archive( action => Unarchives the message.
‘unarchive’, ‘msgid’ =>
$msgid );


Continued
Free download pdf