Important Announcement
PubHTML5 Scheduled Server Maintenance on (GMT) Sunday, June 26th, 2:00 am - 8:00 am.
PubHTML5 site will be inoperative during the times indicated!

Home Explore Hacking_Gmail_2006

Hacking_Gmail_2006

Published by THE MANTHAN SCHOOL, 2021-07-06 06:20:13

Description: Hacking_Gmail_2006

Search

Read the Text Version

fstab, mounting GmailFS from, 217 Index ■ F–G 277 functions, 128–131 FUSE (File System in Userspace), 215 bool fetchContact( ) method, 119 bool getAttachment( ) method, 120 G bool isconnected( ) method, 119 bool performAction( ) method, 120 g then a keyboard shortcut, 19 bool send( ) method, 120 g then c keyboard shortcut, 19 box_name property, 123 g then d keyboard shortcut, 19 box_pos property, 123 g then i keyboard shortcut, 19 box_total property, 123 g then s keyboard shortcut, 19 constants, 122–123 Gan, Yin Hung (Gmailer), 118 contacts_all property, 125 gCount (Spindel), 5 contacts_freq property, 125 getAllResponseHeaders( ) method, 59 conv_id property, 124 get_contacts( ) function, 130 conv_labels property, 124 get_indv_email( ) function, 130 conv_starred property, 124 get_labels( ) function, 128 conv_title property, 124 getMessagesByFolder method, 133 conv_total property, 124 getMessagesByLabel method, 133 downloading, 118 getMessagesByQuery method, 133 first message in inbox, reading, 126 get_mime_email( ) function, 130 GM_ACT_APPLYLABEL constant, 122 getQuotaInfo method, 134 GM_ACT_ARCHIVE constant, 122 getResponseHeader( ) method, 60 GM_ACT_DELFOREVER constant, 123 getUnreadMsgCount method, 134 GM_ACT_INBOX constant, 122 GM_ACT_APPLYLABEL constant, 122 GM_ACT_READ constant, 122 GM_ACT_ARCHIVE constant, 122 GM_ACT_REMOVELABEL constant, 122 GM_ACT_DELFOREVER constant, 123 GM_ACT_SPAM constant, 122 GM_ACT_INBOX constant, 122 GM_ACT_STAR constant, 122 GM_ACT_READ constant, 122 GM_ACT_TRASH constant, 123 GM_ACT_REMOVELABEL constant, 122 GM_ACT_UNREAD constant, 122 GM_ACT_SPAM constant, 122 GM_ACT_UNSPAM constant, 122 GM_ACT_STAR constant, 122 GM_ACT_UNSTAR constant, 122 GM_ACT_TRASH constant, 123 GM_ACT_UNTRASH constant, 123 GM_ACT_UNREAD constant, 122 GMailSnapshot get Snapshot( ) method, 120 GM_ACT_UNSPAM constant, 122 gmail_ver property, 123 GM_ACT_UNSTAR constant, 122 GM_CONTACT constant, 122 GM_ACT_UNTRASH constant, 123 GM_CONVERSATION constant, 122 Gmail Lite, 45 GM_LABEL constant, 122 Gmail Loader (Lyon), 11–12 GM_QUERY constant, 122 Gmail SMTP GM_STANDARD constant, 122 GM_USE_COOKIE constant, 123 attachments, sending, 166 GM_USE_PHPSESSION constant, 123 direct use of Gmail SMTP, 162 have_invit property, 123 Mail::Webmail::Gmail and, 162–166 inbox, retrieval of, 121–122 overview, 161–162 installation of, 118 Perl and, 162–166 label_list property, 123 unread mail, reading and replying to, 163–166 label_new property, 123 Gmailer logging in with, 120–121 array getAttachmentsOf( ) method, 120 methods for, 119–120 array getStandardBox( ) method, 120 overview, 118 bool connect( ) method, 119 quota_mb property, 123 bool connectNoCookie( ) method, 119 quota_per property, 123 bool fetch( ) method, 119 Snapshots, 123–124 bool fetchBox( ) method, 119 std_box_new property, 123 Continued

