Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Adrian Aichner <adrian@xemacs.org>
Subject: Re: Deleting mail from server with pop3
Date: 12 May 2002 23:23:16 +0200	[thread overview]
Message-ID: <r8kh83i3.fsf@smtprelay.t-online.de> (raw)
In-Reply-To: <pu015e18.fsf@morpheus.demon.co.uk>

>>>>> "Paul" == Paul Moore <gustav@morpheus.demon.co.uk> writes:

Hi Paul,

    Paul> If I understand the code correctly (*not* a foregone
    Paul> conclusion :-)) gnus uses pop3.el from the xemacs mail-lib
    Paul> package to do POP3 retrieval of mail. The sequence of events

The XEmacs gnus package does, yes.

    Paul> when retrieving mail is: first, retrieve messages 1..N, then
    Paul> delete messages N..1.

    Paul> I have a problem with this. My ISP has a tendency towards
    Paul> randomly dropping the connection. When this happens during a
    Paul> mail retrieval, I get a load of downloaded messages which
    Paul> haven't been deleted off the server. This has two
    Paul> consequences - first, there is a big chunk of data which
    Paul> gets downloaded twice, and second, mail gets duplicated (if
    Paul> I let the crashbox be processed) or lost (if I delete the
    Paul> crashbox).

    Paul> What I would prefer would be to delete each message
    Paul> immediately after it has been downloaded. I looked at the
    Paul> code in pop3.el, and there doesn't seem to be a way to
    Paul> achieve this as the code stands. And my elisp skills are
    Paul> definitely not up to something like this...

    Paul> Does anyone know of a way of achieving something like this? 
    Paul> Or alternatively, am I doing something wrong? If the
    Paul> connection drops while pop3 is downloading or deleting
    Paul> messages, is there a way of recovering *without* getting
    Paul> duplicate messages?

I am using
(setq nnmail-treat-duplicates 'delete)
and don't have to worry about any duplicates.

This does not fix the double download problem, though.

In some cases I have to go and move ~/.uidls out of the way when Gnus
does not want to download mails, which I had previously disqualified
via
(setq pop3-maximum-message-size 524288)

Adrian

    Paul> Thanks, Paul (Just finished trawling through a couple of
    Paul> hundreds of spam messages, each duplicated 3 times :-()

    Paul> PS "Get a new ISP" is a reasonable suggestion, but
    Paul> unfortunately not practical...

-- 
Adrian Aichner
 mailto:adrian@xemacs.org
 http://www.xemacs.org/


  reply	other threads:[~2002-05-12 21:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-12 20:05 Paul Moore
2002-05-12 21:23 ` Adrian Aichner [this message]
     [not found] ` <m3bsbjc2yf.fsf@peorth.gweep.net>
2002-05-14  7:42   ` Scott Gifford

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=r8kh83i3.fsf@smtprelay.t-online.de \
    --to=adrian@xemacs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).