Guest User

Untitled

a guest
Jun 19th, 2018
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1.  
  2. puts(current_email.inspect)
  3. puts(current_email.body.inspect)
  4. puts(current_email.default_part_body.inspect)
  5.  
  6. gives this
  7.  
  8. #<Mail::Message:23964830397760, Multipart: false, Headers: <Date: Wed, 20 Oct 2010 17:06:05 -0400>, <From: xxx@harte-lyne.ca>, <Reply-To: xxx@harte-lyne.ca>, <To: xxx@harte-lyne.ca>, <Message-ID: <4cbf59bd14438_57b715cbbc8841ac969b@inet05.hamilton.harte-lyne.ca.mail>>, <Subject: [ForEx] 2010-10-20 - Foreign Exchange Rates Central Bank Update Notice>, <Mime-Version: 1.0>, <Content-Type: text/plain>, <Content-Transfer-Encoding: 7bit>>
  9.  
  10. #<Mail::Body:0x2b977e67c758 @charset="US-ASCII", @part_sort_order=["text/plain", "text/enriched", "text/html"], @parts=[], @raw_source="", @epilogue=nil, @preamble=nil, @encoding="7bit", @boundary=nil>
  11.  
  12. #<Mail::Body:0x2b977e67c758 @charset="US-ASCII", @part_sort_order=["text/plain", "text/enriched", "text/html"], @parts=[], @raw_source="", @epilogue=nil, @preamble=nil, @encoding="7bit", @boundary=nil>
  13.  
  14.  
  15. A message generated by the application in production looks like this:
  16.  
  17. Return-Path: <xxx@harte-lyne.ca>
  18.  
  19. Received: from inet07.hamilton.harte-lyne.ca ([unix socket])
  20.  
  21. by inet07.hamilton.harte-lyne.ca (Cyrus v2.2.12-Invoca-RPM-2.2.12-10.el4_8.4) with LMTPA;
  22.  
  23. Mon, 18 Oct 2010 00:30:21 -0400
  24.  
  25. X-Sieve: CMU Sieve 2.2
  26.  
  27. Received: from inet06.hamilton.harte-lyne.ca (inet06.hamilton.harte-lyne.ca [216.185.71.26])
  28.  
  29. by inet07.hamilton.harte-lyne.ca (8.13.1/8.13.1) with ESMTP id o9I4UJrn013312
  30.  
  31. for <xxx@harte-lyne.ca>; Mon, 18 Oct 2010 00:30:19 -0400
  32.  
  33. Received: from harte-lyne.ca (inet01.hamilton.harte-lyne.ca [216.185.71.21])
  34.  
  35. by inet06.hamilton.harte-lyne.ca (8.13.1/8.13.1) with ESMTP id o9I4UIPa031065
  36.  
  37. for <xxx@harte-lyne.ca>; Mon, 18 Oct 2010 00:30:19 -0400
  38.  
  39. Date: Mon, 18 Oct 2010 00:30:18 -0400
  40.  
  41. From: xxx@harte-lyne.ca
  42.  
  43. Reply-To: xxx@harte-lyne.ca
  44.  
  45. To: xxx@harte-lyne.ca
  46.  
  47. Message-Id: <4cbbcd5a340fb_aa6..fdbf993802ea@inet01.hamilton.harte-lyne.ca.tmail>
  48.  
  49. Subject: [ForEx] 2010-10-18 - USD HLL Commercial Exchange Rate Update Notice
  50.  
  51. Mime-Version: 1.0
  52.  
  53. Content-Type: multipart/alternative; boundary=mimepart_4cbbcd5b3b763_aa6..fdbf993803b1
  54.  
  55. X-Harte_and_Lyne_Limited-MailScanner-Information: For further information contact postmaster@harte-lyne.ca
  56.  
  57. X-Harte_and_Lyne_Limited-MailScanner-ID: o9I4UJrn013312
  58.  
  59. X-Harte_and_Lyne_Limited-MailScanner: Checked by clamav and Found to be clean
  60.  
  61. X-Harte_and_Lyne_Limited-MailScanner-SpamCheck: not spam,
  62.  
  63. SpamAssassin (not cached, score=-0.001, required 3,
  64.  
  65. autolearn=not spam, BAYES_50 0.00, SPF_HELO_PASS -0.00,
  66.  
  67. SPF_PASS -0.00)
  68.  
  69. X-MailScanner-From: forex.control@harte-lyne.ca
  70.  
  71.  
  72.  
  73.  
  74.  
  75. --mimepart_4cbbcd5b3b763_aa6..fdbf993803b1
  76.  
  77. Content-Type: text/plain; charset=utf-8
  78.  
  79. Content-Transfer-Encoding: Quoted-printable
  80.  
  81. Content-Disposition: inline
  82.  
  83.  
  84.  
  85.  
  86.  
  87. Harte & Lyne Limited
  88.  
  89.  
  90.  
  91. Commercial foreign currency exchange rates for USD, =
  92.  
  93.  
  94.  
  95. effective from 2010-10-18.
  96.  
  97.  
  98.  
  99. Discount Exchange Rate: 0.9107 =
  100.  
  101.  
  102.  
  103. (Invoice in USD, Requisition in CAD)
  104.  
  105. =
  106.  
  107.  
  108.  
  109. Premium Exchange Rate: 1.1130 =
  110.  
  111.  
  112.  
  113. (Requisition in USD, Invoice in CAD)
  114.  
  115. =
  116.  
  117.  
  118.  
  119. Nominal Exchange Rate: 1.0118
  120.  
  121. (Both Requisition and Invoice in USD)
  122.  
  123. =
  124.  
  125.  
  126.  
  127. =
  128.  
  129.  
  130.  
  131. **** The following for Accounting USE only ****
  132.  
  133. =
  134.  
  135.  
  136.  
  137. Payable Exchange Rate (fixed spread): 1.032075 =
  138.  
  139.  
  140.  
  141. Payable Exchange Rate (margin spread): 1.06243 =
  142.  
  143.  
  144.  
  145. =
  146.  
  147.  
  148.  
  149. Receivable Exchange Rate (fixed spread): 0.991601 =
  150.  
  151.  
  152.  
  153. Receivable Exchange Rate (margin spread): 0.961246 =
  154.  
  155.  
  156.  
  157. =
  158.  
  159.  
  160.  
  161.  
  162.  
  163. --mimepart_4cbbcd5b3b763_aa6..fdbf993803b1--
Add Comment
Please, Sign In to add comment