graybook 1.0.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. data/.gitignore +1 -0
  2. data/CHANGES.md +49 -0
  3. data/Manifest.txt +59 -0
  4. data/README.md +66 -0
  5. data/Rakefile +40 -0
  6. data/VERSION +1 -0
  7. data/VERSION.yml +4 -0
  8. data/VERSION_NAME +1 -0
  9. data/debug_graybook.rb +10 -0
  10. data/init.rb +1 -0
  11. data/lib/graybook/exporter/base.rb +16 -0
  12. data/lib/graybook/exporter/vcf.rb +45 -0
  13. data/lib/graybook/exporter/xml.rb +28 -0
  14. data/lib/graybook/importer/aol.rb +87 -0
  15. data/lib/graybook/importer/base.rb +39 -0
  16. data/lib/graybook/importer/csv.rb +74 -0
  17. data/lib/graybook/importer/freenet.rb +62 -0
  18. data/lib/graybook/importer/gmail.rb +84 -0
  19. data/lib/graybook/importer/gmx.rb +68 -0
  20. data/lib/graybook/importer/hotmail.rb +135 -0
  21. data/lib/graybook/importer/page_scraper.rb +86 -0
  22. data/lib/graybook/importer/web.de.rb +67 -0
  23. data/lib/graybook/importer/yahoo.rb +63 -0
  24. data/lib/graybook.rb +83 -0
  25. data/test/config/credentials.yml.example +9 -0
  26. data/test/fixtures/aol_application_page.html +566 -0
  27. data/test/fixtures/aol_bad_login_response_stage_3.html +565 -0
  28. data/test/fixtures/aol_contacts.html +102 -0
  29. data/test/fixtures/aol_login_response_stage_1.html +158 -0
  30. data/test/fixtures/aol_login_response_stage_2.html +559 -0
  31. data/test/fixtures/aol_login_response_stage_3.html +48 -0
  32. data/test/fixtures/aol_login_response_stage_4.html +404 -0
  33. data/test/fixtures/aol_login_response_stage_5.html +404 -0
  34. data/test/fixtures/aol_new_contacts.html +431 -0
  35. data/test/fixtures/gmail.csv +3 -0
  36. data/test/fixtures/gmail_bad_login_response_stage_2.html +560 -0
  37. data/test/fixtures/gmail_contacts.html +228 -0
  38. data/test/fixtures/gmail_login_response_stage_1.html +556 -0
  39. data/test/fixtures/gmail_login_response_stage_2.html +1 -0
  40. data/test/fixtures/gmail_login_response_stage_2a.html +1 -0
  41. data/test/fixtures/gmail_login_response_stage_3.html +249 -0
  42. data/test/fixtures/gmail_redirect_body.html +10 -0
  43. data/test/fixtures/hotmail_bad_login_response_stage_2.html +31 -0
  44. data/test/fixtures/hotmail_contacts.html +262 -0
  45. data/test/fixtures/hotmail_login_response_stage_1.html +31 -0
  46. data/test/fixtures/hotmail_login_response_stage_2.html +1 -0
  47. data/test/fixtures/hotmail_login_response_stage_3.html +519 -0
  48. data/test/fixtures/hotmail_scrape_first_page.html +77 -0
  49. data/test/fixtures/hotmail_scrape_response_stage_1.html +90 -0
  50. data/test/fixtures/hotmail_scrape_response_stage_2.html +77 -0
  51. data/test/fixtures/hotmail_scrape_response_stage_3.html +0 -0
  52. data/test/fixtures/yahoo_bad_login_response_stage_2.html +443 -0
  53. data/test/fixtures/yahoo_contacts.csv +3 -0
  54. data/test/fixtures/yahoo_contacts_not_logged_in.html +432 -0
  55. data/test/fixtures/yahoo_contacts_stage_1.html +399 -0
  56. data/test/fixtures/yahoo_login_response_stage_1.html +433 -0
  57. data/test/fixtures/yahoo_login_response_stage_2.html +16 -0
  58. data/test/fixtures/yahoo_no_user_response_stage_2.html +574 -0
  59. data/test/freenet_importer_test.rb +53 -0
  60. data/test/gmx_importer_test.rb +53 -0
  61. data/test/scripts/live_test.rb +25 -0
  62. data/test/test_graybook.rb +60 -0
  63. data/test/test_graybook_exporter_base.rb +16 -0
  64. data/test/test_graybook_exporter_vcf.rb +52 -0
  65. data/test/test_graybook_exporter_xml.rb +16 -0
  66. data/test/test_graybook_importer_aol.rb +108 -0
  67. data/test/test_graybook_importer_base.rb +24 -0
  68. data/test/test_graybook_importer_csv.rb +60 -0
  69. data/test/test_graybook_importer_gmail.rb +116 -0
  70. data/test/test_graybook_importer_hotmail.rb +165 -0
  71. data/test/test_graybook_importer_page_scraper.rb +51 -0
  72. data/test/test_graybook_importer_yahoo.rb +137 -0
  73. data/test/test_helper.rb +71 -0
  74. data/test/web.de_importer_test.rb +53 -0
  75. data/updater.rb +15 -0
  76. data/vendor/plugins/graybook/lib/autotest/discover.rb +3 -0
  77. data/vendor/plugins/graybook/lib/autotest/graybook.rb +27 -0
  78. metadata +185 -0
