claney
12-17-2009, 11:55 AM
hi - we have a problem processing emails that have just one attachment and no other content. getBody() returns the bytes of the attachment and getAttachments() returns null. Some of them don't have a content-type header either. i expected getBody() to return null and getAttachments() to return 1 object.
i've pasted a sample below. how do you recommend we handle these ?
Thanks, Simon
Delivered-To: yyy@yyyyy.com
Received: by 99.99.99.99 with SMTP id q3cs67224ybd;
Fri, 11 Dec 2009 03:13:25 -0800 (PST)
Received: by 99.99.99.99 with SMTP id j28mr668158ebp.79.1260529904001;
Fri, 11 Dec 2009 03:11:44 -0800 (PST)
Return-Path: <xxx@xxxxxxx.com>
Received: from xxxxxx.gov.uk (xxxxx.gov.uk [99.99.99.99])
by mx.google.com with ESMTP id 25si3686299ewy.25.2009.12.11.03.11.42;
Fri, 11 Dec 2009 03:11:43 -0800 (PST)
Received-SPF: pass (google.com: best guess record for domain of xxx@xxxxxxx.com designates 99.99.99.99 as permitted sender) client-ip=99.99.99.99;
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xxx@xxxxxxx.com designates 99.99.99.99 as permitted sender) smtp.mail=xxx@xxxxxxx.com
Date: Fri, 11 Dec 2009 11:08:06 GMT
From: Oracle Applications PROD <xxx@xxxxxxx.com>
Message-Id: <200912111108.nBBB8692018549@xxxxxxx.com>
To: yyy@yyyyy.com
Subject: Purchase Order
X-SandwellMBC-Virus-Scan: Scanned on condor
begin 644 9054891.pdf
M)5!$1BTQ+C$*,2 P(&]B:@H\/ HO0W)E871O<B H1&5V96QO<&5R(#(P,# I
M"B]#<F5A=&]R1&%T92 H1G)I($1E8R Q,2 Q,3HP-SHT-B!!32 R,# Y*0HO
M075T:&]R("A/<F%C;&4@4F5P;W)T<RD*+U!R;V1U8V5R("A/<F%C;&4@4$1&
M(&1R:79E<BD*+U1I=&QE("AO.3 U-#@U-BYO=70I"CX^"F5N9&]B:@HU(# @
M;V)J"CP\+TQE;F=T:" V(# @4CX^"G-T<F5A;0IQ"C N,# @,"XP," U-S4N
M.#0@-SDR+C P(')E(%<@;@HP+C P('<*,"!*"C @:@HQ,BXY,B Q.#0N.#@@
M,C<N.#@@,C@V+C$R(')E(%,*-#<U+C X(#$X-"XX." X,BXY,B R.#8N,3(@
M<F4@4PHT,3 N,C@@,3@T+C@X(#8T+C@P(#(X-BXQ,B!R92!3"G$*-#$U+C8T
M(#$W,2XR-" U."XY,B Q,BXP,"!R92!7(&X*0E0*-#$U+C8T(#$W,RXV-"!4
M1 HO1C @,3 N,# @5&8**%1O=&%L(%9A;'5E*2!4:@I%5 I1(# @9R P($<*
M,"XP,"!W"C @2@HP(&H*,S4Y+CDR(#$X-"XX." U,"XT," R.#8N,3(@<F4@
M4PHS,34N-S8@,3@T+C@X(#0T+C$V(#(X-BXQ,B!R92!3"C0P+C8T(#$X-"XX
....
M,# @;B *,# P,# T-S<Y," P,# P,"!N( IT<F%I;&5R"CP\"B]3:7IE(#$R
M"B]2;V]T(#(@,"!2"B]);F9O(#$@,"!2"CX^"G-T87)T>')E9@HT.#$U,0HE
$)45/1F]T
end
i've pasted a sample below. how do you recommend we handle these ?
Thanks, Simon
Delivered-To: yyy@yyyyy.com
Received: by 99.99.99.99 with SMTP id q3cs67224ybd;
Fri, 11 Dec 2009 03:13:25 -0800 (PST)
Received: by 99.99.99.99 with SMTP id j28mr668158ebp.79.1260529904001;
Fri, 11 Dec 2009 03:11:44 -0800 (PST)
Return-Path: <xxx@xxxxxxx.com>
Received: from xxxxxx.gov.uk (xxxxx.gov.uk [99.99.99.99])
by mx.google.com with ESMTP id 25si3686299ewy.25.2009.12.11.03.11.42;
Fri, 11 Dec 2009 03:11:43 -0800 (PST)
Received-SPF: pass (google.com: best guess record for domain of xxx@xxxxxxx.com designates 99.99.99.99 as permitted sender) client-ip=99.99.99.99;
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xxx@xxxxxxx.com designates 99.99.99.99 as permitted sender) smtp.mail=xxx@xxxxxxx.com
Date: Fri, 11 Dec 2009 11:08:06 GMT
From: Oracle Applications PROD <xxx@xxxxxxx.com>
Message-Id: <200912111108.nBBB8692018549@xxxxxxx.com>
To: yyy@yyyyy.com
Subject: Purchase Order
X-SandwellMBC-Virus-Scan: Scanned on condor
begin 644 9054891.pdf
M)5!$1BTQ+C$*,2 P(&]B:@H\/ HO0W)E871O<B H1&5V96QO<&5R(#(P,# I
M"B]#<F5A=&]R1&%T92 H1G)I($1E8R Q,2 Q,3HP-SHT-B!!32 R,# Y*0HO
M075T:&]R("A/<F%C;&4@4F5P;W)T<RD*+U!R;V1U8V5R("A/<F%C;&4@4$1&
M(&1R:79E<BD*+U1I=&QE("AO.3 U-#@U-BYO=70I"CX^"F5N9&]B:@HU(# @
M;V)J"CP\+TQE;F=T:" V(# @4CX^"G-T<F5A;0IQ"C N,# @,"XP," U-S4N
M.#0@-SDR+C P(')E(%<@;@HP+C P('<*,"!*"C @:@HQ,BXY,B Q.#0N.#@@
M,C<N.#@@,C@V+C$R(')E(%,*-#<U+C X(#$X-"XX." X,BXY,B R.#8N,3(@
M<F4@4PHT,3 N,C@@,3@T+C@X(#8T+C@P(#(X-BXQ,B!R92!3"G$*-#$U+C8T
M(#$W,2XR-" U."XY,B Q,BXP,"!R92!7(&X*0E0*-#$U+C8T(#$W,RXV-"!4
M1 HO1C @,3 N,# @5&8**%1O=&%L(%9A;'5E*2!4:@I%5 I1(# @9R P($<*
M,"XP,"!W"C @2@HP(&H*,S4Y+CDR(#$X-"XX." U,"XT," R.#8N,3(@<F4@
M4PHS,34N-S8@,3@T+C@X(#0T+C$V(#(X-BXQ,B!R92!3"C0P+C8T(#$X-"XX
....
M,# @;B *,# P,# T-S<Y," P,# P,"!N( IT<F%I;&5R"CP\"B]3:7IE(#$R
M"B]2;V]T(#(@,"!2"B]);F9O(#$@,"!2"CX^"G-T87)T>')E9@HT.#$U,0HE
$)45/1F]T
end