From: Tassilo Horn <tassilo@member.fsf.org>
To: info-gnus-english@gnu.org
Subject: Re: gnus-posting-styles confusing
Date: Mon, 13 Aug 2007 10:16:08 +0200 [thread overview]
Message-ID: <87fy2n97ef.fsf@baldur.tsdh.de> (raw)
In-Reply-To: <1186989333.549695.14690@i38g2000prf.googlegroups.com>
आशीष शुक्ल Ashish Shukla <wahjava@gmail.com> writes:
Hi,
> Can someone post here an example of "gnus-posting-styles" with also an
> example to show that "gnus-posting-styles" really work.
Sure, here're mine.
--8<---------------cut here---------------start------------->8---
(setq gnus-posting-styles
`((".*"
(address "thorn+news@fastmail.fm")
("Face" (lambda ()
(let ((file (th-random-file "~/.faces" "\\.jpg")))
(message "Chose %s as Face file." file)
(gnus-face-from-file file))))
(signature (fortune-to-signature
(replace-regexp-in-string
"\\.dat$" ""
(th-random-file fortune-dir)))))
(,(rx "infko.")
(address "heimdall@uni-koblenz.de"))
(,(rx (or (and (opt "de.") (or "comp." "comm.software."))
"gnu."
"nntp+Gmane:"))
(address "tassilo@member.fsf.org"))
(,(rx "gmane.comp.printing.ghostscript.")
;; Posting requires whitelist keyword "artifex" spelled backwards.
("X-Fnord" "xefitra"))
("de.alt.music.metal"
(signature (th-now-playing)))
(,(rx "nnimap+Fastmail:INBOX")
(address "thorn@fastmail.fm"))
(,(rx "nnimap+Fastmail:INBOX.news")
(address "thorn+news@fastmail.fm"))
(,(rx "nnimap+Fastmail:INBOX.FSF")
(address "tassilo@member.fsf.org"))
(,(rx "nnimap+Fastmail:INBOX.mailinglists."
(or "emms-patches"
"stumpwm-devel"
"bbdb-info"
"sbcl-devel"
"openchrome"))
(address "tassilo@member.fsf.org"))
(,(rx"nnimap+Fastmail:INBOX.mailinglists."
(or "d-barf"
"tsdh-fans"
"dtofans"))
(address "thorn@fastmail.fm"))
(,(rx "nnimap+Fastmail:INBOX.uni")
(address "heimdall@uni-koblenz.de"))))
--8<---------------cut here---------------end--------------->8---
> I press 'm' key to compose email messages in Gnus, where "To" field is
> empty and all other stuff filled in properly. So what I'm interested
> in knowing is when does "gnus-posting-styles" gets activated, after I
> press "Send" button, or before I press "m" key.
None of both. They are used after you press `m' to initialize the mail
or posting buffer.
Bye,
Tassilo
--
GNU Emacs is a text editor for Über-Geeks.
next prev parent reply other threads:[~2007-08-13 8:16 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-13 7:15 आशीष शुक्ल Ashish Shukla
2007-08-13 8:16 ` Tassilo Horn [this message]
[not found] ` <mailman.4713.1186993009.32220.info-gnus-english@gnu.org>
2007-08-13 9:40 ` Hadron
2007-08-13 11:59 ` आशीष शुक्ल Ashish Shukla
2007-08-13 13:09 ` Tassilo Horn
[not found] ` <mailman.4721.1187010625.32220.info-gnus-english@gnu.org>
2007-08-13 13:41 ` आशीष शुक्ल Ashish Shukla
2007-08-13 15:16 ` Exal de Jesus Garcia Carrillo
2007-08-13 15:58 ` Sivaram Neelakantan
2007-08-13 17:21 ` Tassilo Horn
[not found] ` <mailman.4732.1187025727.32220.info-gnus-english@gnu.org>
2007-08-13 18:23 ` Adam Sjøgren
2007-08-14 17:34 ` आशीष शुक्ल Ashish Shukla
2007-08-14 15:49 ` आशीष शुक्ल Ashish Shukla
2007-08-14 17:11 ` Tassilo Horn
[not found] ` <mailman.4773.1187111514.32220.info-gnus-english@gnu.org>
2007-08-14 17:35 ` आशीष शुक्ल Ashish Shukla
2007-08-13 10:49 ` Slackrat
2007-08-13 12:02 ` आशीष शुक्ल Ashish Shukla
2007-08-13 12:27 ` Slackrat
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=87fy2n97ef.fsf@baldur.tsdh.de \
--to=tassilo@member.fsf.org \
--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).