Hi:
I am on a critical project and need your help. The goal of the
project is to retrieve undelivered emails from an email server.
Everything works except that I couldn't seem to get the entire email
file. From the WiTango script, it shows there are six parts in the
email file, but it only pulled the text/plain parts and not the other.
The entire multi-part email text in included below, as well as the
Witango script and it results.
Can someone tell me where did I do wrong, and show me how to retrieve
the entire email text please?
Thanks in advance!
MC
--------------------- This is the WiTango script ---------------------------
<@EMAILSESSION RETRIEVE NAME=request$loopemailvar MESSAGEID='<@VAR
request$messageList[@@request$loopcnt,1]>' SESSIONID="<@USERREFERENCE>">
<@ASSIGN NAME="BodyStr" SCOPE="request" VALUE=<@EMAIL STRUCTURE
NAME=request$loopemailvar SESSIONID='<@USERREFERENCE>' TYPE='ARRAY'>>
<@ASSIGN NAME="EMPartID" SCOPE="request" VALUE='@@request$BodyStr'>
<@ROWS ARRAY=request$EMPartID>
EMPART: @@request$EMPartID[<@CURROW>,1] -
@@request$EMPartID[<@CURROW>,2]/@@request$EMPartID[<@CURROW>,3]<br>
ENTITYBODY: <@EMAIL GETENTITYBODY
PARTID=@@request$EMPartID[<@CURROW>,1] NAME=request$loopemailvar><p>
</@ROWS>
--------------------- This is the result -------------------------------------
EMPART: 1 - multipart/report
ENTITYBODY:
EMPART: 1.1 - text/plain
ENTITYBODY: The original message was received at Thu, 23 Aug 2007
15:16:16 -0700 ----- The following addresses had permanent fatal
errors ----- <[EMAIL PROTECTED]> ----- Transcript of
session follows ----- ... while talking to mx1.hotmail.com >>> RCPT
To:<[EMAIL PROTECTED]> <<< 550 Requested action not taken:
mailbox unavailable ]
EMPART: 1.2 - message/delivery-status
ENTITYBODY:
EMPART: 1.2.1 - text/plain
ENTITYBODY: Original-Recipient: RFC822;
<[EMAIL PROTECTED]> Final-Recipient: RFC822;
<[EMAIL PROTECTED]> Action: failed Remote-MTA: DNS;
mx1.hotmail.com Last-Attempt-Date: Thu, 23 Aug 2007 15:16:16 -0700 ]
EMPART: 1.3 - message/rfc822
ENTITYBODY:
EMPART: 1.3.1 - text/html
ENTITYBODY:
----------------------- This is the actual email file from the email
server ------------------------
Received: from mail.myclientdomain.com
by mail.myclientdomain.com (Merak 8.0.3) with SMTP id LTH38369
for <[EMAIL PROTECTED]>; Thu, 23 Aug 2007 15:16:16 -0700
Date: Thu, 23 Aug 2007 15:16:16 -0700
From: Mail Delivery Subsystem <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Message-Id: <[EMAIL PROTECTED]>
Subject: Returned mail: response error
Content-Type: multipart/report; report-type=delivery-status;
boundary="[EMAIL PROTECTED]"
[EMAIL PROTECTED]
The original message was received at Thu, 23 Aug 2007 15:16:16 -0700
----- The following addresses had permanent fatal errors -----
<[EMAIL PROTECTED]>
----- Transcript of session follows -----
.... while talking to mx1.hotmail.com
>>> RCPT To:<[EMAIL PROTECTED]>
<<< 550 Requested action not taken: mailbox unavailable
[EMAIL PROTECTED]
Content-Type: message/delivery-status
Reporting-MTA: DNS; mail.myclientdomain.com
Arrival-Date: Thu, 23 Aug 2007 15:16:16 -0700
Original-Recipient: RFC822; <[EMAIL PROTECTED]>
Final-Recipient: RFC822; <[EMAIL PROTECTED]>
Action: failed
Remote-MTA: DNS; mx1.hotmail.com
Last-Attempt-Date: Thu, 23 Aug 2007 15:16:16 -0700
[EMAIL PROTECTED]
Content-Type: message/rfc822
Return-Path: <[EMAIL PROTECTED]>
Received: from 75.209.163.181 ([75.209.163.181])
by mail.myclientdomain.com (Merak 8.0.3) with SMTP id LTH38369
for <[EMAIL PROTECTED]>; Thu, 23 Aug 2007 15:16:15 -0700
Subject: Testing
Date: Thu, 23 Aug 2007 15:15:42 -0700
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/html; charset="iso-8859-1"
Content-transfer-encoding: quoted-printable
X-Mailer: Witango Server Version 5.5.020 Liquorice (Win32)
CUSTOM-XHEADER: [22112233;[EMAIL PROTECTED]
[EMAIL PROTECTED]
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf