E
Edwinah63
Hi everyone,
I would some advice/code on how to extract the various parts from a
multipart/related email in order to save the correct parts to the
correct database tables.
I need to extract the text portion of a multipart/related email and
save it to one table, and the attached image/BLOB part of it to
another related table.
For example:
I have no problem extracting the text from any kind email with
*external attachments only*. I have no trouble extracting any kind of
external attachment....however....
if I process an email with text and in-line image file which is
multipart/related
I get this:
------_=_NextPart_002_01C7FA7E.166DF35A Content-Type: text/html;
charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
HERE IS THE=20 TEXT I WANT
------_=_NextPart_002_01C7FA7E.166DF35A Content-Type: image/bmp;
name="Outlook.bmp" Content-Transfer-Encoding: base64 Content-ID:
<890092905@19092007-127d> Content-Description: Outlook.bmp Content-
Location: Outlook.bmp
Qk0OiQAAAAAAADYAAAAoAAAAyQAAADoAAAABABgAAAAAANiIAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAl2YAilwAilwAilwAilwAilwAilwAilwAilwAilwA
ilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwA
ilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwA
ilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwA
(part of much longer file)
in a single BLOB not the text "HERE IS THE TEXT I WANT" as a separate
item and the image (JavaWorld logo) as another.
Any and all help appreciated.
Edwina
I would some advice/code on how to extract the various parts from a
multipart/related email in order to save the correct parts to the
correct database tables.
I need to extract the text portion of a multipart/related email and
save it to one table, and the attached image/BLOB part of it to
another related table.
For example:
I have no problem extracting the text from any kind email with
*external attachments only*. I have no trouble extracting any kind of
external attachment....however....
if I process an email with text and in-line image file which is
multipart/related
I get this:
------_=_NextPart_002_01C7FA7E.166DF35A Content-Type: text/html;
charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
HERE IS THE=20 TEXT I WANT
------_=_NextPart_002_01C7FA7E.166DF35A Content-Type: image/bmp;
name="Outlook.bmp" Content-Transfer-Encoding: base64 Content-ID:
<890092905@19092007-127d> Content-Description: Outlook.bmp Content-
Location: Outlook.bmp
Qk0OiQAAAAAAADYAAAAoAAAAyQAAADoAAAABABgAAAAAANiIAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAl2YAilwAilwAilwAilwAilwAilwAilwAilwAilwA
ilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwA
ilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwA
ilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwAilwA
(part of much longer file)
in a single BLOB not the text "HERE IS THE TEXT I WANT" as a separate
item and the image (JavaWorld logo) as another.
Any and all help appreciated.
Edwina