From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/7477 Path: news.gmane.org!not-for-mail From: Nelson Ferreira Newsgroups: gmane.emacs.gnus.user Subject: Re: archiving mail with nnmail-expiry-target Date: Wed, 07 Jun 2006 20:12:09 -0400 Organization: - none - Message-ID: References: <1149720222.539263.235340@u72g2000cwu.googlegroups.com> <1149722498.524660.104760@y43g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1149727226 30391 80.91.229.2 (8 Jun 2006 00:40:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Jun 2006 00:40:26 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Jun 08 02:40:25 2006 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fo8ZR-0003Cq-RQ for gegu-info-gnus-english@m.gmane.org; Thu, 08 Jun 2006 02:40:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fo8ZQ-0004Xm-VW for gegu-info-gnus-english@m.gmane.org; Wed, 07 Jun 2006 20:40:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 48 Original-X-Trace: individual.net m/Yl3fVP0luPcqI7GgFU2wOM0Qx9BdMlwHwheVJ88p+42g3LDk User-Agent: Gnus/5.110006 (No Gnus v0.6) SXEmacs/22.1.6 (linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUmHxdbVUyVdGOriHfF qZx9gXrnvF8aAAAACXBIWXMAACNfAAAjXwHuwDalAAACAklEQVR42nVUQZLjIAwUWzV3cMb3RMw8 YBD5wAoe4Bj+/5Vt4cR2aneVSpyire6WBFD5TxC+PbVeW9dmj1Zqr7UZ0Dtzb60K9yMA1N5D6EDS 1Gf8X/qCR6O6BOduUYrINSB8cPboADw5zrmpMCG8/ZDrVIKnSTI8aPIO684jglGRA5EBsgyWsFGV TiGWDfgZgN+o6uJ+xTwQSc49NWg2qmlbNxE6AYFYNkR1t+VmuDLtDbEMd6LaTJmI3wsxcVr1Ceg5 o/SwPk1leSoPjXp1zIz13yInqpn0RgC+SslZFcX5V0ZBBlqLIkSUdy60BBmCSlRillsg/6KqnTix REgLs3+aMleoAyyC6oXjCRgFItTay1c6AOsV3rfq5RAfVB2esr4DoyWXbHZRvkZ/qnzx8QCuB4DR XkAyGi/xXGAgVGZV4MuvAW5UcMWiCuDq3lxNkmA2G7Bn2L7yFwDoYyx5r899QtzNzagM27VNfPEf TVIG02mCo1f+wxypjXZf31yFVYxHJdEbVQgP9BdE6w+dqbrHbkCGrnLMyTZ1DzQDUK2Rby9k9CqE iRl9vD84eb9r4Az68ACgD7aN5U8AMqavIt/YEHY48XHjcLrwmaYod8bmhuKIebPbEq8czVptYR5A g3ifMSKslTGs7WIYQGl2Avbb5T4QAPWviweXyLhk/hF4+Q+wWa5X3wHMdgAAAA90RVh0SlBFRy1R dWFsaXR5ADc13rg1kAAAABF0RVh0SlBFRy1Db2xvcnNwYWNlADKBDSEkAAAAIXRFWHRKUEVHLVNh bXBsaW5nLWZhY3RvcnMAMngyLDF4MSwxeDHlUdu4AAAAAElFTkSuQmCC Cancel-Lock: sha1:unYviyNX70SunJtCnZGBP35+gFs= Original-Xref: shelby.stanford.edu gnu.emacs.gnus:77660 Original-To: info-gnus-english@gnu.org X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:7477 Archived-At: "martin" == 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