From: Austin Frank <austin.frank@gmail.com>
To: info-gnus-english@gnu.org
Subject: nnmail-fancy-expiry-target problems
Date: Wed, 17 Oct 2007 13:36:17 -0400 [thread overview]
Message-ID: <m0przdve26.fsf@gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2978 bytes --]
Hello!
I'm trying to set up an archiving system for my mail. I'm having some
problems with expiry, and am hoping you all can help.
I have a number of mailboxes on a local imap server that I connect to
with nnimap. The manual suggests using nnfolder for archives, so I'd
like to set up mail from my nnimap server to expire to an nnfolder
server at ~/Mail_Archive.
Even though all read mails are marked as expired as soon as I finish
them, I've never seen any mail moved to ~/Mail_Archive. Trying to
explicitly expire articles in a group with C-c C-x seems to apply the
expiry flag to every appropriate mail in the group, but nothing gets
moved anywhere. The output in the message buffer is the following:
Expiring articles in nnimap:mail.misc...
Expiring articles in nnimap:mail.misc
gnus-agent-expire: Loading overview... Done
gnus-agent-expire: Sorting entries... Done
gnus-agent-expire: Merging entries... Done
Expiry recovered 7 NOV entries, deleted 0 files, and freed 2.184570 KB.
Finally, sometimes when I quit a group I get the following message:
Expiring articles...
nnmail-fancy-expiry-target: Wrong type argument: stringp, nil
I'm using GNU Emacs 22.1.1 and No Gnus v0.7. I've included a sanitized
version of the relevant (I think) configuration options below. Please
let me know if there is more information I can provide.
Thanks in advance for any help.
/au
;; keep a copy of all outgoing mail. Send it through the INBOX
;; since I've got filters set up to get it to the right places
(setq gnus-message-archive-method
'(nnimap ""
(nnimap-server-address "localhost")))
(setq
gnus-message-archive-group "INBOX"
gnus-gcc-mark-as-read t )
;; expiry settings
(remove-hook 'gnus-mark-article-hook
'gnus-summary-mark-read-and-unread-as-read)
(add-hook 'gnus-mark-article-hook
'gnus-summary-mark-unread-as-read)
(setq nnmail-expiry-wait-function
(lambda (group)
(cond ((string= group "mail.personal")
90)
((string= group "mail.academic")
90)
(t
6))))
(setq nnfolder-directory "~/Mail_Archive"
nnfolder-get-new-mail nil)
(setq nnmail-expiry-target 'nnmail-fancy-expiry-target
nnmail-fancy-expiry-targets
'((to-from "group1" "nnfolder:group1")
(to-from "boss1" "nnfolder:boss1")
(to-from "boss2" "nnfolder:boss2")
(to-from "my-private-address" "nnfolder:personal.%Y")
(to-from ".*\\.edu" "nnfolder:academic.%Y.%b")
("from" "my-other-addresses" "nnfolder:sent.%Y.%b")
("from" ".*" "nnfolder:archive-%Y.%b")))
--
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc
[-- Attachment #1.2: Type: application/pgp-signature, Size: 185 bytes --]
[-- Attachment #2: Type: text/plain, Size: 161 bytes --]
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
http://lists.gnu.org/mailman/listinfo/info-gnus-english
next reply other threads:[~2007-10-17 17:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-17 17:36 Austin Frank [this message]
2007-10-17 18:52 ` Reiner Steib
2007-10-17 19:52 ` Austin Frank
[not found] ` <mailman.2213.1192650770.18990.info-gnus-english@gnu.org>
2007-10-18 5:51 ` Katsumi Yamaoka
2007-10-18 22:30 ` Austin Frank
[not found] ` <mailman.2270.1192746661.18990.info-gnus-english@gnu.org>
2007-10-18 23:16 ` Katsumi Yamaoka
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=m0przdve26.fsf@gmail.com \
--to=austin.frank@gmail.com \
--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).