Guest User

Untitled

a guest
Jun 19th, 2018
260
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: [email protected]>, <Reply-To: [email protected]>, <To: [email protected]>, <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: <[email protected]>
  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 <[email protected]>; 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 <[email protected]>; Mon, 18 Oct 2010 00:30:19 -0400
  38.  
  39. Date: Mon, 18 Oct 2010 00:30:18 -0400
  40.  
  41.  
  42.  
  43.  
  44. Message-Id: <4cbbcd5a340fb_aa6..fdbf993802ea@inet01.hamilton.harte-lyne.ca.tmail>
  45.  
  46. Subject: [ForEx] 2010-10-18 - USD HLL Commercial Exchange Rate Update Notice
  47.  
  48. Mime-Version: 1.0
  49.  
  50. Content-Type: multipart/alternative; boundary=mimepart_4cbbcd5b3b763_aa6..fdbf993803b1
  51.  
  52. X-Harte_and_Lyne_Limited-MailScanner-Information: For further information contact [email protected]
  53.  
  54. X-Harte_and_Lyne_Limited-MailScanner-ID: o9I4UJrn013312
  55.  
  56. X-Harte_and_Lyne_Limited-MailScanner: Checked by clamav and Found to be clean
  57.  
  58. X-Harte_and_Lyne_Limited-MailScanner-SpamCheck: not spam,
  59.  
  60. SpamAssassin (not cached, score=-0.001, required 3,
  61.  
  62. autolearn=not spam, BAYES_50 0.00, SPF_HELO_PASS -0.00,
  63.  
  64. SPF_PASS -0.00)
  65.  
  66. X-MailScanner-From: [email protected]
  67.  
  68.  
  69.  
  70.  
  71.  
  72. --mimepart_4cbbcd5b3b763_aa6..fdbf993803b1
  73.  
  74. Content-Type: text/plain; charset=utf-8
  75.  
  76. Content-Transfer-Encoding: Quoted-printable
  77.  
  78. Content-Disposition: inline
  79.  
  80.  
  81.  
  82.  
  83.  
  84. Harte & Lyne Limited
  85.  
  86.  
  87.  
  88. Commercial foreign currency exchange rates for USD, =
  89.  
  90.  
  91.  
  92. effective from 2010-10-18.
  93.  
  94.  
  95.  
  96. Discount Exchange Rate: 0.9107 =
  97.  
  98.  
  99.  
  100. (Invoice in USD, Requisition in CAD)
  101.  
  102. =
  103.  
  104.  
  105.  
  106. Premium Exchange Rate: 1.1130 =
  107.  
  108.  
  109.  
  110. (Requisition in USD, Invoice in CAD)
  111.  
  112. =
  113.  
  114.  
  115.  
  116. Nominal Exchange Rate: 1.0118
  117.  
  118. (Both Requisition and Invoice in USD)
  119.  
  120. =
  121.  
  122.  
  123.  
  124. =
  125.  
  126.  
  127.  
  128. **** The following for Accounting USE only ****
  129.  
  130. =
  131.  
  132.  
  133.  
  134. Payable Exchange Rate (fixed spread): 1.032075 =
  135.  
  136.  
  137.  
  138. Payable Exchange Rate (margin spread): 1.06243 =
  139.  
  140.  
  141.  
  142. =
  143.  
  144.  
  145.  
  146. Receivable Exchange Rate (fixed spread): 0.991601 =
  147.  
  148.  
  149.  
  150. Receivable Exchange Rate (margin spread): 0.961246 =
  151.  
  152.  
  153.  
  154. =
  155.  
  156.  
  157.  
  158.  
  159.  
  160. --mimepart_4cbbcd5b3b763_aa6..fdbf993803b1--
Add Comment
Please, Sign In to add comment