Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: francois.lagarde@gmail.com
Subject: signature + fortune + from ??
Date: 1 Jun 2006 07:08:13 -0700	[thread overview]
Message-ID: <1149170892.989244.120400@c74g2000cwc.googlegroups.com> (raw)

Hello,

I use different mail boxes. For each mail box i have a special
signature-file. So in my gnus configuration i have something like that:
(setq gnus-posting-styles
...
("^gmane\..*\\|^alt\..*"
        (address "firstname.name<at>gmail.com")
        (eval
         (setq sc-preferred-header-style 3)
         )
        (signature-file "~/documents/signature/news"))
...
)

up to now everything is fine.
Now I want to add some fortune decorations.
The solution that I found is to create a script, which concats the
usual signature file name, and the fortune (I don't really understand
the lisp)
It looks like:
(signature
                (shell-command-to-string
"~/documents/signature/fortuneSignature my-file-name-signature")
                )
)

up to now it also not so bad.

Now I want to customize my fortune signature according to the from
field, I use:

(header "From" ".*aaa.*\\|.*.eee.*\\|.*ttt.*"
               (signature
                (shell-command-to-string
"~/documents/signature/fortuneSignatureHumor my-file-name-signature")
                )
)

the matter is that if use this method it would overwrite the fact that
I write my mail from a specific mail box. That is to say, the
my-file-name-signature (ex work, home, news ) is fixed.

So my question is how to get a «my-file-name-signature» bound to my
post style preference.

Sorry if i am not clear enough, my english is poor...

                 reply	other threads:[~2006-06-01 14:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1149170892.989244.120400@c74g2000cwc.googlegroups.com \
    --to=francois.lagarde@gmail.com \
    /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).