[fetchmail]How fetchmail read mails header ?

Rob MacGregor rob.macgregor@gmail.com
Mon, 12 Sep 2005 19:18:50 +0100


On 12/09/05, rahul <rahul_zoro2000@yahoo.com> wrote:
> Hi,=20
>  =20
> I have one pop a/c name maya@example.com.=20
> &=20
> one forward a/c name nidh@example.com. All mails nidh@example.com forward=
s
> to the catchall a/c name catchall@example.com.=20
>=20
> When i send a mail from my yahoo a/c to maya@example.com, nidh@example.co=
m.=20
> maya@example.com=20
> &
> nidh@example.com mails forward to catchall@example.com=20
>=20
> When i open my catchall@example.com a/c on net. You can see my mail with
> full headers see bellow:-=20

If that is everything, you have a problem - there is no
Envelope/Delivered-To header (and you're abusing the "To" header for
that purpose).

> When Fetchmail fetch all mails from catchall@example.com it send one mail=
 to
> nidh@example.com & again send one mail to maya@example.com remotelly.=20
> MY PROBLEM IS :-
> why fetchmail again send one mail to maya@example.com.=20
> fetchmail configration:-=20
> poll 203.216.202.87  with proto POP3
> localdomains example.com localhost
> From:*@example.com
> Return-Path: <*@example.com>

Are you sure?  Those lines aren't valid fetchmail config entries and
should cause fetchmail to error.

> envelope  'for <*@example.com>'

And that's not how you use the envelope command either - RTFM.

> user catchall@example.com there with password "password" is * here
> fetchall=20
>  =20
> How can i tell the fetchmail only read  for <nidh@example.com>. header ?=
=20

In short, you can't.  Fetchmail isn't designed to work that way.

--=20
                 Please keep list traffic on the list.
Rob MacGregor
      Whoever fights monsters should see to it that in the process he=20
        doesn't become a monster.                  Friedrich Nietzsche