From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/7449 Path: news.gmane.org!not-for-mail From: francois.lagarde@gmail.com Newsgroups: gmane.emacs.gnus.user Subject: signature + fortune + from ?? Date: 1 Jun 2006 07:08:13 -0700 Organization: http://groups.google.com Message-ID: <1149170892.989244.120400@c74g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1149172814 29308 80.91.229.2 (1 Jun 2006 14:40:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Jun 2006 14:40:14 +0000 (UTC) Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Thu Jun 01 16:40:11 2006 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FloLI-0006qJ-Q9 for gegu-info-gnus-english@m.gmane.org; Thu, 01 Jun 2006 16:40:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FloLI-0002Qk-Cw for gegu-info-gnus-english@m.gmane.org; Thu, 01 Jun 2006 10:40:08 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!postnews.google.com!c74g2000cwc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 48 Original-NNTP-Posting-Host: 132.166.134.48 Original-X-Trace: posting.google.com 1149170898 23009 127.0.0.1 (1 Jun 2006 14:08:18 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 1 Jun 2006 14:08:18 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.0.3) Gecko/20060523 Ubuntu/dapper Firefox/1.5.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: c74g2000cwc.googlegroups.com; posting-host=132.166.134.48; posting-account=wGK7ng0AAABjFRXkpKZEbsjq7aNfFHUi Original-Xref: shelby.stanford.edu gnu.emacs.gnus:77632 Original-To: info-gnus-english@gnu.org X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:7449 Archived-At: 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 .=2E. ("^gmane\..*\\|^alt\..*" (address "firstname.namegmail.com") (eval (setq sc-preferred-header-style 3) ) (signature-file "~/documents/signature/news")) .=2E. ) 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 =ABmy-file-name-signature=BB bound to my post style preference. Sorry if i am not clear enough, my english is poor...