278 Index ■ G–H Gmailer (continued) installation of, 92 string dump( ) method, 120 MailtoComposeInGmail, 110–114 using, 119–126 mark read button, 114–115 void disconnect( ) method, 120 multiple signatures, 115 void setLoginInfo method, 119 random signatures, 115 void setProxy method, 119 Guenther, Carsten (GmailStatus), 5 void setSessionMethod method, 119 Gzip encoding, 64 GmailerXP, 8 H GmailFS hard link, 219 command line, mounting GmailFS from, 216–217 has:attachment operator, 24 datablock messages, 220 have_invit property, 123 directory messages, 220 header, 179 drives, using multiple, 217 heartbeat, Gmail’s unencoded, 65–66 e-mail used to represent all data, 220 hiding invites, userscript for, 115 file entry messages, 220 Holman, Allen (Mail::Webmail::Gmail), 127 file, identifying a, 218–219 HTML code. See also HTML version of Gmail file system, passing commands to, 217 fstab, mounting GmailFS from, 217 for bottom section of screen, 43–44 FUSE, installing, 215 for central activity area, 39–42 how it works, 218 long code listings inode messages, 220 installation of, 213–215 boot sequence, edited, 243–257 Libgmail, installing, 215 CSS listing, complete, 238–242 overview, 213, 218 HTML-only Gmail inbox source, 258–266 Python 2.3 needed for, 213–214 inbox, displaying, 223–238 use of, 216–217 individual message page with only one message, GmailFS ( Jones), 213 GmailSecure, 108–110 266–274 GMailSnapshot get Snapshot( ) method, 120 for navigation menu, 36–38 GmailStatus, 8 for top section of screen, 34–35 GmailStatus (Guenther), 5 XMLHttpRequest, 56–59 Gmailto, 8 HTML version of Gmail gmail_ver property, 123 All Mail folder, 196 GM_CONTACT constant, 122 Drafts folder, 196 GM_CONVERSATION constant, 122 HTML::TokeParser GM_LABEL constant, 122 GM_QUERY constant, 122 folders and, 195–196 GM_STANDARD constant, 122 inbox, parsing, 188–192 gmtodo (Miller), 205 individual page, retrieving, 192–194 GM_USE_COOKIE constant, 123 overview, 186–188 GM_USE_PHPSESSION constant, 123 threads and, 195 Goollery, 210 Inbox folder, 196 Greasemonkey overview, 183 installation of, 91 scraping overview, 91–92 HTML::TokeParser, 186–194 userscripts overview, 186 Sent Mail folder, 196 Bloglines, displaying, 92–100 Spam folder, 196 Delete button, adding, 101–108 Starred folder, 196 GmailSecure, 108–110 Trash folder, 196 hide invites, 115 viewing, 183–185 how it works, 100–101 HTML::TokeParser HTTPS, forcing Gmail to use, 108–110 folders and, 195–196 inbox, parsing, 188–192 individual page, retrieving, 192–194