@@ -0,0 +1,228 @@
1
+
2
+ <html>
3
+ <head>
4
+ <meta http-equiv=Content-Type content="text/html; charset=UTF-8">
5
+ <title>Gmail - Contact List</title>
6
+ <link rel="shortcut icon"
7
+ href="/mail/images/favicon.ico"
8
+ type="image/x-icon">
9
+ <link rel="stylesheet" type="text/css"
10
+ href="/mail/h/?view=page&name=css&ver=z6rd10z301ub">
11
+ <style type="text/css">
12
+ @import url("/mail/h/?view=page&name=css2&ver=dyiet7jqhzt5");
13
+ </style>
14
+ <base href="http://mail.google.com/mail/h/u89knx82cw0l/">
15
+ <script>
16
+ <!--
17
+ var tz_path = ';path=/';
18
+ if (top.location.href.toLowerCase().indexOf('google.com') > 0) {
19
+ tz_path += ';domain=.google.com';
20
+ }
21
+ document.cookie = "TZ=" + (new Date()).getTimezoneOffset() + tz_path;
22
+ //-->
23
+ </script>
24
+ </head>
25
+ <body bgcolor=#ffffff>
26
+ <table width=100% cellpadding=4 cellspacing=0 border=0 class=bn>
27
+ <tr>
28
+ <td id=bm bgcolor=#FAE5B0>
29
+ <b>For a better Gmail experience,
30
+ use a fully supported browser. &nbsp;
31
+ <a href="/support/bin/answer.py?ctx=%67mail&answer=15046" target=_blank
32
+ >Learn more</a></b>
33
+ </td>
34
+ </table>
35
+ <table width=100% cellpadding=0 cellspacing=0 border=0>
36
+ <tr>
37
+ <td width=143 rowspan=3>
38
+ <h1>
39
+ <a href="?">
40
+ <img src="/mail/help/images/logo1.gif"
41
+ width=143 height=59 border=0
42
+ alt="Gmail by Google">
43
+ </a>
44
+ </h1>
45
+ </td>
46
+ <td width=1 rowspan=3>&nbsp;</td>
47
+ <td height=25 colspan=2 align=right valign=top>
48
+ <h2 class=hdn>Account Options</h2>
49
+ <b>user@gmail.com</b> |
50
+ <a href="?v=prg">Settings</a> |
51
+ <a href="/support/?ctx=mail&hl=en" target=_blank>Help</a> |
52
+ <a href="http://mail.google.com/mail/h/1lkjob1cm8uo0/?logout&amp;hl=en">Sign out</a>
53
+ <tr>
54
+ <form action=? name=sf method=GET>
55
+ <input type=hidden name=s value=q>
56
+ <td>
57
+ <table width=100% cellpadding=0 cellspacing=0 border=0>
58
+ <tr>
59
+ <td width=1% height=25 nowrap>
60
+ <input size=28 maxlength=2048
61
+ name=q value=""
62
+ >&nbsp;<input type=submit name=nvp_site_mail value="Search Mail"
63
+ >&nbsp;<input type=submit name=nvp_site_web value="Search the Web">
64
+ </td>
65
+ <td>
66
+ <font size=1>
67
+ &nbsp;<a href="?v=as&pv=tl"
68
+ >Show&nbsp;search&nbsp;options</a>
69
+ </font>
70
+ </form>
71
+ </table>
72
+ <tr>
73
+ <td height=25 colspan=2>
74
+ </table>
75
+ <table width=100% cellpadding=0 cellspacing=0 border=0>
76
+ <tr>
77
+ <td width=120 valign=top>
78
+ <table width=100% cellpadding=2 cellspacing=0 border=0 class=m>
79
+ <tr>
80
+ <td>
81
+ <b><a href="?v=b&pv=tl&cs=b" accesskey=c
82
+ >Compose&nbsp;Mail</a></b>
83
+ <tr>
84
+ <td height=5>
85
+ <h2 class=hdn>Folders</h2>
86
+ <tr>
87
+ <td>
88
+ <a href="?"
89
+ accesskey=i
90
+ >Inbox</a>
91
+ <tr>
92
+ <td>
93
+ <a href="?s=r"
94
+ >Starred&nbsp;<img src="/mail/images/star_on_sm_2.gif" width="13" height="13" border="0" alt="star" /></a>
95
+ <tr>
96
+ <td>
97
+ <a href="?s=s"
98
+ >Sent Mail</a>
99
+ <tr>
100
+ <td>
101
+ <h3><b><a href="?s=d"
102
+ >Drafts&nbsp;(16)</a></b></h3>
103
+ <tr>
104
+ <td>
105
+ <a href="?s=a"
106
+ >All Mail</a>
107
+ <tr>
108
+ <td>
109
+ <h3><b><a href="?s=m"
110
+ >Spam&nbsp;(7)</a></b></h3>
111
+ <tr>
112
+ <td>
113
+ <a href="?s=t"
114
+ >Trash</a>
115
+ <tr>
116
+ <td height=8>
117
+ <tr>
118
+ <td bgcolor="#FAD163">
119
+ <h3><b><a href="?v=cl">Contacts</a></b></h3>
120
+ <tr>
121
+ <td height=8>
122
+ </table>
123
+ <table width=100% cellpadding=2 cellspacing=0 border=0 class=l>
124
+ <tr>
125
+ <td class=lb>
126
+ <h2><font color=#000000>Labels</font><br></h2>
127
+ <a href="?s=l&l=mytag"><font color=#006633
128
+ >mytag</font></a>
129
+ <br>
130
+ </td>
131
+ </table>
132
+ <td valign=top>
133
+ <table width=100% cellpadding=0 cellspacing=0 border=0>
134
+ <tr>
135
+ <td width=5 bgcolor="#FAD163">&nbsp;</td>
136
+ <td>
137
+ <table width=100% cellpadding=2 cellspacing=0 border=0 bgcolor=#fad163>
138
+ <form action="?fv=cl&pv=cl&cs=fc" name=f method=POST>
139
+ <tr>
140
+ <td>
141
+ <input type=submit name=nvp_bu_comp value="Compose">
142
+ </td>
143
+ <td align=right>&nbsp;
144
+ </table>
145
+ <table width=100% cellpadding=0 cellspacing=0 border=0 bgcolor=#fad163>
146
+ <tr>
147
+ <td width=1% valign=bottom>
148
+ <table cellpadding=2 cellspacing=0 border=0>
149
+ <tr>
150
+ <td nowrap>
151
+ &nbsp;<b><a href="?v=cl&pnl=p"
152
+ >Frequently&nbsp;Mailed</a></b>&nbsp;
153
+ </td>
154
+ <td bgcolor=#ffffff nowrap>
155
+ &nbsp;<b>All&nbsp;Contacts</b>&nbsp;
156
+ </td>
157
+ </table>
158
+ </td>
159
+ <td>
160
+ <input size=20 maxlength=2048
161
+ name=scq value=""
162
+ >&nbsp;<input type=submit name=nvp_bu_sc value="Search Contacts">
163
+ </td>
164
+ <td align=right>&nbsp;
165
+ <b>2</b> of <b>2</b>&nbsp;
166
+ </table>
167
+ <table width=100% cellpadding=2 cellspacing=0 border=0 bgcolor=#ffffff class=th>
168
+ <tr>
169
+ <td>
170
+ <input type=checkbox name=c value="3c">
171
+ </td>
172
+ <td>
173
+ <b>Joe User</b>
174
+ </td>
175
+ <td>
176
+ joe.user@example.com
177
+ &nbsp;
178
+ </td>
179
+ <tr>
180
+ <td>
181
+ <input type=checkbox name=c value="8c">
182
+ </td>
183
+ <td>
184
+ <b>Jane User</b>
185
+ </td>
186
+ <td>
187
+ jane.user@example.com
188
+ &nbsp;
189
+ </td>
190
+ </table>
191
+ <table width=100% cellpadding=2 cellspacing=0 border=0 bgcolor=#fad163>
192
+ <tr>
193
+ <td>
194
+ <input type=submit name=nvp_bu_comp value="Compose">
195
+ </td>
196
+ <td align=right>
197
+ </form>
198
+ </table>
199
+ </table>
200
+ <table cellpadding=2 cellspacing=0 border=0 align=center class=ft>
201
+ <tr>
202
+ <td align=center>
203
+ Use the search box or <b>search options</b> to find messages quickly!
204
+ <tr>
205
+ <td align=center>
206
+ <span style="color: #006633;
207
+ font-weight: bold;">
208
+ You are currently using
209
+ 400 MB
210
+ (6%) of your
211
+ 6358 MB
212
+ </span>
213
+ <tr>
214
+ <td align=center>
215
+ <font size=1>
216
+ &copy;2007 Google -
217
+ <a href="/mail/help/terms.html"
218
+ target=_blank>
219
+ Terms
220
+ </a> -
221
+ <a href="http://gmailblog.blogspot.com/?utm_source=uifooter&utm_medium=et&utm_campaign=en"
222
+ target=_blank>Gmail Blog</a> -
223
+ <a href="http://www.google.com" target=_blank>Google Home</a>
224
+ </font>
225
+ </table>
226
+ </table>
227
+ </body>
228
+ </html>