mutt
Bas van Gils
basvg at cs.ru.nl
Sat Nov 5 21:26:09 UTC 2005
On Sat, Nov 05, 2005 at 10:53:07AM -0800, eric dan wrote:
> is there another option to leave mail on the server but not get the
> same mail all the time again when i retrieve it?
> right now i have 5 copies of all messages in my inbox and everytime i
> use getmail i get another one.
Hi,
I'm not 100% up to speed with getmail but I thought I'd post anyway to see if
I could help. I use fetchmail rather than getmail (and wrote a short howto to
setup fetchmail with procmail [1]). In man fetchmail I read:
-a | --all
(Keyword: fetchall) Retrieve both old (seen) and new messages
from the mailserver. The default is to fetch only messages the
server has not marked seen. Under POP3, this option also forces
the use of RETR rather than TOP. Note that POP2 retrieval
behaves as though --all is always on (see RETRIEVAL FAILURE
MODES below) and this option does not work with ETRN or ODMR.
-k | --keep
(Keyword: keep) Keep retrieved messages on the remote
mailserver. Normally, messages are deleted from the folder on
the mailserver after they have been retrieved. Specifying the
keep option causes retrieved messages to remain in your folder
on the mailserver. This option does not work with ETRN or ODMR.
This tells me that if you use fetchmail *with* the -k and *without* the -a
option you get exactly what you want. Perhaps getmail has similar options, you
could check the man pages I suppose...
Hope this helps,
Bas
[1] http://osiris.cs.kun.nl/~basvg/misc/howto.html
--
<Bas.vanGils at cs.ru.nl> - GPG Key ID: 2768A493 - http://www.cs.ru.nl/~basvg
Radboud University Nijmegen Institute for Computing and Information Sciences
More information about the ubuntu-users
mailing list