Re: parse postfix stream
- From: "Peter J. Holzer" <hjp-usenet2@xxxxxx>
- Date: Wed, 30 Jul 2008 19:32:51 +0200
On 2008-07-30 06:41, Christian Vallant <christian.vallant@xxxxxxxxxxxx> wrote:
hello!
I would like to use the postfix-command
test unix - n n - 1 pipe
flags=R user=test argv=/usr/bin/test.pl -d -n ${user}
to send an e-mail to an file. Now i have to parse the mail with perl.
In the subject you wrote that you need to parse the postfix stream. Here
you write that you need to parse the mail. What is it?
For parsing mail I'd suggest MIME::Parser. It's a bit heavyweight, but
reliable and does just about everything you might need.
Parsing a postfix stream is a different matter. I don't know any perl
module which does this and no documentation of the stream format.
However, you might want to have a look at the Postfix support in qpsmtpd
- it creates such a stream instead of parsing it.
hp
.
- References:
- parse postfix stream
- From: Christian Vallant
- parse postfix stream
- Prev by Date: Re: FAQ 4.2 Why is int() broken?
- Next by Date: FAQ 4.3 Why isn't my octal data interpreted correctly?
- Previous by thread: parse postfix stream
- Next by thread: FAQ 4.34 How do I extract selected columns from a string?
- Index(es):