fetchmail-friends
[Top] [All Lists]

Re: [fetchmail] how to avoid retrieve the copy of pop3 email whenset leave copy on the server ??

2003-03-30 04:26:03
On Sun, Mar 30, 2003 at 01:31:28PM +0800, Temp (T) wrote:
T> Subject: Re: [fetchmail] how to avoid retrieve the copy of pop3 email
T> whenset leave copy on the server ??
T> 
T> > On Sun, Mar 30, 2003 at 12:43:02AM +0800, Temp wrote:
T> > > Hi, all
T> > >
T> > > I am a newbie of fetchmail, I want to know how to set
T> > > fetchmail to get pop3 email hourly and leave copy on
T> > > the server? need to maintain a list of email on local
T> > > disk or some timestamp ??
T> >
T> > set daemon 600
T> > poll pop3.yourdomain.org
T> > protocol pop3 uidl
T> > user remote with password verysecret, is local here
T> > keep
T> >
T> you mean that fetchmail can keep the pop3-mail clues of every account
T> if I run it with "deamon" ??

No, not quite. It means it will automatically check at each 600 seconds in
this case.

T> but I think about how to keep the clues for every account
T> in some files, so that next time, maybe an hour later, I could
T> check an retrieve only new mail from pop3 server.
T> 
T> I maintain hundreds accounts, and I want to run fetchmail by
T> every one's demand. and then call fetchmail to get just new email
T> in pop3 server for every one.

The snippet of config above is for only 1 user. If you want to run fetchmail
site-wide for multiple users, and run it as root (which I read between the
lines of your post) the setup above will probably not work quite the way you
want it.

You might want to have a look at the various manpages .. for instance 
fetchmail(1) says:

       ~/.fetchids
            default location of file associating hosts with  last
            message  IDs  seen (used only with newer RFC1725-com-
            pliant POP3 servers supporting the UIDL command).

This is where fetchmail leaves its status files, of which message has been
retrieved and which one not.

Also, have a look at the FAQ for information about multidrop setups. You can
find it at http://catb.org/~esr/fetchmail/fetchmail-FAQ.html

Gr,

Nils.