Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Emanuel Berg <embe8573@student.uu.se>
To: info-gnus-english@gnu.org
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	[thread overview]
Message-ID: <87k336eru8.fsf@debian.uxu> (raw)
In-Reply-To: <mailman.13173.1415386451.1147.info-gnus-english@gnu.org>

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
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

  parent reply	other threads:[~2014-11-07 19:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m3vbmsvisc.fsf@example.com>
2014-11-06 15:08 ` Damien Wyart
2014-11-07  6:38   ` Denis Bitouzé
     [not found]   ` <mailman.13094.1415342343.1147.info-gnus-english@gnu.org>
2014-11-07  9:09     ` Damien Wyart
2014-11-07 18:53       ` Denis Bitouzé
     [not found]       ` <mailman.13173.1415386451.1147.info-gnus-english@gnu.org>
2014-11-07 19:25         ` Emanuel Berg [this message]
2014-11-09 16:53           ` Denis Bitouzé
     [not found]           ` <mailman.13309.1415552050.1147.info-gnus-english@gnu.org>
2014-11-15 13:20             ` Emanuel Berg
2014-11-17 13:07               ` Denis Bitouzé
     [not found]               ` <mailman.13874.1416229661.1147.info-gnus-english@gnu.org>
2014-11-17 22:09                 ` Emanuel Berg

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=87k336eru8.fsf@debian.uxu \
    --to=embe8573@student.uu.se \
    --cc=info-gnus-english@gnu.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).