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

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

Re: Make `r` and `F` behave as `S L` when replying to a message from a m


From: Emanuel Berg
Subject: Re: Make `r` and `F` behave as `S L` when replying to a message from a mailing list
Date: Fri, 07 Nov 2014 20:25:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Denis Bitouzé <dbitouze@wanadoo.fr> writes:

> I guess so. I'll have a look at splitting mail.

Here is an example of how to split - for different
reasons, in including to get individual groups for
listbots. Note though that many listbots are available
as newsgroups so unless you already subscribe in an
unorganized way instead of splitting, I'd find the
"real" groups.

(setq nnmail-split-methods
 '(("zsh"          
"^\\(Cc\\|\\(Resent-\\)?To\\):.*zsh-\\(announce\\|workers\\|users\\)@zsh\.org.*")
   ("debian.user"  
"^\\(Cc\\|\\(Resent-\\)?To\\):.*debian-user@lists\.debian\.org.*")
   ("cc"           
"^\\(Cc\\|\\(Resent-\\)?To\\):.*\\(help-gnu-emacs\\|info-gnus-english\\)@gnu\.org.*")
   ("spam-ooa"     
"^\\(Cc\\|\\(Resent-\\)?To\\):.*l4-hackers@os\.inf\.tu-dresden\.de.*")
   ("emacs-w3m"    "^Subject: \\[emacs-w3m.*")
   ("mail.misc"    "") ))

Accidently, you can implement a DWIM `r' and `F' based
on what group you are in = find out with
`gnus-group-group-name' - as in, something like,

(if (member (gnus-group-group-name) '("nnml:mail.sent"
                                      "nndraft:drafts")
                                      ) ...

If you want to stick with the header extraction idea
this might help you:

(defun gnus-article-header-value (header)
  "Get the value of HEADER for the current article."
  (with-current-buffer gnus-original-article-buffer
    (gnus-fetch-field header) ))

-- 
underground experts united


reply via email to

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