From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/242 Path: news.gmane.org!not-for-mail From: William Daffer Newsgroups: gmane.emacs.gnus.user Subject: posting-styles not working Date: Tue, 09 Apr 2002 00:28:48 GMT Organization: AT&T Broadband Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138667296 6152 80.91.229.2 (31 Jan 2006 00:28:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:28:16 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:27:18 2006 Original-Path: quimby.gnus.org!news.ccs.neu.edu!news.dfci.harvard.edu!news.cis.ohio-state.edu!usenet01.sei.cmu.edu!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!cyclone.rdc-nyc.rr.com!news-east.rr.com!cyclone.kc.rr.com!news.kc.rr.com!news-west.rr.com!cyclone1.we.ipsvc.net!cyclone3.we.ipsvc.net!typhoon1.we.ipsvc.net.POSTED!not-for-mail Original-Sender: whd@localhost.localdomain Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Original-NNTP-Posting-Host: 24.126.202.163 Original-X-Complaints-To: abuse@attbi.com Original-X-Trace: typhoon1.we.ipsvc.net 1018312128 24.126.202.163 (Mon, 08 Apr 2002 17:28:48 PDT) Original-NNTP-Posting-Date: Mon, 08 Apr 2002 17:28:48 PDT Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:382 Original-Lines: 74 X-Gnus-Article-Number: 382 Tue Jan 17 17:27:18 2006 Xref: news.gmane.org gmane.emacs.gnus.user:242 Archived-At: Gents; I've been unable to get either gnus-posting-styles or a group specifc posting-styles to work. My setup: GNU Emacs 20.7.1 (i386-redhat-linux-gnu, X toolkit) of Mon Jul 30 2001 on stripples.devel.redhat.com "Gnus v5.8.8" I want to be able to match a .sig file with the poster to whom I'm replying. I'm using the advanced random signature file generator adv-random.el from Raymond Scholz, it choses from the files in the directory indicated by the last parameter passed to the function. gnus-posting-styles is: (setq gnus-posting-styles '( (".*" (signature (adv-random-signature-no-sep "misc")) (name "William Daffer") ) ((message-mail-p) (address "whdaffer@attbi.com")) ((message-news-p) (signature (adv-random-signature-no-sep "devdict")) (address "whdaffer@wabcmail.com")) ("a\.\newsgroup" (signature (adv-random-signature-no-sep "a-r")) (organization "Amateur denier debunker")) (header "From" ".*moran.*" (signature (adv-random-signature-no-sep "moran")) ) ) The problem is the 'header' matches. They don't work and I always end up with a default signature from 'a-r' (the poster I'm addressing with the `header' match posts to 'a.newsgroup', so the header match should have the effect of changing the directory where adv-random-signature-no-sep looks for a .sigfile in that newsgroup). I've checked in the article buffer that the regex matches the poster I want to target. The directory exists and has one .sigfile in it for testing purposes, so I won't miss a successful match. I've tried to discover the problem by stepping through gnus-confgure-posting-styles using edebug and the best that I can determine is that the search for the header is occuring in the reply buffer, which at the time of the search is empty. But even the headers of the reply buffer wouldn't be right, it needs to search against the original article. In my meandering through the nether regions of this code I have seen a copy of the article stuck in a buffer and that buffer is used on the fly, for purposes I can't remember, and it seems to me this should be the buffer gnus should be searching, but everytime I stop in gnus-configure-posting-styles it's the empty reply buffer that's current. What am I missing here? TIA William Daffer -- LEGACY, n. A gift from one who is legging it out of this vale of tears. -- Ambrose Bierce: _The Devil's Dictionary_