From: "Bjørn-Helge Mevik" <b.h.mevik@usit.uio.no>
To: info-gnus-english@gnu.org
Subject: Spam messages not marked as expirable when exiting spam group
Date: Fri, 05 Jun 2015 11:15:30 +0200 [thread overview]
Message-ID: <s3s3826zfbh.fsf@slagelg.uio.no> (raw)
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
reply other threads:[~2015-06-05 9:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=s3s3826zfbh.fsf@slagelg.uio.no \
--to=b.h.mevik@usit.uio.no \
--cc=info-gnus-english@gnu.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).