आशीष शुक्ल Ashish Shukla <[EMAIL PROTECTED]> 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 "[EMAIL PROTECTED]")
         ("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 "[EMAIL PROTECTED]"))

        (,(rx (or (and (opt "de.") (or "comp." "comm.software."))
                  "gnu."
                  "nntp+Gmane:"))
         (address "[EMAIL PROTECTED]"))

        (,(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 "[EMAIL PROTECTED]"))

        (,(rx "nnimap+Fastmail:INBOX.news")
         (address "[EMAIL PROTECTED]"))

        (,(rx "nnimap+Fastmail:INBOX.FSF")
         (address "[EMAIL PROTECTED]"))

        (,(rx "nnimap+Fastmail:INBOX.mailinglists."
              (or "emms-patches"
                  "stumpwm-devel"
                  "bbdb-info"
                  "sbcl-devel"
                  "openchrome"))
         (address "[EMAIL PROTECTED]"))

        (,(rx"nnimap+Fastmail:INBOX.mailinglists."
              (or "d-barf"
                  "tsdh-fans"
                  "dtofans"))
         (address "[EMAIL PROTECTED]"))

        (,(rx "nnimap+Fastmail:INBOX.uni")
         (address "[EMAIL PROTECTED]"))))
--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.



_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to