From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/33839 Path: main.gmane.org!not-for-mail From: ShengHuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: matching headers with gnus-posting-styles Date: 21 Dec 2000 15:34:48 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <2n3dfhtswn.fsf@tiger.jia.vnet> References: <20001221191503.10216.qmail@web2103.mail.yahoo.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035169871 27235 80.91.224.250 (21 Oct 2002 03:11:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:11:11 +0000 (UTC) Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id E8ADDD049D for ; Thu, 21 Dec 2000 15:38:53 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id OAB26576; Thu, 21 Dec 2000 14:35:12 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 21 Dec 2000 14:34:38 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id OAA15589 for ; Thu, 21 Dec 2000 14:34:27 -0600 (CST) Original-Received: from zsh.yi.org (d185fc155.rochester.rr.com [24.95.193.85]) by mailhost.sclp.com (Postfix) with ESMTP id 9FD20D049D for ; Thu, 21 Dec 2000 15:34:51 -0500 (EST) Original-Received: (from zsh@localhost) by zsh.yi.org (8.10.0/8.10.0) id eBLKYmC01287; Thu, 21 Dec 2000 15:34:48 -0500 Original-To: ding@gnus.org X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q In-Reply-To: <20001221191503.10216.qmail@web2103.mail.yahoo.com> Original-Lines: 28 User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:33839 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:33839 lewst writes: > Greetings, > > The following posting style isn't working for me: > > (setq gnus-posting-styles > '((".*" > (signature-file "~/.signature")) > (header "^\\(To\\|CC\\|Cc\\):.*" ".*sourceforge.net" > (signature-file "~/.signature-sf")))) > > What I'm trying to do is change my .signature based on who I'm sending > a mail message to. So, if the address in the To: or Cc: headers has > "sourceforge.net" in it, I'd like to use .signature-sf instead. > > With the above, I always get just ".signature" no matter who I'm > sending to. What am I doing wrong? gnus-posting-styles is only applied before you start to compose a mail. Any modification after that has no effect on the your mail. Therefore, Gnus will not change the signature according to who you are sending to. Though `header' is documented, I don't think it is right. Some packages are written for modifying your mail when sending. But I can not remember what they are. ShengHuo