info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: archiving mail with nnmail-expiry-target


From: Nelson Ferreira
Subject: Re: archiving mail with nnmail-expiry-target
Date: Wed, 07 Jun 2006 20:12:09 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) SXEmacs/22.1.6 (linux)

"martin" == martin bishop@gmail com <martin.bishop@gmail.com> writes:

    martin> Nelson Ferreira wrote:

[...]

    martin> Yes, I'm using q to exit gnus. I've just tried using s as
    martin> well and this also doesn't save the changes. I still get
    martin> prompted by emacs at quit time to save
    martin> Mail/Jun-2006/Inbox. 

Barring any weird bug in Gnus, this leads me to think that Gnus is not
thinking of this folder as in it's active select methods...
And I think I know why. See how it is trying to place the archive
inside the Jun-2006 dir? This must be preventing Gnus from considering
that as a managed group. Try:

(setq nnmail-expiry-target
        '(lambda (group)
         (concat "nnfolder:"
                 (format-time-string "%b-%Y-" (current-time))
                 group)))

Notice that I replaced the '.' after the year with a dash.


    martin> Must gnus open an mbox file in a buffer to append expired
    martin> messages to it ? 

Yes. That is how elisp handles updates to files.

    martin> I'm starting to think that even if I can get it to save
    martin> the changes, it is going to cause problems once I start
    martin> having up to a month worth of various mailing list mboxes
    martin> open in various buffers.

They will only be opened if:
     a) You accessed them and did not exit the group
     b) Some messages were recently expired there.

    martin> Is going to a different backend for expiry-targets the
    martin> only way to solve this ?

If the change I suggest above does not do it, then it is the only one
_I_ see. Maybe someone more knowledgeable here can give a better suggestion.

-- 
Nelson Ferreira


reply via email to

[Prev in Thread] Current Thread [Next in Thread]