On Mon, Mar 19, 2001 at 10:09:17AM +0530, Suresh Ramasubramanian typed:
> V.Suresh rearranged electrons thusly:
>
> > When downloading mails from a server, is it possible to leave
> > the mail's status as is? ie, new mails should remain new, even after
> > retrieving. IS there any option for this?
>
> The keep option in fetchmail approximates what you are looking for - but
> mails get marked old (will be retrieved by "fetchall" anyway). However, if
> your pop server supports and uses UIDL, look for a file called .fetchids in
> your home directory and delete it. That should serve the purpose if you
> again run fetchmail with "keep" but still want to download all the mails.
Actually the implementation of "Unread" status in POP3 servers is pretty
non-standard. POP3 doesn't really define it, but various flavors of POP3
servers do implement it by adding a "Status : RO" header line once the
message has been read.
Under some conditions (IIRC it is when the server doesn't support UIDL -
but not cent percent sure), fetchmail uses the TOP command to retrieve
mail instead of the RETR command. In this case the messages on the
server remain "unread".
So may be Suresh could achive what he wants by using some vague
combination of fetchmail options. So read the fetchmail docs very
carefully and try experimenting some - And tell us what you find :-)
If one is adventurous enough, patching fetchmail to use TOP instead of
RETR for reading messages should do the job I think.
Kala
----------------------------------------------
LIH is all for free speech. But it was created
for a purpose. Violations of the rules of
this list will result in stern action.