Index ■ H–L 279 overview, 186–188 navigation menu threads and, 195 HTML code for, 36–38 HTTPS, forcing Gmail to use, 108–110 overview, 35–36 hyphen (-) operator, 24 overview, 29–33 I preloading, 54 top section of screen IMAP (Internet Message Access Protocol) exporting mail to, 200–201 HTML code for, 34–35 integration into your existing mail accounts, 14 overview, 33–34 Internet Message Access Protocol (IMAP) importing contacts, 178–179 exporting mail to, 200–201 importing your mail into Gmail integration into your existing mail accounts, 14 in:trash operator, 25 with Gmail Loader, 11–12 is:read operator, 25 overview, 11 is:starred operator, 25 in:anywhere operator, 25 is:unread operator, 25 inbox loading, 74–80 J long code listings for, 223–238 parsing, 188–192 j keyboard shortcut, 18 retrieval of, 121–122 Jones, Richard (GmailFS), 213 Inbox folder, 196 individual message page with only one message, long code K listings for, 266–274 keyboard shortcuts individual page, retrieving, 192–194 a key, 19 in:inbox operator, 25 / (backslash) key, 18 inode, 219 c key, 18 inode messages, 220 combo-keys shortcuts, 19 in:spam operator, 25 Enter key, 18 installation esc key, 19 ! (exclamation) key, 19 of FUSE, 215 f key, 19 of Gmailer, 118 g then a keys, 19 of Greasemonkey, 91 g then c keys, 19 of Libgmail, 132, 215 g then d keys, 19 of Mail::Webmail::Gmail, 127 g then i keys, 19 integration into your existing mail accounts g then s keys, 19 IMAP and, 14 j key, 18 importing your mail into Gmail k key, 18 n key, 18 with Gmail Loader, 11–12 overview, 15–17 overview, 11 p key, 18 Pop mail access, setting up, 12–14 r key, 19 interface s key, 19 bottom section of screen spam filters and, 17 HTML code for, 43–44 tab then enter keys, 19 overview, 42–43 u key, 18 central activity area x key, 19 HTML code for, 39–42 y key, 18 overview, 38 y then o keys, 19 Delete button, adding, 101–108 with DOM inspector, 29–33 L HTML code for bottom section, 43–44 label: operator, 24 central activity area, 39–42 label_list property, 123 navigation menu, 36–38 label_new property, 123 top section, 34–35

280 Index ■ L labels GM_ACT_ARCHIVE constant, 122 existing labels GM_ACT_DELFOREVER constant, 123 certain label, retrieving messages from, 170–171 GM_ACT_INBOX constant, 122 listing, 169–173 GM_ACT_READ constant, 122 retrieving a labeled message and replying, 171–173 GM_ACT_REMOVELABEL constant, 122 new labels GM_ACT_SPAM constant, 122 creating, 175 GM_ACT_STAR constant, 122 unlabeled messages, labeling, 173–174 GM_ACT_TRASH constant, 123 overview, 80, 169 GM_ACT_UNREAD constant, 122 removing labels, 175–176 GM_ACT_UNSPAM constant, 122 GM_ACT_UNSTAR constant, 122 Lawton, Jim (mark read button), 115 GM_ACT_UNTRASH constant, 123 Lefort, Jean-Yves (Mail Notification), 6 Libgmail GMailSnapshot get Snapshot( ) checking for mail, 139–140 method, 120 downloading, 131 gmail_ver property, 123 first message in inbox, reading, 134–135 GM_CONTACT constant, 122 getMessagesByFolder method, 133 GM_CONVERSATION constant, 122 getMessagesByLabel method, 133 GM_LABEL constant, 122 getMessagesByQuery method, 133 GM_QUERY constant, 122 getQuotaInfo method, 134 GM_STANDARD constant, 122 getUnreadMsgCount method, 134 GM_USE_COOKIE constant, 123 gmtodo, 205 GM_USE_PHPSESSION constant, 123 installation of, 132, 215 have_invit property, 123 login method, 132 inbox, retrieval of, 121–122 overview, 131 installation of, 118 using, 132–135 label_list property, 123 libraries label_new property, 123 Gmailer logging in with, 120–121 methods for, 119–120 array getAttachmentsOf( ) method, 120 overview, 118 array getStandardBox( ) method, 120 quota_mb property, 123 bool connect( ) method, 119 quota_per property, 123 bool connectNoCookie( ) method, 119 Snapshots, 123–124 bool fetch( ) method, 119 std_box_new property, 123 bool fetchBox( ) method, 119 string dump( ) method, 120 bool fetchContact( ) method, 119 using, 119–126 bool getAttachment( ) method, 120 void disconnect( ) method, 120 bool isconnected( ) method, 119 void setLoginInfo method, 119 bool performAction( ) method, 120 void setProxy method, 119 bool send( ) method, 120 void setSessionMethod method, 119 box_name property, 123 Libgmail box_pos property, 123 downloading, 131 box_total property, 123 first message in inbox, reading, 134–135 constants, 122–123 getMessagesByFolder method, 133 contacts_all property, 125 getMessagesByLabel method, 133 contacts_freq property, 125 getMessagesByQuery method, 133 conv_id property, 124 getQuotaInfo method, 134 conv_labels property, 124 getUnreadMsgCount method, 134 conv_starred property, 124 installation of, 132 conv_title property, 124 login method, 132 conv_total property, 124 overview, 131 downloading, 118 using, 132–135 first message in inbox, reading, 126 GM_ACT_APPLYLABEL constant, 122

