Francois,

I'm trying to write a very basic automation, which should try to detect some 
patterns within mails, and if a mail content matches, it should save that mail 
for further processing and delete it from the pop3 server. Each unprocessed 
('unknown' content) should stay on the server, until there's a handler for that 
unknown pattern.

In other words, it should be a system where rules/patterns are added as soon as 
they're needed.

What I've done so far is using a TPop3Cli component to read mails (in the first 
step without deleting from server) and a TMimeDecodeW component to get the 
contents. What's to do next is to separate readable (textual) parts of the mail 
and ignore all inlines or attachments.

I don't need full code, but a step by step guideline on how to accomplish it. 
Currently I'm trying to use TMimeDecodeEx, which seems toi do what I need.

Michael

-----Original Message-----
From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On 
Behalf Of Francois PIETTE
Sent: Wednesday, November 18, 2009 6:48 AM
To: ICS support mailing
Subject: Re: [twsocket] Decoding MIME messages

> What I basically need is to extract a text part from each mail, regardless
> how many contents it may have.

The "text part" is not well defined. You may have an HTML message which is
not trivial to convert to a text file. Rendered on screen by a HTML rendere,
it may looks like plain text but actually it isn't. You may also have an RTF
formatted message. Or a plain text part and a HTML part with eauivalent
content. You have to handle all the situation by detecting what format it
is. You are helped by the various headers.

Are you writing an email client, that is a program whose goal is to display
messages on screen ? Then you need ICS-POP3 component to retieve the
messages, ICS MIME component to extract the parts and as many renderer
component as you want to support messages types.

Are you writing some sort of automation which uses email as transport and
use the data within email for data processing and not to display it on
screen as an email ? That's a different thing.


--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Legal Notice: 

HEM Vertriebs GmbH
Haller Strasse 30
D-74523 Schwaebisch Hall
Fon: +49-791-4079-0
Fax: +49-791-4079-80 

http://www.hem.de   email: i...@hem.de

Rechtsform : HEM Vertriebs GmbH
Handelsregister : Stuttgart HRB 570346
Steuernummer: 84060/00397 UST-ID DE256870483
Sitz der Gesellschaft : Schwäbisch Hall
Geschaeftsfuehrer: Gunter Schaaf, Rene Schaaf

--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to