Advertisement
Guest User

Untitled

a guest
Dec 31st, 2015
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.95 KB | None | 0 0
  1. require 'net/imap'
  2. def index
  3. conn = Net::IMAP.new('imap.mail.yahoo.com', 993, ssl:true)
  4. conn.login("email", "mypassword")
  5.  
  6. conn.select("[Gmail]/INBOX")
  7. conn.uid_search(['ALL']).each do |uid|
  8. # fetches the straight up source of the email for ymail to parse
  9. source = conn.uid_fetch(uid, ['RFC822']).first.attr['RFC822']
  10. puts "#{source}"
  11. end
  12. end
  13.  
  14. X-Apparently-To: aniketshivamtiwari@yahoo.in; Tue, 29 Dec 2015 11:00:56 +0000
  15. Return-Path: <bounce@bounce4.communications.yahoo.com>
  16. Received-SPF: pass (domain of bounce4.communications.yahoo.com designates 67.195.83.93 as permitted sender)
  17. X-YMailISG: pPW50g0WLDsoxEWhALhG0HpMiS0RE044UqCEWKYvjyAATaEY
  18. pxhNHS_ersl7vyBrZfn2cChT3YSJBx_Mh6C1uFBflkngLPrhUGK60w6HUPb.
  19. X0rH1Pudscg0JQLyRqtTYNaLdQoqLgeDN0nrqROlVCwVhty1guaAPoB3xl1K
  20. YwcKKs4_CNrmdn2Ht1mjoicXQMr6qByjCxUobSOti5DOzVev_LGFtEWSZnS6
  21. qhsT2kVepd_BWDta0bqfgxj6p32ykyTsA1mvdac_gXbBbvtqOqF80Nf4Lnv0
  22. AuRSkN7VW09SWfhCdmz6FZOaoBO4GUsAci3J3zs.G3Pzn3BBoVnKFAbYROwv
  23. hi64kK55xK1obEWGi_JwfcmFiLtSmDgC.JT5BuWRhgRPXYVrx6EPSWaYjvbg
  24. qYottMxlkYKCTIczXzClA_SEJUE8PSDRVbEXaK1c.vAZrAyMuoAc215gZ4xk
  25. jcsohAWYLrUg8H9Ph5CaHci8nybOiBdn7SyyvMW.merWiYZTeJb2LMZ4k2TN
  26. 10oyQiDMAlXmGhLm7AOHXNidFEuD7h7X2Th9Tzz2J9wsSv6xpYN54kADOWMH
  27. 0IXfOtrnMpjj.rrw5my63uJKI5StBSORqaQbOGshdpgnpX945l9PQoI6F.nD
  28. GeiuA_rPw24h9gwcH03U7giKUyjVArUho4jp3bJJwhA4rBIxN84vaL.rt4N8
  29. G3ExoKGZwKAC7ZqgpUPbgoF5KuJxN_kJdAws0RWxkj7heeHpKdsDNyJx3vxe
  30. K3kW2SKNJiwoLDrGiqaTL74TLY8n9Zfu_9dGlM.ajFet.zXATD68Rd5e.uT8
  31. EXwe9H1OwixqfRtyEQv6rRb31RrLXqGnqWxFsrqFu8lLfyLeupD7C_6ejx6I
  32. Gg_kLQ9IurZCl6MYJNsfuyw5nlayxgj3uxxAYad4IZ.oaYFo9WUND32sz_v1
  33. 4WxyduliQmUIu_7hB2hAkolpeVSbRsa_5bULQEQRczHa7374Tp1d1KFFFM1R
  34. LEd6yyjD.Qu4pq1xRxtJX68BebcMrRxsyO2bJEJ4tErUHRHMz12WOaFKIeRX
  35. VdVQaAfk.DAKXTUHNio4ZTJdtDhYxovqow3FzKOZ9xofBBQBO759qWcGyQJX
  36. N5OPvb0jkaGVWhsW1QJzvlKz4eAyHBMfecyrqFeOSOsteHeRJq5ObFd9NrbS
  37. Pyu3Ary1y6CwaJVXOCk5yX2NxF21T8xFDkB_1_OhMWuLuSDgnPuCAxzO6M0H
  38. P4Q030JbxSVWIwDq6R6yRNKFrPl.eNqh1f_Xvwfw2o5leds4Z3yKXBQtAXcA
  39. x1MQAfH3Xe_jZqMwb.kcUAT_7_eSCbE0YkNrSwYpnh8iSkZUHEJRo2qwbWjD
  40. aN1Z.WgoSzXXIJW_lrgEIvW7Dl1Ybq3twQRZCGgA88iZpG71orIR0Ox2ve_7
  41. K1dh0iFLYitFoDtXBwNYol4EotBngBWgNDlUHip9Asr80FuCKbZ_ABfmJcj5
  42. JzehWUK7aePVzUQ_tcDkC_Jb1_zfgCOYPuDrkrwjSonxrba9RwTy9MjYjkMH
  43. radQfp3J.Uq_i194KqxSH74DJBh.blWY.IQ6IpUkmafj5LgjtlsvpwwAXPgz
  44. S83yNG4YLj5K8WtzrfGtvKpdxH5CcwM_lOLLYVOVblldfaz9lx0IFf6m_eNt
  45. imUzqvWlf6XfvgPTdWOVLCKWy2lubCdAfSUkBfBqGq2UXOy8HfFDZetunxPF
  46. 0iy8Ta3n2X.pTA--
  47. X-Originating-IP: [67.195.83.93]
  48. Authentication-Results: mta1004.mail.sg3.yahoo.com from=communications.yahoo.com; domainkeys=neutral (no sig); from=communications.yahoo.com; dkim=pass (ok)
  49. Received: from 127.0.0.1 (EHLO mta30.communications.yahoo.com) (67.195.83.93)
  50. by mta1004.mail.sg3.yahoo.com with SMTP; Tue, 29 Dec 2015 11:00:54 +0000
  51. Received: from localhost ([127.0.0.1])
  52. by mta30.communications.yahoo.com (-); Tue, 29 Dec 2015 11:00:53 +0000
  53. X-VirtualServer: marketing, mta30.communications.yahoo.com, 67.195.83.93
  54. X-VirtualServerGroup: marketing
  55. X-MailingID: 67138674::4380860::2743392::11000::ver**1**GUID**YNUJYRYLWXKEIZBS3NKWYWDMDQ_-_::3008_1065216954_0
  56. X-SMHeaderMap: mid="X-MailingID"
  57. X-Destination-ID: aniketshivamtiwari@yahoo.in
  58. X-SMFBL: YW5pa2V0c2hpdmFtdGl3YXJpQHlhaG9vLmlu
  59. DKIM-Signature: v=1; a=rsa-sha1; c=simple;
  60. d=communications.yahoo.com; s=201402-std-mrk;
  61. i=@communications.yahoo.com; h=Content-Transfer-Encoding:
  62. Content-Type:Reply-To:MIME-Version:Message-ID:X-ReportingKey:
  63. Subject:Date:To:From; bh=UKvmQgahqDFJ7WeG0aLnu+vkmsg=; b=qC976yD
  64. PxULmcaMI62cEZzWaXyJD9ic9kG9Bt6UQT5oL85uNDh47MC60zmj1hKXvKqPWgye
  65. cfnbAOjL+LK5qNb576lOIW3QSSP3jlALYfEZF8ueLeh4UkSIsOEd2UEDm1LABEOl
  66. LJ6BpyIMnNqeTvHpo+RU4JDK+MG3e4NUS6H8=
  67. Content-Transfer-Encoding: 7bit
  68. Content-Type: multipart/alternative;
  69. boundary="----=_NextPart_E6C_D583_7D089AC2.3028D4FE"
  70. Reply-To: replies@communications.yahoo.com
  71. MIME-Version: 1.0
  72. Message-ID: <67138674.3008@communications.yahoo.com>
  73. X-ReportingKey: LJ1EBD6U1B8_120I8KKN46A_JJ86PJ13C3F19N::aniketshivamtiwari@yahoo.in::ver**1**GUID**YNUJYRYLWXKEIZBS3NKWYWDMDQ_-_
  74. Subject: =?UTF-8?Q?Welcome=20to=20Yahoo?=
  75. Date: Tue, 29 Dec 2015 11:00:53 +0000
  76. To: aniketshivamtiwari@yahoo.in
  77. From: "=?UTF-8?Q?Yahoo?=" <Yahoo@communications.yahoo.com>
  78. Content-Length: 9684
  79.  
  80.  
  81. ------=_NextPart_E6C_D583_7D089AC2.3028D4FE
  82. Content-Type: text/plain;
  83. charset="UTF-8"
  84. Content-Disposition: inline
  85. Content-Transfer-Encoding: quoted-printable
  86.  
  87. =0A=0A=0A----------------------------------------------------------------=
  88. ----=0A =0A=0Ahttp://in.yahoo.com=0A =0A-------------------------------=
  89. -------------------------------------=0A =0AWelcome!
  90. =20
  91. Your Yahoo username is now active.
  92. =20
  93. Dear aniketshivamtiwari,
  94. =20
  95. Everyday we're working hard to make your daily habits more inspiring and =
  96. entertaining. While you're here, check out the amazing new features avail=
  97. able on Flickr, the all-new Yahoo Weather app, and Yahoo Mail for mobile =
  98. and tablet.
  99. =20
  100. Yahoo Homepage:
  101. http://in.yahoo.com/
  102. =20
  103. Flickr:
  104. http://www.flickr.com/
  105. =20
  106. Yahoo Weather app:
  107. https://in.mobile.yahoo.com/weather/
  108. =20
  109. Yahoo Mail:
  110. http://in.overview.mail.yahoo.com/mobile/
  111. =20
  112. If you have any questions or need additional support,=20
  113. please visit our Help Center.
  114. http://help.yahoo.com/kb/index?page=3Dproduct&y=3DPROD_MAIL_ML&locale=3De=
  115. n_IN
  116. =20
  117. Thanks and have a great day.
  118.  
  119. Yahoo Customer Care =0A =0A--------------------------------------------=
  120. ------------------------=0A=0APrivacy Policy=0Ahttp://info.yahoo.com/priv=
  121. acy/in/yahoo/=0A=0AWeb Beacons in Email=0Ahttp://info.yahoo.com/privacy/i=
  122. n/yahoo/webbeacons/E13=0A=0A
  123. ------=_NextPart_E6C_D583_7D089AC2.3028D4FE
  124. Content-Type: text/html;
  125. charset="UTF-8"
  126. Content-Disposition: inline
  127. Content-Transfer-Encoding: quoted-printable
  128.  
  129. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://ww=
  130. w.w3.org/TR/html4/loose.dtd">=0A<html>=0A<head>=0A<meta http-equiv=3D"Con=
  131. tent-Type" content=3D"text/html; charset=3Dutf-8">=0A<title>Yahoo</title>=
  132. =0A</head>=0A=0A<body bgcolor=3D"#C0C0C0" style=3D"padding: 0; margin: 0;=
  133. " leftmargin=3D"0" topmargin=3D"0" marginwidth=3D"0" marginheight=3D"0"><=
  134. IMG SRC=3D"https://email.communications.yahoo.com/t/dbdbaEFWF6CAA2DsKXyCT=
  135. XDaaC3a4X0-2~aaaa?r=3Dybu**y**JRLA**bKXGbObIZUNBLWEP6KNTbTGJGN@B@&b=3D=
  136. dklhhqvelsdjwfzXuf_1Xklr.fq&i=3D" WIDTH=3D"1" HEIGHT=3D"1" STYLE=3D"b=
  137. order:0px hidden transparent !important; display:none !important; max-hei=
  138. ght:0;" ALT=3D""/>=0A<table align=3D"center" width=3D"100%" valign=3D"top=
  139. " border=3D"0" cellspacing=3D"0" cellpadding=3D"0" bgcolor=3D"#C0C0C0" st=
  140. yle=3D"font-family:Arial,sans-serif;" dir=3D"">=0A<tr>=0A<td align=3D"cen=
  141. ter" valign=3D"top">=0A=09<table cellpadding=3D"0" cellspacing=3D"0" widt=
  142. h=3D"500" align=3D"center" border=3D"0" style=3D"min-width:500px;">=0A =
  143. <tr>=0A <td width=3D"500" align=3D"center">=0A =0A<!--Preheader-->=
  144. =0A=0A<!--Preheader End-->=0A=0A<!-- Logo Start -->=0A=09<table width=3D"=
  145. 500" border=3D"0" cellspacing=3D"0" cellpadding=3D"0" bgcolor=3D"#400090"=
  146. >
  147. =09<tr>
  148. =09<td width=3D"20" height=3D"83">&nbsp;</td>
  149. =09<td width=3D"140" valign=3D"middle"><a href=3D"http://in.yahoo.com"><i=
  150. mg src=3D"http://l.yimg.com/dh/ap/default/131029/yahoo_logo.png" width=3D=
  151. "140" alt=3D"Yahoo" border=3D"0" style=3D"display:block;"></a></td>
  152. =09<td width=3D"340">&nbsp;</td>
  153. =09</tr>
  154. =09</table>=0A<!-- Logo End --> =0A=0A<!-- Hero Start -->=09=09=0A=09<tab=
  155. le align=3D"center" width=3D"500" border=3D"0" cellspacing=3D"0" cellpadd=
  156. ing=3D"0">=0A=09<tr>=0A=09<td width=3D"500"><img src=3D"http://l.yimg.com=
  157. /dh/ap/default/131105/hero.jpg" alt=3D"" width=3D"500" height=3D"280" bor=
  158. der=3D"0" style=3D"display:block;"></td>=0A=09</tr>=0A=09</table>=0A<!-- =
  159. Hero End -->=0A=0A<!-- Headline Start -->=0A=09<table align=3D"center" wi=
  160. dth=3D"500" border=3D"0" cellspacing=3D"0" cellpadding=3D"0" bgcolor=3D"#=
  161. ffffff">=0A=09<tr>=0A=09<td width=3D"21">&nbsp;</td>=0A=09<td align=3D"le=
  162. ft">=0A=09=09<table valign=3D"top" width=3D"458" border=3D"0" cellspacing=
  163. =3D"0" cellpadding=3D"0">=0A=09=09<tr>=0A <td height=3D"20" style=3D=
  164. "font-size:20px; line-height:20px;">&nbsp;</td>=0A </tr>=0A=09=09<=
  165. tr>=0A=09=09<td style=3D"font-family:Arial,sans-serif; font-size:23px; li=
  166. ne-height:23px; color:#6D329C;">Your Yahoo username is now active.</td>=0A=
  167. =09=09</tr>=0A=09=09<tr>=0A <td height=3D"20" style=3D"font-size:2=
  168. 0px; line-height:20px;">&nbsp;</td>=0A </tr>=0A=09=09</table>=0A=09=
  169. </td>=0A=09<td width=3D"21">&nbsp;</td>=0A=09</tr>=0A=09</table>=0A<!-- H=
  170. eadline End -->=0A=0A<!-- Content -->=0A<table align=3D"center" width=3D"=
  171. 500" border=3D"0" cellspacing=3D"0" cellpadding=3D"0" bgcolor=3D"#464958"=
  172. >=0A=09<tr>=0A=09<td width=3D"22">&nbsp;</td>=0A=09<td width=3D"456" alig=
  173. n=3D"left" style=3D"font-size:13px; line-height:21px; color:#8C8F9E;">=0A=
  174. =09=09<table valign=3D"top" width=3D"456" border=3D"0" cellspacing=3D"0" =
  175. cellpadding=3D"0" >=0A=09=09<tr>=0A <td height=3D"28" style=3D" fo=
  176. nt-size:28px; line-height:28px;">&nbsp;</td>=0A </tr>=0A=09=09<tr>=
  177. =0A=09=09<td style=3D"font-size:15.5px; line-height:21px; color:#ffffff; =
  178. font-weight:bold;">Dear aniketshivamtiwari,</td>=0A=09=09</tr>=0A=09=09<t=
  179. r>=0A <td height=3D"20" style=3D"font-size:20px; line-height:20px;=
  180. ">&nbsp;</td>=0A </tr>=0A=09=09<tr>=0A=09=09<td style=3D"font-fami=
  181. ly:Arial,sans-serif; font-size:13px; line-height:21px; color:#ffffff;">Ev=
  182. eryday we're working hard to make your daily habits more inspiring and en=
  183. tertaining. While you're here, check out the amazing new features availab=
  184. le on <a href=3D"http://www.flickr.com" style=3D"font-family:Arial,sans-s=
  185. erif;font-size:12px;line-height:normal;color:#ffffff;text-decoration:unde=
  186. rline;" target=3D"_blank">Flickr</a>, the all-new <a href=3D"https://in.m=
  187. obile.yahoo.com/weather/" style=3D"font-family:Arial,sans-serif;font-size=
  188. :12px;line-height:normal;color:#ffffff;text-decoration:underline;" target=
  189. =3D"_blank">Yahoo Weather</a> app, and <a href=3D"http://in.overview.mail=
  190. .yahoo.com/mobile/" style=3D"font-family:Arial,sans-serif;font-size:12px;=
  191. line-height:normal;color:#ffffff;text-decoration:underline;" target=3D"_b=
  192. lank">Yahoo Mail</a> for mobile and tablet.</td>=0A=09=09</tr>=0A=09=09<t=
  193. r>=0A <td height=3D"20" style=3D"font-size:20px; line-height:20px;=
  194. ">&nbsp;</td>=0A </tr>=0A=09=09<tr>=0A=09=09<td style=3D"font-fami=
  195. ly:Arial,sans-serif; font-size:13px; line-height:21px; color:#ffffff;">If=
  196. you have any questions or need additional support, please visit our <a h=
  197. ref=3D"http://help.yahoo.com/kb/index?page=3Dproduct&y=3DPROD_MAIL_ML&loc=
  198. ale=3Den_IN" style=3D"font-family:Arial,sans-serif;font-size:12px;line-he=
  199. ight:normal;color:#ffffff;text-decoration:underline;" target=3D"_blank">H=
  200. elp Center</a>.</td>=0A=09=09</tr>=0A=09=09<tr>=0A <td height=3D"2=
  201. 0" style=3D"font-size:20px; line-height:20px;">&nbsp;</td>=0A </tr=
  202. >=0A=09=09<tr>=0A=09=09<td height=3D"21" style=3D"font-family:Arial,sans-=
  203. serif; font-size:13px; line-height:21px; color:#ffffff;">Thanks and have =
  204. a great day.</td>=0A=09=09</tr>=0A=09=09<tr>=0A <td height=3D"35" =
  205. style=3D"font-size:35px; line-height:35px;">&nbsp;</td>=0A </tr>=0A=
  206. =09=09</table>=0A=09</td>=0A=09<td width=3D"22">&nbsp;</td>=0A=09</tr>=0A=
  207. </table>=0A<!-- Content End -->=0A =0A<!-- Footer Banner -->=0A=09<tab=
  208. le width=3D"500" border=3D"0" cellspacing=3D"0" cellpadding=3D"0" bgcolor=
  209. =3D"#686F7F">
  210. =09<tr>
  211. =09<td width=3D"20">&nbsp;</td>
  212. <td align=3D"left">
  213. =09<table width=3D"460" cellpadding=3D"0" cellspacing=3D"0" border=3D=
  214. "0">
  215. <tr>
  216. <td height=3D"31" style=3D" font-size:28px; line-height:28px;">&n=
  217. bsp;</td>
  218. </tr>
  219. <tr>
  220. <td width=3D"460" style=3D"font-family:Arial,sans-serif; font-siz=
  221. e:22px; line-height:21px; color:#ffffff;">Yahoo Customer Care</td>
  222. </tr>
  223. <tr>
  224. <td height=3D"30" style=3D" font-size:28px; line-height:28px;">&n=
  225. bsp;</td>
  226. </tr>
  227. <tr>
  228. </table>
  229. </td>
  230. =09<td width=3D"20">&nbsp;</td>
  231. =09</tr>
  232. =09</table>=0A<!-- Footer Banner End -->=0A=0A=0A<!--Footer-->=0A<table a=
  233. lign=3D"center" width=3D"500" border=3D"0" cellspacing=3D"0" cellpadding=3D=
  234. "0" bgcolor=3D"#F4F3F8">=0A=09<tr><td width=3D"20">&nbsp;</td>=0A=09=09<t=
  235. d width=3D"460" align=3D"left" valign=3D"top" >=0A=09=09=09<table width=3D=
  236. "460" border=3D"0" cellspacing=3D"0" cellpadding=3D"0">=0A=09=09=09=09<tr=
  237. ><td width=3D"1" style=3D"line-height:22px">&nbsp;</td></tr>=0A=09=09=09=09=
  238. <tr><td><a href=3D"https://email.communications.yahoo.com/t/dcdbaEFWF6CAA=
  239. 2DsKXyCTXDaaC3a4X0-2~aaaa?r=3Dybu**y**JRLA**bKXGbObIZUNBLWEP6KNTbTGJGN@B@=
  240. &b=3DdklhhqvelsdjwfzXuf_1Xklr.fq&i=3DE0t&u=3D&u=3Dewqs://=
  241. fqcr.vderl.flp/mufyXfv/lk/1Xklr/4578B7D221B27B7664D0BEF428E0856C6C8D06331=
  242. F9D7350A397541C39A8FE5B" style=3D"font-family:Arial,sans-serif; font-size=
  243. :12px; line-height:normal; color:#333333;text-decoration:underline;">Priv=
  244. acy Policy</a>&nbsp;&nbsp;|&nbsp;&nbsp;=0A=09=09=09=09=09=09<a href=3D"ht=
  245. tps://email.communications.yahoo.com/t/dcdbaEFWF6CAA2DsKXyCTXDaaC3a4X0-2~=
  246. aaaa?r=3Dybu**y**JRLA**bKXGbObIZUNBLWEP6KNTbTGJGN@B@&b=3Ddklhhqvelsdj=
  247. wfzXuf_1Xklr.fq&i=3DE0u&u=3D&u=3Dewqs://fqcr.vderl.flp/mufyXf=
  248. v/lk/1Xklr/thYebdZrkv/B407C67DE06C54FE81854824B429D6B0BD263D4F2659AF54440=
  249. 7499E6836E7557F3" style=3D"font-family:Arial,sans-serif; font-size:12px; =
  250. line-height:normal; color:#333333;text-decoration:underline;">Web Beacons=
  251. in Email</a>=0A=09=09=09=09=09</td>=0A=09=09=09=09</tr>=0A=09=09=09=09<t=
  252. r><td width=3D"1" style=3D"line-height:24px">&nbsp;</td></tr>=0A=09=09=09=
  253. </table>=0A=09=09</td>=0A=09=09<td width=3D"20">&nbsp;</td>=0A=09</tr>=0A=
  254. </table>=0A<!--Footer End-->=0A =0A </td>=0A </tr>=0A </table=
  255. >=0A =0A</td>=0A</tr>=0A</table>=0A</body>=0A</html>=0A
  256. ------=_NextPart_E6C_D583_7D089AC2.3028D4FE--
  257.  
  258. X-Apparently-To: aniketshivamtiwari@yahoo.in; Thu, 31 Dec 2015 06:12:21 +0000
  259. Return-Path: <reg.ge4tmmjqgm2dmmrw-aniketshivamtiwari=yahoo.in@returns.bulk.yahoo.com>
  260. Received-SPF: pass (domain of returns.bulk.yahoo.com designates 106.10.151.93 as permitted sender)
  261. X-YMailISG: V85jHsIWLDtB9aViJPOQu8hAiVJmqbIvcTTn7I_prolNJvIM
  262. vSQzyaNsu2BWJHV7Or33_lBuvtfTZkxdOV37AUg60ZyceNsfMw4bvp6gh.ky
  263. geRBO7X1.Vagz8CuofRwmrJLg15Dj9_Av9UM2K7VpU.W5zBvQbzuYnvTWn4W
  264. Ow08EPIeUM7jkA_nNwmvgfQmOzuI4HJKBskzzVjAXtaMUpF._vQlYpjnTsbA
  265. jSpp42HBs_MVgFBHc3sn7u.fdf95ArS8I5lZqG575o8Q6_.nSXKQKwmW6MlS
  266. J5VPQjmy8yOdSjAhxa1Eg_n02ivbNSLfvBHbsFY27BKBT_funhu9JOUMNXJU
  267. gCVaesvQReeyKYt9DP4HV46o8zI7ZZBUUwkVHT.iuclj1gTZbxlO7LaZPTia
  268. 3w4oapd.GHEshTtXBnsrdAcVsf023MVLz7M8c5o79280nUHS1Dg5W2lELsG4
  269. KM6H01KJBREP1Cv7bVfw.NcWQwnaPNoQj7wUhOO42x4BfdHjM8M1OTRHdUsU
  270. QvY9RVOzv4MiX38hsosID_dAF0JKuCgm28EnmL9vhVHINri8EPsrj9CESh2T
  271. jVPD4Du.I4EA0eXvOLgJJDp30R_.7Y6fwkq8ziLjWprEPA54POmP7O4XEf0M
  272. xq6gel5PDFiAR3Y_Z4ugFdge8xH3RmCXJHyYcCDhqIH40520fO8Cep3SmN5q
  273. nkhbBDqTQ.SkeGD1SGdf1n53hbJAKWHpQCmuINZ_sczfnfQIZEvfOTJ51v5d
  274. Z4OGtwYqIgaVgG3GyVPDk1RN_PlaKMsXHgit.DH2wogyiKrU43FSwJ3A5b.2
  275. UBpPysl3jShapbIHx55GqUD0Ko955sT2AogcqxLhIcNs6mrAMwE8WbDxTkok
  276. uwAkg9.ipH12sBmZo7l_Totlxa3dVnYLa_YBsyugOtIgbpenGW.6g3ko2ON0
  277. b7L8xSZklYFg0v7vflIuThrDtOO9fCm_LDNwwtmm3PdN4mGAvXYFyRRX7Kkk
  278. mCLA7PF08XSHXBexlKv2YM.QCS3JtSOwWatbCpNDx6m7O3HzAX8OKLDf0OQ2
  279. ZoFgIJUT5lmmSMgyRP1fT1_aLRNWDz2IKExDTUZfxNqWmD8pvNQalu0v0yWK
  280. x2aSaO8kcZRRiWmIiI6mU6lxKEwHECJJOgmWPe5NGikiU9bkA0GehmauLCq3
  281. UVyL50bRAcfxLZ86kh_P.EDWsTTk_99J_ogqkw20sg0R1o_KB05tG0XEiLLQ
  282. n38xE7TZkFweT4U1bbxXIm593hdLf5ByCfUdL5OOM6k21eN6042uAWCsiy7i
  283. XAyM.8fmM4..QGhBRCaiYnwtn7htiIk_ZAkYNU8qXTQdGiXg9aYgcDFDuxoD
  284. emM4704R.iiPA2LzDpif01rHPOpwow_sokCTGNFhLC7vszQAbfp2TghVmaq_
  285. ShRzNmfwSBgNnpy1wZaa2K30ULacTHsFtjsAqfhZq8u3MvqMQSj.ovVTTBIt
  286. AtjJiDnQrM1nEqI4E1TDjn_udbvb6dTF7JOwqVdheRmQR9MnUSkq31f.Deci
  287. Wci5iNx1Xl4yL2p.NE8NxBEApTNiIqBKXEQN9pDBYDoDVUG17krJLAPT3jH7
  288. Blu.yl51qecEIfU8BI4ayMfh5D7uESIf6lR.DeMdpinu2Ih7iObmMqYyxQ--
  289. X-Originating-IP: [106.10.151.93]
  290. Authentication-Results: mta1034.mail.sg3.yahoo.com from=cc.yahoo-inc.com; domainkeys=neutral (no sig); from=cc.yahoo-inc.com; dkim=pass (ok)
  291. Received: from 127.0.0.1 (EHLO n7-vm6.bullet.mail.sg3.yahoo.com) (106.10.151.93)
  292. by mta1034.mail.sg3.yahoo.com with SMTPS; Thu, 31 Dec 2015 06:12:21 +0000
  293. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cc.yahoo-inc.com; s=fz2048; t=1451542341; bh=RGYAgscvdIr2IQBJfaXVrSKYuNJQGYB0NJZw18Ws0ds=; h=Date:To:From:Reply-To:Subject:From:Subject; b=AQb+DSoaC1R18M4xN/hhQgaiIKbnFwvi9HncWrdgFd3KdF5Yfkh7Xx+Q5xa2oVYL1cY3R/Cp6srW5dxpAzl2HqauYFCyeIlf1xcXaWYnaTbmJUHREJFgo3Nl6Z6Mu0DbpfzFf8CO6sXdHDNeK+jRcHuPD2U4sLxbNDo9D/XygdDsZfPVaUo4y/V7ysbJRMhAt5YFuGj+7BNxdBNlPJX5n6AkERaFC11jmPQ7WwoH1Xt9zvCqgwcU5IqSMLDziU1Bb68RWUrzzanVx875whthSNZ4pM+PR2JZUg0L7slRd2SVF2QWtg5QeWw6NtAp3PCKo72su6OYFsECh+eAg3a2zA==
  294. Received: from [106.10.151.237] by n7.bullet.mail.sg3.yahoo.com with NNFMP; 31 Dec 2015 06:12:21 -0000
  295. Date: 31 Dec 2015 06:12:21 +0000
  296. Received: from [10.240.81.22] by t2.bullet.mail.sg3.yahoo.com with NNFMP; 31 Dec 2015 06:12:21 -0000
  297. To: aniketshivamtiwari@yahoo.in
  298. From: Yahoo<no-reply@cc.yahoo-inc.com>
  299. Reply-To: no-reply@cc.yahoo-inc.com
  300. Errors-To: no-reply@cc.yahoo-inc.com
  301. Subject: =?iso-8859-7?Q?Password_change_for_your_Yahoo_account?=
  302. X-Yahoo-Newman-Property: reg
  303. X-Yahoo-Newman-Id: 1961034626
  304. Message-Id: <1961034626@edit.yahoo.com>
  305. MIME-Version: 1.0
  306. Content-Type: multipart/alternative; boundary="==_MIME-Boundary-1_=="
  307. Content-Length: 5606
  308.  
  309.  
  310. --==_MIME-Boundary-1_==
  311. Content-Type: text/plain; charset=iso-8859-7
  312. Content-transfer-encoding: quoted-printable
  313.  
  314.  
  315.  
  316.  
  317.  
  318. --==_MIME-Boundary-1_==
  319. Content-Type: text/html; charset=iso-8859-7
  320. Content-transfer-encoding: quoted-printable
  321.  
  322.  
  323. <html>
  324. <head>
  325. <meta name=3D"viewport" content=3D"width=3Ddevice-width, =
  326. initial-scale=3D1.0">
  327. <style type=3D"text/css">
  328. html { -webkit-text-size-adjust:none; }
  329. body { width:100%; margin:0 auto; padding:0; }
  330. .ReadMsgBody { width: 100%; }
  331. .ExternalClass { width: 100%; }
  332. .iosLinkPurple a { color:#400090; text-decoration:none; }
  333. .iosLinkGrey a { color:#454958; text-decoration:none; }
  334. .iosLinkSlate a { color:#424242; text-decoration:none; }
  335. </style>
  336. <!--[if gte mso 15]>
  337. <style type=3D"text/css" media=3D"all">
  338. ol,li {
  339. margin: 0;
  340. padding: 0;
  341. -webkit-text-size-adjust: 100%;
  342. }
  343. ol {
  344. counter-reset: foo;
  345. display: table;
  346. padding: 23px;
  347. }
  348. </style>
  349. <![endif]-->
  350.  
  351. <!--[if gte mso 9]>
  352. <style type=3D"text/css">
  353. .m1930{margin-left:19px; margin-right:30px;}
  354. </style>
  355. <![endif]-->
  356.  
  357. </head>
  358. <body>
  359. <div>
  360. <table cellpadding=3D"0" cellspacing=3D"0" bgcolor=3D"#ffffff" =
  361. width=3D"100%" style=3D"table-layout:fixed;">
  362. <tbody>
  363. <tr>
  364. <td align=3D"center" valign=3D"top" style=3D"min-width:500px;" >
  365.  
  366. <table cellspacing=3D"0" cellpadding=3D"0" width=3D"500" =
  367. bgcolor=3D"#400090">
  368. <tr>
  369. <td><a href=3D"#"><img =
  370. src=3D"https://s.yimg.com/sf/email/logo.gif" style=3D"display:block; =
  371. border:0;" width=3D"500" height=3D"87" /></a></td>
  372. </tr>
  373. </table>
  374. <table cellspacing=3D"0" cellpadding=3D"0" width=3D"500" =
  375. bgcolor=3D"#f4f3f8">
  376. <tr>
  377. <td >
  378.  
  379. <table cellspacing=3D"0" cellpadding=3D"0"><tr><td =
  380. height=3D"23" style=3D"line-height:23px;"><img src=3D"images/sp.gif" =
  381. height=3D"1" width=3D"1" style=3D"display:block; border:0;" =
  382. /></td></tr></table>
  383. =20
  384. <div class=3D"m1930" style=3D"font-family:Helvetica, Verdana, Arial, =
  385. sans-serif; font-size:17px; line-height:21px; color:#464958; =
  386. padding-left:19px; padding-right:30px;">
  387. Hello Aniket,<br/>
  388. <table cellspacing=3D"0" cellpadding=3D"0"><tr><td =
  389. height=3D"14" style=3D"line-height:14px;"><img src=3D"images/sp.gif" =
  390. height=3D"1" width=3D"1" style=3D"display:block; border:0;" =
  391. /></td></tr></table>
  392. The password for your Yahoo account, =
  393. <b>&lrm;an**************ri&lrm;</b>, was recently changed.
  394. <br>
  395. <table cellspacing=3D"0" cellpadding=3D"0"><tr><td =
  396. height=3D"14" style=3D"line-height:14px;"><img src=3D"images/sp.gif" =
  397. height=3D"1" width=3D"1" style=3D"display:block; border:0;" =
  398. /></td></tr></table>
  399. If you made this change, you=A2re all set.<br><br>
  400. <div style=3D"background-color:#eae9ee; font-size: 15px;padding: =
  401. 24px;padding-top:10px;padding-bottom: 10px;">
  402. <p style=3D"padding-left:9px">
  403.  
  404. If not, please take these steps to secure your account:
  405. </p>
  406. <ol style=3D"padding-left:25px">
  407. <li>
  408. Reset your password on any sign-in screen by selecting the <a =
  409. href=3D"https://edit.yahoo.com/config/eval_forgot_pw?.intl=3Din&.lang=3Den=
  410. -IN" target=3D"_blank">I can=A2t access my account</a>link.
  411. </li>
  412. <br>
  413. <li>
  414. Visit the Yahoo <a href=3D"https://security.yahoo.com" =
  415. target=3D"_blank">Security Centre</a>to learn how to protect against =
  416. malicious activity.
  417. </li>
  418. </ol>
  419. <p style=3D"padding-left:9px">
  420. Feel free to contact <a href=3D"https://io.help.yahoo.com/contact/index?pa=
  421. ge=3Dcontactform&locale=3Den_US&token=3Dw5FCchB1dWFBK0e02%252BwEyuLoMKXEj8=
  422. hiMaAs%252B8Qhn9Fh%252FFMQCC3ebEMZfW125VoXEPU0mYntyapqUt3Om%252BB5MDOlh33R=
  423. l0Gx6HB0ZEOq2Z3DeGCPpmGP05SOzmmkLPGu3%252FF8rDTGhm4%253D&selectedChannel=
  424. =3Demail-icon#voice-form" target=3D"_blank">Customer Care</a> with any =
  425. questions or concerns.
  426. </p>
  427. </div>
  428. <table cellspacing=3D"0" cellpadding=3D"0"><tr><td =
  429. height=3D"14" style=3D"line-height:14px;"><img src=3D"images/sp.gif" =
  430. height=3D"1" width=3D"1" style=3D"display:block; border:0;" =
  431. /></td></tr></table>
  432. Thanks, <br>
  433. Yahoo
  434. </div>
  435.  
  436. <table cellspacing=3D"0" cellpadding=3D"0"><tr><td =
  437. height=3D"24" style=3D"line-height:24px;"><img src=3D"images/sp.gif" =
  438. height=3D"1" width=3D"1" style=3D"display:block; border:0;" =
  439. /></td></tr></table>
  440. =20
  441. <!-- black line -->
  442. <table cellspacing=3D"0" cellpadding=3D"0" =
  443. bgcolor=3D"#687080" width=3D"500"><tr><td height=3D"1" =
  444. style=3D"line-height:1px;"><img src=3D"images/sp.gif" height=3D"1" =
  445. width=3D"1" style=3D"display:block; border:0;" /></td></tr></table>
  446. <!-- /line -->
  447.  
  448. </td>
  449. </tr>
  450. </table>
  451. <!-- /body -->
  452. <table cellspacing=3D"0" cellpadding=3D"0"><tr><td height=3D"16" =
  453. style=3D"line-height:16px;"></td></tr></table>
  454.  
  455. <table cellspacing=3D"0" width=3D"500" =
  456. style=3D"table-layout:fixed;">
  457. <tr>
  458. <td align=3D"left">
  459. <table cellspacing=3D"0" cellpadding=3D"0"><tr><td =
  460. height=3D"19" style=3D"line-height:19px;"></td></tr></table>
  461. <div style=3D"font-family:Helvetica, sans-serif; =
  462. font-size:13px; line-height:18px; color:#333333;">
  463. Replies sent to this email address cannot be answered.
  464. </div>
  465. <table cellspacing=3D"0" cellpadding=3D"0"><tr><td =
  466. height=3D"14" style=3D"line-height:14px;"></td></tr></table>
  467. </td>
  468. </tr>
  469. </table>
  470. </td>
  471. </tr>
  472. </tbody>
  473. </table>
  474. </div>
  475.  
  476. </body>
  477. </html>
  478.  
  479.  
  480. --==_MIME-Boundary-1_==--
  481.  
  482. require 'net/imap'
  483. def index
  484. conn = Net::IMAP.new('imap.mail.yahoo.com', 993, ssl:true)
  485. conn.login("email", "mypassword")
  486.  
  487. conn.select("INBOX")
  488. conn.uid_search(['ALL']).each do |uid|
  489. # fetches the straight up source of the email for ymail to parse
  490. source = imap.uid_fetch(uid, ['RFC822']).first.attr['RFC822']
  491. //install gem tmail for parsing
  492. attrs, email = {}, TMail::Mail.parse(source)
  493. end
  494. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement