From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/439 Path: news.gmane.org!not-for-mail From: Paul Moore Newsgroups: gmane.emacs.gnus.user Subject: Deleting mail from server with pop3 Date: 12 May 2002 21:05:47 +0100 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138667412 6912 80.91.229.2 (31 Jan 2006 00:30:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:30:12 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:27:35 2006 Original-Path: quimby.gnus.org!news.ccs.neu.edu!news.dfci.harvard.edu!news.cis.ohio-state.edu!usenet01.sei.cmu.edu!logbridge.uoregon.edu!kibo.news.demon.net!news.demon.co.uk!demon!morpheus.demon.co.uk!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Sender: Gustav@MORPHEUS Original-NNTP-Posting-Host: morpheus.demon.co.uk X-NNTP-Posting-Host: morpheus.demon.co.uk:158.152.8.30 Original-X-Trace: news.demon.co.uk 1021233941 nnrp-14:8162 NO-IDENT morpheus.demon.co.uk:158.152.8.30 Original-X-Complaints-To: abuse@demon.net User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp (Windows [1])) Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:579 Original-Lines: 28 X-Gnus-Article-Number: 579 Tue Jan 17 17:27:35 2006 Xref: news.gmane.org gmane.emacs.gnus.user:439 Archived-At: If I understand the code correctly (*not* a foregone conclusion :-)) gnus uses pop3.el from the xemacs mail-lib package to do POP3 retrieval of mail. The sequence of events when retrieving mail is: first, retrieve messages 1..N, then delete messages N..1. I have a problem with this. My ISP has a tendency towards randomly dropping the connection. When this happens during a mail retrieval, I get a load of downloaded messages which haven't been deleted off the server. This has two consequences - first, there is a big chunk of data which gets downloaded twice, and second, mail gets duplicated (if I let the crashbox be processed) or lost (if I delete the crashbox). What I would prefer would be to delete each message immediately after it has been downloaded. I looked at the code in pop3.el, and there doesn't seem to be a way to achieve this as the code stands. And my elisp skills are definitely not up to something like this... Does anyone know of a way of achieving something like this? Or alternatively, am I doing something wrong? If the connection drops while pop3 is downloading or deleting messages, is there a way of recovering *without* getting duplicate messages? Thanks, Paul (Just finished trawling through a couple of hundreds of spam messages, each duplicated 3 times :-() PS "Get a new ISP" is a reasonable suggestion, but unfortunately not practical...