Index ■ L–M 281 Mail::Webmail::Gmail Mail Notification (Lefort), 6 delete_message( ) function, 131 MailFolder module, 136 downloading, 127 Mail::Folder::Mbox module, 199 edit_archive( ) function, 129 Mail::Internet module, 199 edit_labels( ) function, 128–129 mailto: link redirection edit_star( ) function, 129 functions, 128–131 in Mac OS X, 8 get_contacts( ) function, 130 for Mozilla, 7–8 get_indv_email( ) function, 130 for multiplatform, 7–8 get_labels( ) function, 128 overview, 6 get_mime_email( ) function, 130 in Windows, 7 installation of, 127 MailtoComposeInGmail, 110–114 logging in, 128 MailtoComposeInGmail (Couvreur), 111 overview, 127 Mail::Webmail::Gmail send_message( ) function, 131 all data of a message, accessing, 152 size_usage( ) function, 130 AOL Instant Messenger, new mail count to, 144–149 update_prefs( ) function, 129 attachments, 155 using, 128–131 delete_message( ) function, 131 downloading, 127 overview, 117 edit_archive( ) function, 129 Perl edit_labels( ) function, 128–129 edit_star( ) function, 129 libwww-perl module, 136 functions, 128–131 MailFolder module, 136 get_contacts( ) function, 130 MD5 module, 136 get_indv_email( ) function, 130 MIME-Base64 module, 136 get_labels( ) function, 128 MIME-tools module, 136 get_mime_email( ) function, 130 Utils.pm module, 135 installation of, 127 for PHP coders, 118–126 listing mail and displaying chosen message, 153–155 libwww-perl module, 136 logging in, 128 Lieuallen, Anthony (Delete button, adding), 101 overview, 127 listing existing labels, 169–173 reading mail, 151–152 listing mail and displaying chosen message, 153–155 RSS feed of inbox, creating, 155–159 Liyanage, Marc (OS X package), 62 RSS, new mail count in, 142–144 login method, 132 sending mail and, 162–166 login procedure send_message( ) function, 131 boot sequence and, 69–71, 75 size_usage( ) function, 130 with Gmailer, 120–121 update_prefs( ) function, 129 Mail::Webmail::Gmail, 128 using, 128–131 long code listings mark read button, userscript for, 114–115 boot sequence, edited, 243–257 marking a group of e-mails, 23 CSS listing, complete, 238–242 Mbox format conversion, 199–200 HTML-only Gmail inbox source, 258–266 MD5 module, 136 inbox, displaying, 223–238 Medina, Matias Daniel (Goollery), 210 individual message page with only one message, metadata, 219 methods for Gmailer, 119–120 266–274 Miller, Paul (gmtodo), 205 Lyon, Mark (Gmail Loader), 11–12 MIME-Base64 module, 136 MIME-tools module, 136 M Mozilla, 7–8 multiplatforms, 7–8 Mac OS X multiple messages in inbox, 76–78 gCount, 5 multiple signatures, userscript for, 115 GmailStatus, 5 mailto: link redirection, 8 new mail notification, 5

