On Mon, Feb 15, 2010 at 10:55 AM, Michele Carandente
<[email protected]> wrote:
> Hi to everyone.
> I need to extract from the email in HOLD queue the subject.
> So the emails are stored in /var/spool/postfix/hold
> I can see that before the Subject there is a special character, that
> is changing apparently random.
> Then, after the subject, there is apparently always N%Date
>
RFC 822 Item 4.1
Note: Due to an artifact of the notational conventions, the syn-
tax indicates that, when present, some fields, must be in
a particular order. Header fields are NOT required to
occur in any particular order, except that the message
body must occur AFTER the headers. It is recommended
that, if present, headers be sent in the order "Return-
Path", "Received", "Date", "From", "Subject", "Sender",
"To", "cc", etc.
RFC5322 Item 3.6
It is important to note that the header fields are not guaranteed to
be in a particular order. They may appear in any order, and they
have been known to be reordered occasionally when transported over
the Internet. However, for the purposes of this specification,
header fields SHOULD NOT be reordered when a message is transported
or transformed
> Do some of you know the criterion how postfix create the email queued?
> If I find that the subject is always between Subject: and N%Date, I
> can easly write a script to retrieve it...
>
> Thanks
> Michele
>
--
Reinaldo de Carvalho
http://korreio.sf.net
http://python-cyrus.sf.net
"Don't try to adapt the software to the way you work, but rather
yourself to the way the software works" (myself)