Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Spam messages not marked as expirable when exiting spam group
@ 2015-06-05  9:15 Bjørn-Helge Mevik
  0 siblings, 0 replies; only message in thread
From: Bjørn-Helge Mevik @ 2015-06-05  9:15 UTC (permalink / raw)
  To: info-gnus-english

I'm running Gnus v5.13 on GNU Emacs 23.1.1.

I'm using the Spam package (with the Spam Statistics package) to filter
out spam from my email.  The (hopefully) relevant part of my .gnus.el file
is:


(setq
 ;; Declare backends/processors for splitting incoming mail:
 spam-use-regex-headers t
 spam-regex-headers-spam '("^X-UiO-Spam-Score: sssss.*") ;spamAssasin score >= 5
 spam-use-stat t

 ;; Declare spam and ham groups:
 gnus-spam-newsgroup-contents
 '(("spam" gnus-group-spam-classification-spam)
   (".*" gnus-group-spam-classification-ham))

 ;; Training the spam detection tools:
 spam-process-ham-in-spam-groups t
 gnus-spam-process-newsgroups '((".*" ((spam spam-use-stat)
				       (ham spam-use-stat))))

 ;; Moving processed spam:
 gnus-spam-process-destinations '((".*" "nnimap:spam"))
 ;; Moving processed ham:
 spam-mark-ham-unread-before-move-from-spam-group t
 gnus-ham-process-destinations '(("spam" "nnimap:INBOX"))
 )
(spam-initialize)

(setq
 nnimap-split-inbox "INBOX"
 nnimap-split-download-body t		; For spam-stat
 nnimap-split-rule 'nnmail-split-fancy
 nnmail-split-fancy
 '(|
   [...]
   (: spam-split)
   [...]
   ))


In section 8.20.4 "Spam and Ham Processors" of the Gnus manual, it says:
"When you leave a _spam_ group, all spam-marked articles are marked as
expired after processing with the spam processor."  This does not appear
to happen for me.

I guess there is something I've misunderstood, or done wrong.  Can
anyone see what I've done wrong?


Here is a log from the *Messages* buffer when entering the nnimap:spam
group:

Retrieving newsgroup: nnimap:spam...
nnimap: Updating info for nnimap:spam...done
Fetching headers for nnimap:spam...
nnimap: Retrieving headers...done
Fetching headers for nnimap:spam...done
Generating summary...done
Marking unseen articles as spam
No more unread articles

So it appears the group is considered spam. ("Marking unseen articles as spam")

When exiting the group nnimap:spam:

Exiting summary buffer and applying spam rules
Registering 1 specific articles as spam using backend spam-use-stat
1 spam messages were registered by backend spam-use-stat.
Registering 1 specific articles as spam using backend spam-use-move
Moving to nnimap:spam: (121)...
nnimap: Setting marks in spam...done
nnimap: Updating info for nnimap:spam...done
No more newsgroups
1 spam messages were registered by backend spam-use-move.
Expiring articles...done
nnimap: Setting marks in spam...done
nnimap: Setting marks in spam...done
No more unread newsgroups

Looking into the Maildir of the IMAP server (dovecot), the mail file has
gotten the "Seen" flag, but not the "Expirable" flag.

When entering nnimap:spam again:

Retrieving newsgroup: nnimap:spam...
nnimap: Updating info for nnimap:spam...done
Fetching headers for nnimap:spam...
nnimap: Retrieving headers...done
Fetching headers for nnimap:spam...done
Generating summary...done
Marking unseen articles as spam
No more unread articles
Mark set

And the message is still marked with $.  If I manually mark it
expirable, it stays so.

Exiting nnimap:spam again:

No more articles [2 times]
Exiting summary buffer and applying spam rules
Expiring articles...done
nnimap: Setting marks in spam...done
No more unread newsgroups

-- 
Regards,
Bjørn-Helge Mevik
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-05  9:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-05  9:15 Spam messages not marked as expirable when exiting spam group Bjørn-Helge Mevik

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).