Discussion:
deleting instead of expiring mail
Adrian Lanz
2015-02-26 14:17:06 UTC
Permalink
Help, I am suddenly loosing old mails - they are deleted instead of
expired (for some 3 weeks now). I am on Gnus v5.13.

I am not aware of any changes in my configuration. Possibly, I may have
experimented with a nnvirtual group (nnvirtual "^nnfolder\\+mail.*$")

The log in the *Message* buffer seems a bit suspicious (just a snippet
for one of the groups with C-c C-M-x gnus-group-expire-all-groups) -
where comes the "Deleting articles..." from? Is this correct?

Expiring articles in nnfolder+mail:***@ecoapwebsite.eu...
Deleting articles...done
Expiring articles in nnfolder+mail:***@ecoapwebsite.eu...done

My relevant entries since always are:

(setq-default nnmail-expiry-wait-function
(lambda (group)
(cond ((string= group "spam.mail") 5)
((string= group "***@sampling") 5)
(t 30)))
gnus-total-expirable-newsgroups "nnfolder\\+mail:.*"
gnus-mark-copied-or-moved-articles-as-expirable t
nnmail-expiry-target 'nnmail-fancy-expiry-target
nnmail-fancy-expiry-targets
'(("xref" "spam\\.mail:[01-9]" "nnml+expired:spam.%Y")
(to-from "***@sampling" "nnml+expired:sampling-root-%Y")
(to-from "et\\.com" "nnml+expired:et-%Y")
(to-from "ws\\.com" "nnml+expired:ws-%Y")
(to-from ".*" "nnml+expired:other-%Y"))))


(setq-default gnus-select-method '(nnnil "")
gnus-secondary-select-methods
`((nntp "news.gmane.org")
(nnfolder "mail"
[...]
(nnfolder-get-new-mail t)
(nnfolder-inhibit-expiry nil))

(nnml "expired"
[...]
(nnml-get-new-mail nil)
(nnml-inhibit-expiry t))


And, expiry of spam and sampling-root continuous to work as expected,
but the (important!) mails in the other groups in nnfolder+mail:* get
lost!
Adrian Lanz
2015-02-26 16:25:50 UTC
Permalink
Post by Adrian Lanz
Help, I am suddenly loosing old mails - they are deleted instead of
expired (for some 3 weeks now). I am on Gnus v5.13.
I am not aware of any changes in my configuration. Possibly, I may have
experimented with a nnvirtual group (nnvirtual "^nnfolder\\+mail.*$")
[...]
Post by Adrian Lanz
(setq-default nnmail-expiry-wait-function
(lambda (group)
(cond ((string= group "spam.mail") 5)
(t 30)))
gnus-total-expirable-newsgroups "nnfolder\\+mail:.*"
gnus-mark-copied-or-moved-articles-as-expirable t
nnmail-expiry-target 'nnmail-fancy-expiry-target
nnmail-fancy-expiry-targets
'(("xref" "spam\\.mail:[01-9]" "nnml+expired:spam.%Y")
(to-from "et\\.com" "nnml+expired:et-%Y")
(to-from "ws\\.com" "nnml+expired:ws-%Y")
(to-from ".*" "nnml+expired:other-%Y"))))
(setq-default gnus-select-method '(nnnil "")
gnus-secondary-select-methods
`((nntp "news.gmane.org")
(nnfolder "mail"
[...]
(nnfolder-get-new-mail t)
(nnfolder-inhibit-expiry nil))
(nnml "expired"
[...]
(nnml-get-new-mail nil)
(nnml-inhibit-expiry t))
And, expiry of spam and sampling-root continuous to work as expected,
but the (important!) mails in the other groups in nnfolder+mail:* get
lost!
Ok, I see what is happening, but I am completely lost why and whether it
is a bug or a bad configuration from my side.

The old and always bahaviour: Entering a normal mail group, reading an
article and quitting the group, marks the article as read showing the
"O" mark when re-entering the group - expiry to the archive works as
intended (after 30 days)

With a virtual group to ease checking unread mails across all the mail
groups (nnvirtual "^nnfolder\\+mail.*$") the following happens: entering
this virtual group (without even reading any articles) and leaving it,
marks all read articles in all mail groups as expirable with a visible
"E" mark, and articles get deleted (after 7 days, I think) instead of
expired (moved) to the archive after 30 days

Is this intended? How can I avoid the virtual group annul the expiry
process?

Best, Adrian.
Eric S Fraga
2015-02-27 17:29:31 UTC
Permalink
On Thursday, 26 Feb 2015 at 17:25, Adrian Lanz wrote:

[...]
Post by Adrian Lanz
Is this intended? How can I avoid the virtual group annul the expiry
process?
Maybe change the value of the global variable gnus-expiry-target (and
gnus-expiry-wait while you're at it)? These default to delete and 7
respectively.
--
: Eric S Fraga, GnuPG: 0xFFFCF67D
: in Emacs 24.4.1 + Ma Gnus v0.12 + evil-git-bdeb602
: BBDB version 3.1.2 (2014-04-27 15:05:20 -0500)
Loading...