Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- puts(current_email.inspect)
- puts(current_email.body.inspect)
- puts(current_email.default_part_body.inspect)
- gives this
- #<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>>
- #<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>
- #<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>
- A message generated by the application in production looks like this:
- Return-Path: <xxx@harte-lyne.ca>
- Received: from inet07.hamilton.harte-lyne.ca ([unix socket])
- by inet07.hamilton.harte-lyne.ca (Cyrus v2.2.12-Invoca-RPM-2.2.12-10.el4_8.4) with LMTPA;
- Mon, 18 Oct 2010 00:30:21 -0400
- X-Sieve: CMU Sieve 2.2
- Received: from inet06.hamilton.harte-lyne.ca (inet06.hamilton.harte-lyne.ca [216.185.71.26])
- by inet07.hamilton.harte-lyne.ca (8.13.1/8.13.1) with ESMTP id o9I4UJrn013312
- for <xxx@harte-lyne.ca>; Mon, 18 Oct 2010 00:30:19 -0400
- Received: from harte-lyne.ca (inet01.hamilton.harte-lyne.ca [216.185.71.21])
- by inet06.hamilton.harte-lyne.ca (8.13.1/8.13.1) with ESMTP id o9I4UIPa031065
- for <xxx@harte-lyne.ca>; Mon, 18 Oct 2010 00:30:19 -0400
- Date: Mon, 18 Oct 2010 00:30:18 -0400
- From: xxx@harte-lyne.ca
- Reply-To: xxx@harte-lyne.ca
- To: xxx@harte-lyne.ca
- Message-Id: <4cbbcd5a340fb_aa6..fdbf993802ea@inet01.hamilton.harte-lyne.ca.tmail>
- Subject: [ForEx] 2010-10-18 - USD HLL Commercial Exchange Rate Update Notice
- Mime-Version: 1.0
- Content-Type: multipart/alternative; boundary=mimepart_4cbbcd5b3b763_aa6..fdbf993803b1
- X-Harte_and_Lyne_Limited-MailScanner-Information: For further information contact postmaster@harte-lyne.ca
- X-Harte_and_Lyne_Limited-MailScanner-ID: o9I4UJrn013312
- X-Harte_and_Lyne_Limited-MailScanner: Checked by clamav and Found to be clean
- X-Harte_and_Lyne_Limited-MailScanner-SpamCheck: not spam,
- SpamAssassin (not cached, score=-0.001, required 3,
- autolearn=not spam, BAYES_50 0.00, SPF_HELO_PASS -0.00,
- SPF_PASS -0.00)
- X-MailScanner-From: forex.control@harte-lyne.ca
- --mimepart_4cbbcd5b3b763_aa6..fdbf993803b1
- Content-Type: text/plain; charset=utf-8
- Content-Transfer-Encoding: Quoted-printable
- Content-Disposition: inline
- Harte & Lyne Limited
- Commercial foreign currency exchange rates for USD, =
- effective from 2010-10-18.
- Discount Exchange Rate: 0.9107 =
- (Invoice in USD, Requisition in CAD)
- =
- Premium Exchange Rate: 1.1130 =
- (Requisition in USD, Invoice in CAD)
- =
- Nominal Exchange Rate: 1.0118
- (Both Requisition and Invoice in USD)
- =
- =
- **** The following for Accounting USE only ****
- =
- Payable Exchange Rate (fixed spread): 1.032075 =
- Payable Exchange Rate (margin spread): 1.06243 =
- =
- Receivable Exchange Rate (fixed spread): 0.991601 =
- Receivable Exchange Rate (margin spread): 0.961246 =
- =
- --mimepart_4cbbcd5b3b763_aa6..fdbf993803b1--
Add Comment
Please, Sign In to add comment