Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
Subject: Re: Bug when using the agent and spam.el
Date: Tue, 11 Feb 2003 13:03:23 -0500	[thread overview]
Message-ID: <4nd6lyr8yc.fsf@lockgroove.bwh.harvard.edu> (raw)
In-Reply-To: <uy94n9isw.fsf@axis.com> (Niklas Morberg's message of "Tue, 11 Feb 2003 12:07:59 +0100")

On Tue, 11 Feb 2003, niklas.morberg@axis.com wrote:
> Now I've found the time to be constructive and not only
> whine about the problems I'm having with the agent. This is
> what I do:
> 
> 1. I enter a ham group with two new messages. One is spam
>    and one is ham.
> 2. I view the ham message.
> 3. I mark the spam message as spam with `M-d' without
>    viewing it.
> 4. I exit the group.
> 
> The next time I enter the group the spam message is still
> there (marked as unread and undownloaded). This is terribly
> frustrating when it happens to tens (and possibly hundreds)
> of spam emails at a time and has made me stop using `M-d'
> and instead just move the spam messages in my ham groups out
> of the way with `B m'.

I don't use the agent, so I can't really duplicate your situation.
Are you sure your spam-process-destination is set for that group?
What does 
(gnus-parameter-spam-process-destination gnus-newsgroup-name) return
when you are in that group?

> Some more observations:
> 
> - The spam message is not cached by the agent.
> - The spam message is not on the IMAP server (verified by
>   using another IMAP client to look at the group).
> - gnus-agent-regenerate does not help.
> - Unplugging and replugging the agent does not help.
> - Restarting Gnus does help and the message is no longer
>   visible in the summary buffer.
> 
> Could it be that the method used by spam.el to move messages
> is not the standard one? Perhaps this is also the reason
> that moving messages out of the spam group automatically
> does not work (pure guessing without having looked at the
> code).

See the other thread for the spam-ham-move-routine;
spam-mark-spam-as-expired-and-move-routine is similar for spam
moving.  I just call (gnus-summary-move-article nil group) with
gnus-current-article set to the article number of interest.  My code
is probably wrong, since I had to figure things out pretty much by
myself - suggestions for fixing it or pointers to places in the Gnus
code where articles are moved properly are welcome.

Ted



  reply	other threads:[~2003-02-11 18:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-11 11:07 Niklas Morberg
2003-02-11 18:03 ` Ted Zlatanov [this message]
2003-02-12  8:11   ` Niklas Morberg

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=4nd6lyr8yc.fsf@lockgroove.bwh.harvard.edu \
    --to=tzz@lifelogs.com \
    /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).