282 Index ■ N–P one message in inbox, 78–79 onreadystatechange property, 60 N open( ) method, 60 OR operator, 24 n keyboard shortcut, 18 OS X package (Liyanage), 62 navigation menu P HTML code for, 36–38 overview, 35–36 p keyboard shortcut, 18 Neale, Chris (URIid extension), 44 parentheses ( ) operator, 25 network traffic Parparita, Mihai (style sheet), 51 boot sequence password needed for sending mail, 161 Pederick, Chris (Web Developer Extension), 29 log for, cleaning up, 68 Perl steps for, 68–89 watching, preparing for, 67–68 all data of a message, accessing, 152 overview, 62 AOL Instant Messenger, new mail count to, 144–149 Tcpflow attachments, 155 Gzip encoding, 64 libwww-perl module, 136 heartbeat, Gmail’s unencoded, 65–66 listing mail and displaying chosen message, 153–155 new mail, checking for, 63–65 MailFolder module, 136 overview, 62 MD5 module, 136 new labels MIME-Base64 module, 136 creating, 175 MIME-tools module, 136 unlabeled messages, labeling, 173–174 reading mail, 151–152 new mail, checking for, 63–65 RSS feed of inbox, creating, 155–159 new mail notification RSS, new mail count in, 137–139 in Linux sending mail and, 162–166 Mail Notification, 6 Utils.pm module, 135 overview, 5 photo gallery, using Gmail as storage for a, 210 Wmgmail, 6 PHP in Mac OS X, 5 checking for mail, 139–140 in Windows Goollery, 210 Gmail Notifier, 4 libraries for coders, 118–126 Mozilla Gmail Notifier, 4 Pilgrim, Mark (GmailSecure), 108 overview, 3 plus addressing, 20–23 new style, applying, 44 Pop mail access, setting up, 12–14 newsreaders power tips overview, 205 attachments, sending executables as, 23–24 torrent files, finding, 206 filtering, 21 notepad application, using Gmail as, 207–208 keyboard shortcuts O a key, 19 / (backslash) key, 18 object methods c key, 18 abort( ) method, 59 combo-keys shortcuts, 19 getAllResponseHeaders( ) method, 59 Enter key, 18 getResponseHeader( ) method, 60 esc key, 19 open( ) method, 60 ! (exclamation) key, 19 send( ) method, 60 f key, 19 setRequestHeader( ) method, 60 g then a keys, 19 g then c keys, 19 object properties g then d keys, 19 onreadystatechange property, 60 g then i keys, 19 readyState property, 60 g then s keys, 19 responseText property, 60 responseXML property, 60 status property, 60 statusText property, 60

Index ■ P–S 283 j key, 18 S k key, 18 n key, 18 s keyboard shortcut, 19 overview, 15–17 Savolainen, Pasi (Wmgmail), 6 p key, 18 scraping HTML::TokeParser, 186–194 r key, 19 search operators s key, 19 spam filters and, 17 after: operator, 25 tab then enter keys, 19 bcc: operator, 25 u key, 18 before: operator, 25 x key, 19 cc: operator, 25 y key, 18 filename: operator, 25 y then o keys, 19 from: operator, 24 marking a group of e-mails, 23 has:attachment operator, 24 plus addressing, 20–23 - (hyphen) operator, 24 searching, advanced, 24–26 in:anywhere operator, 25 preloading interface, 54 in:inbox operator, 25 Pygtk, 205 in:read operator, 25 Python in:spam operator, 25 checking for mail, 140–141 in:starred operator, 25 gmtodo, 205 in:trash operator, 25 Python 2.3, 213–214 in:unread operator, 25 label: operator, 24 Q OR operator, 24 overview, 26 quota_mb property, 123 ( ) (parentheses) operator, 25 quota_per property, 123 “ “ (quotes) operator, 25 quotes (“ “) operator, 25 subject: operator, 24 to: operator, 24 R overview, 186 searching, advanced, 24–26 r keyboard shortcut, 19 send( ) method, 60 random signatures, userscript for, 115 sending mail reading mail with Gmail SMTP individual mail, 81–89 attachments, sending, 166 with Perl direct use of, 162 Mail::Webmail::Gmail and, 162–166 all data of a message, accessing, 152 overview, 161–162 attachments, 155 Perl and, 162–166 listing mail and displaying chosen message, unread mail, reading and replying to, 163–166 password needed for, 161 153–155 send_message( ) function, 131 overview, 151–152 Sent Mail folder, 196 RSS feed of inbox, creating, 155–159 setRequestHeader( ) method, 60 Utils.pm module used for, 153–155 size_usage( ) function, 130 readyState property, 60 Snapshots, 123–124 removing labels, 175–176 spam filters, 17, 209–210 responseText property, 60 Spam folder, 196 responseXML property, 60 Spindel, Nathan (gCount), 5 retrieving a labeled message and replying, 171–173 Starred folder, 196 RSS feeds status property, 60 of inbox, creating, 155–159 statusText property, 60 new mail count in, 142–144 std_box_new property, 123 overview, 205 storage space, 80 torrent files, finding, 206

