From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/4125 Path: news.gmane.org!not-for-mail From: Reiner Steib <4.uce.03.r.s@nurfuerspam.de> Newsgroups: gmane.emacs.gnus.user Subject: Re: Scope of headers in posting styles Date: Thu, 23 Sep 2004 13:40:11 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138670111 21945 80.91.229.2 (31 Jan 2006 01:15:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:15:11 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:33:16 2006 Original-Newsgroups: gnu.emacs.gnus X-Face: #vK]N[`vqjuod*|)'[iD7/"3AB-ApT%fmN"LWAg@oS7OesGv~)n[OBTLM#I="J'Y^-7I I/ps7o_'IK@#-Rs{::DZ@O8yS|fexe,XslY[:dNWOb~>?mC-&i_c)say:"\IpA.5U.b]'NY;Pks{lb h.+#6%DpZuaK3dcHB`Av3zc:r!C%~s0&m,tWj]&},qg.+0ww2gK%f!:GK|wMl.I!(voY*1"^li8"~B BNG)9LvPi?^DMR-GVDnZqhu*3Hi,+g=wFhI)BL6&u{EOVEHjVEVq~d?_}lMntWAc3(6?kftjc>_f>! g0wM(qPM$d5]^TT_Qyi&L?LGVG)SHN;Gk/,pkY9,~ Mail-Copies-To: nobody User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:X82Vc6JNLo3ZinXCVcEosaK13e0= Original-NNTP-Posting-Host: lumberjack.physik.uni-ulm.de Original-X-Trace: news.uni-ulm.de 1095939637 134.60.10.173 (23 Sep 2004 13:40:37 +0200) Original-Path: quimby.gnus.org!newsfeed.gazeta.pl!newsfeed.pionier.net.pl!news-fra1.dfn.de!irazu.switch.ch!switch.ch!news.belwue.de!news.uni-ulm.de!lumberjack.physik.uni-ulm.de!not-for-mail Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:4266 Original-Lines: 39 X-Gnus-Article-Number: 4266 Tue Jan 17 17:33:16 2006 Xref: news.gmane.org gmane.emacs.gnus.user:4125 Archived-At: On Thu, Sep 23 2004, Svend Tollak Munkejord wrote: > On 2004-09-23, Reiner Steib <4.uce.03.r.s@nurfuerspam.de> wrote: [...] >> When I add your example to my `gnus-posting-styles', replying to >> your message isn't triggered (tc-make-attribution is void). > > I use trivial-cite, but the problem isn't related to > trivial-cite. Yes, I know. But replying to your first message (with the Outlook quote) should trigger the eval/setq statement, but it doesn't. Ah, the reason is, that "" doesn't match ".*\\.mydomain\\>" (note the dot). Now I could reproduce it. Could you test the following patch? --8<---------------cut here---------------start------------->8--- --- gnus-msg.el 22 Sep 2004 04:40:39 -0000 7.21 +++ gnus-msg.el 23 Sep 2004 11:39:05 -0000 @@ -1827,9 +1827,11 @@ ;; New format of header match. (and (gnus-buffer-live-p gnus-article-copy) (with-current-buffer gnus-article-copy - (let ((header (message-fetch-field (nth 1 match)))) - (and header - (string-match (nth 2 match) header)))))) + (save-restriction + (nnheader-narrow-to-headers) + (let ((header (message-fetch-field (nth 1 match)))) + (and header + (string-match (nth 2 match) header))))))) (t ;; This is a form to be evaled. (eval match))))) --8<---------------cut here---------------end--------------->8--- Bye, Reiner.