Gnus development mailing list
 help / color / mirror / Atom feed
* Archiving old emails
@ 2002-04-07 17:15 Ramakrishnan M
  2002-04-08 12:20 ` Kai Großjohann
  0 siblings, 1 reply; 2+ messages in thread
From: Ramakrishnan M @ 2002-04-07 17:15 UTC (permalink / raw)



I am trying to archive my old 'read' emails into folders. I do the following in my 
.gnus file:

;; first set the default format in which to save emails (in an archive)
(setq  gnus-default-article-saver  'gnus-summary-save-in-mail)

;; file name to save the mail
;((gnus-article-archive-name)  (concat "personal-mails-archive." (format-time-string
;                                "%m-%Y" (current-time))))

(setq gnus-split-methods '(((equal gnus-newsgroup-name "personal") 
			    (concat "personal-mails-archive."
				    (format-time-string "%m-%Y" (current-time))))
			   ((equal gnus-newsgroup-name "rkrishnan.debian")
			    (concat "rkrishnan-debian-archives." 
				    (format-time-string "%m-%Y" (current-time))))))

But while I press `o' in the article buffer to save the article, I get an error
Wrong argument type: stringp, (concat "personal-mails-archive" (format-...))

What is the problem here? is this a right way of archiving articles?

My gnus version is 5.8.8 on GNU Emacs 21.1

thanks
-- 
    Ramakrishnan M         (http://www.hackGNU.org/)
    Use Free Software          (http://www.gnu.org/)



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Archiving old emails
  2002-04-07 17:15 Archiving old emails Ramakrishnan M
@ 2002-04-08 12:20 ` Kai Großjohann
  0 siblings, 0 replies; 2+ messages in thread
From: Kai Großjohann @ 2002-04-08 12:20 UTC (permalink / raw)
  Cc: ding

gnu@vsnl.net (Ramakrishnan M) writes:

> (setq gnus-split-methods '(((equal gnus-newsgroup-name "personal") 
> 			    (concat "personal-mails-archive."
> 				    (format-time-string "%m-%Y" (current-time))))
> 			   ((equal gnus-newsgroup-name "rkrishnan.debian")
> 			    (concat "rkrishnan-debian-archives." 
> 				    (format-time-string "%m-%Y" (current-time))))))

Assuming that you start Emacs at the beginning of the month, you can
put the month into the value of the variable directly:

(setq gnus-split-methods `(((equal gnus-newsgroup-name "personal") 
			    ,(concat "personal-mails-archive."
				    (format-time-string "%m-%Y" (current-time))))
			   ((equal gnus-newsgroup-name "rkrishnan.debian")
			    ,(concat "rkrishnan-debian-archives." 
				    (format-time-string "%m-%Y" (current-time))))))

Note "`" instead of "'" and the commata.  If you don't start Emacs at
the beginning of the month, you can use midnight.el to have Emacs
execute the above Lisp statement once a day.

kai
-- 
Silence is foo!



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-08 12:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-07 17:15 Archiving old emails Ramakrishnan M
2002-04-08 12:20 ` Kai Großjohann

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).