Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Nelson Ferreira <nelson.ferreira@ieee.org>
Subject: Re: archiving mail with nnmail-expiry-target
Date: Wed, 07 Jun 2006 20:12:09 -0400	[thread overview]
Message-ID: <m3lks8ijza.fsf@tuxie.homelinux.net> (raw)
In-Reply-To: <1149722498.524660.104760@y43g2000cwc.googlegroups.com>

"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	other threads:[~2006-06-08  0:12 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-07 22:43 martin.bishop
2006-06-07 22:51 ` Nelson Ferreira
2006-06-07 23:21   ` martin.bishop
2006-06-08  0:12     ` Nelson Ferreira [this message]
2006-06-08  0:59       ` martin.bishop

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=m3lks8ijza.fsf@tuxie.homelinux.net \
    --to=nelson.ferreira@ieee.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).