Malte Starostik <malte(_at_)starostik(_dot_)de> writes:
Hi,
I have several accounts that should be fetched and delivered to the same
local user, but into different IMAP folders. The problem is that some
messages (okay, mostly spam but not exclusively) can't be reliably
filtered into folders with procmail based solely on their headers
(fetchmail's Received: line only includes the target user in the "for
<xxx(_at_)yyy>" part, but not the source account). Maybe there could be an
option to have fetchmail add a header like X-Fetched-From: user(_at_)host?
Untested: Use local address extensions and filter on those (or use
~malte/.forward+s1 and ~malte/.forward+s2 to directly file the mail,
without procmail interference).
poll pop.server1.de
user malte there pass forelle is malte+s1 here
poll imap.server2.org
user mstarostik there pass lachs is malte+s2 here
--
Matthias Andree