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

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

Re: How to use Maildir for everything? How to duplicate behaviour of mut


From: Juhapekka Tolvanen
Subject: Re: How to use Maildir for everything? How to duplicate behaviour of mutt?
Date: Thu, 30 Sep 2004 08:21:28 +0300
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)


Sebastien Kirche <sebastien.kirche.no@spam.free.fr.invalid> writes:

> Le 29 sep 2004, Juhapekka Tolvanen a dit :

>> But that setting has just one drawback: every message goes to
>> sent-mail-2004-09, no matter it was news article or E-Mail message.
>> So, it would be better, if News Articles were copied to
>> sent-news-YYYY-MM and E-Mails were copied to sent-mail-2004-YYYY-MM .
>> How that could be achieved?

> Here what i use for that purpose :

> (setq gnus-message-archive-group
>         '((if (message-news-p)
>                       (concat "nnfolder:News-sent." (format-time-string 
> "%Y-%m"));nnml backend ?
>                 (concat "nnfolder:Mail-sent." (format-time-string "%Y-%m"))
>                 )))

That seems nice, but maybe even more accurate system could be created: It
would use these principles:

1) If message has at least one of these headers (with some content), it
   must be copied to folder sent-news-YYYY-MM:

   - Newsgroups:

2) If message has at least one of these headers (with some content), it
   must be copied to folder sent-mail-YYYY-MM:

   - To:
   - Cc:
   - Bcc:

In the other words, same message could be copied to both
sent-news-YYYY-MM and sent-mail-YYYY-MM, if it really is both Usenet
News article and E-Mail-message.

How that could be achieved? Maybe there is some hook, that is run when
C-c C-c is pressed after message-editing. Then headers of that messages
should be scanned and evaluated and folders must be chosen according to
that. Seems kind of complicated elisp-programming task.

Meanwhile, I'll take your elisp-snippet and tune it for my
Maildir-folders. Thanks!


-- 
Juhapekka "naula" Tolvanen * http colon slash slash iki dot fi slash juhtolv
"halpojen hoitojen maailma uljas haluaa taistosi latistaa, mielesi
lipeävedellä valkaistuun ruotuunsa, joka on hautausmaa"                  CMX

reply via email to

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