284 Index ■ S–Y how it works, 100–101 HTTPS, forcing Gmail to use, 108–110 string dump( ) method, 120 installation of, 92 style sheets, 45–51 MailtoComposeInGmail, 110–114 style sheets (Parparita), 51 mark read button, 114–115 subject: operator, 24 multiple signatures, 115 random signatures, 115 T Utils.pm module, 135, 153–155 tab then enter keyboard shortcut, 19 V Tcpflow vCards, 181–182 Gzip encoding, 64 viewing HTML version of Gmail, 183–185 heartbeat, Gmail’s unencoded, 65–66 Villegas, Andres (Goollery), 210 new mail, checking for, 63–65 void disconnect( ) method, 120 overview, 62 void setLoginInfo method, 119 thread, retrieving a, 83–88 void setProxy method, 119 trace from reading a message, 81–83 void setSessionMethod method, 119 Tcpflow (Elson), 62 text-editing, 208 W text file, exporting mail as, 197–198 threads Web Developer Extension (Pederick), 29 and HTML::TokeParser, 195 WebMailCompose (Brown), 7 retrieving, 83–88 Windows to: operator, 24 to-do lists Gmail Notifier, 4 filters and, 203–204 mailto: link redirection, 7 gmtodo, using, 205 Mozilla Gmail Notifier, 4 overview, 203 new mail notification, 3–4 top section of screen overview, 3 HTML code for, 34–35 Wirz, Martin (Goollery), 210 overview, 33–34 Wmgmail (Savolainen), 6 torrent files, finding, 206 trace from reading a message, 81–83 X Trash folder, 196 x keyboard shortcut, 19 U XMLHttpRequest u keyboard shortcut, 18 within Gmail code, 61 unlabeled messages, labeling, 173–174 HTML code for, 56–59 unread mail, reading and replying to, 163–166 object methods, 59–60 update_prefs( ) function, 129 object properties, 60 URIid extension (Neale), 44 overview, 55 userscripts using yourself, 55–60 Bloglines, displaying, 92–100 Y Delete button, adding, 101–108 GmailSecure, 108–110 y keyboard shortcut, 18 hide invites, 115 y then o keyboard shortcut, 19

IF YOU ENJOYED THIS EXTREMETECH BOOK YOU’LL LOVE... MagazineTohjueutthmmetpholesaartteeths,tathfraoednrcdcothghraereenatcdeteeocs-htitnott-oeylbcooehugnryiosnlemovlogfaeylgvrpaesrzdoiwndwheuioctths. AVAILABLE NOW ON NEWSSTANDS EVERYWHERE!

How to take it to the Extreme. If you enjoyed this book, there are many others like it for you. From Podcasting to Hacking Firefox, ExtremeTech books can fulfill your urge to hack, tweak and modify, providing the tech tips and tricks readers need to get the most out of their hi-tech lives. ™ Available wherever books are sold. Wiley and the Wiley logo are trademarks of John Wiley & Sons, Inc. and/or its affiliates. The ExtremeTech logo is a trademark of Ziff Davis Publishing Holdings, Inc. Used under license. All other trademarks are the property of their respective owners.


Like this book? You can publish your book online for free in a few minutes!
Create your own flipbook