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

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

signature + fortune + from ??


From: francois . lagarde
Subject: signature + fortune + from ??
Date: 1 Jun 2006 07:08:13 -0700
User-agent: G2/0.2

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 via email to

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