Thierry B wrote:
Sam Varshavchik a écrit :
Thierry B writes:
Hello,
I try this test with maildrop with an eml file that I've created:
debian:/home/thierry# cat message4.eml
From: xx...@free.fr
To: xx...@wanadoo.fr
Bcc: xx...@yyy.eu.org
Subject:zzzz
butthe mail that is in bcc header is not treated.
Your mail server removes the Bcc header before the message gets received
by maildrop.
Yes, I didn't make attention but it's sure it's logical lol but I don't
understand why I don't receive mail in the 2 sbdirs at the same time and
why it doesn't work with "Cc".
because the "to" in
to "$HOME/$DEFAULT/.Wanadoo/"
and other places _ends_ processing. in short
to mdir1
to mdir2
to mdir3
will only deliver to mdir1. and this doesn't change with foreach or
whatever construct you use.
you can achieve what you want by first building the list of folders,
using 'cc" for all but the last, where you would use 'to'. not very
appealing...
why would do all this stuff?
- if your address appears in both To and CC, then you probably received
the message twice.
- BCC should not appear in received mail (this would defeat its
purpose). but assuming it is not, you would get yet another copy.
if you can configure your MTA to generate a Delivered-To header, then
use this (and only this) to select the delivery folder. since the
message would be delivered N times, you will have it in all the folders.
thus achieving what you are trying to do.
Alternatively, let your MTA give the recipient as an argument to
maildrop and use this recipient to select the folder (similar to above).