my delivery is done by the exim, and i use maildir. Well, i will use the mail_get_first_header with the Return-Path.
Tks. Em 13/06/2011 10:09, "Timo Sirainen" <[email protected]> escreveu: > On Fri, 2011-06-10 at 09:19 -0300, Alex Baule wrote: >> Hi Timo... >> >> Inside my plugin, i use the (mail_get_first_header(mail, "From", >> &header) function, to get the email From to put in some Blacklist. >> >> Looking in the header under this mail, we have 2 "From" fields. > > Do you mean these? > > From [email protected] Tue Jun 07 15:43:04 2011 > From: "CompraFacil.com.br" <[email protected]> > >> Using the function above, i get the Second "From", but my MTA (exim) >> look in to The First From, in the First Line, in that way, my >> blacklist don't work, because the sender to be blocked is different >> from >> >> the From looked by dovecot. >> >> There is a way to get the "From" from First line ? > > The first line isn't a From: header. It's the "envelope sender". That > line typically exists only with mbox format, not with other mailbox > formats.. If you deliver a mail via dovecot-lda it removes this From > line if it sees it. > > Typically you'd get this info from Return-Path: header. >
