From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/16137 Path: main.gmane.org!not-for-mail From: Yoshiki Hayashi Newsgroups: gmane.emacs.gnus.general Subject: gnus-posting-style Date: 20 Aug 1998 18:14:54 +0900 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 (generated by SEMI 1.8.4 - "Takaoka") Content-Type: text/plain; charset=US-ASCII X-Trace: main.gmane.org 1035155056 26027 80.91.224.250 (20 Oct 2002 23:04:16 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 23:04:16 +0000 (UTC) Return-Path: Original-Received: from gwyn.tux.org (gwyn.tux.org [207.96.122.8]) by altair.xemacs.org (8.9.1/8.9.1) with ESMTP id CAA02042 for ; Thu, 20 Aug 1998 02:18:55 -0700 Original-Received: from sina.hpc.uh.edu (Sina.HPC.UH.EDU [129.7.3.5]) by gwyn.tux.org (8.8.8/8.8.8) with ESMTP id FAA10843 for ; Thu, 20 Aug 1998 05:20:28 -0400 Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id EAK03003; Thu, 20 Aug 1998 04:20:26 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 20 Aug 1998 04:17:24 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [209.195.19.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id EAA02987 for ; Thu, 20 Aug 1998 04:17:12 -0500 (CDT) Original-Received: from mgate04.so-net.ne.jp (mgate04.so-net.ne.jp [210.132.247.34]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id FAA19453 for ; Thu, 20 Aug 1998 05:17:09 -0400 (EDT) Original-Received: from mail.tb3.so-net.ne.jp (mail.tb3.so-net.ne.jp [210.139.246.37]) by mgate04.so-net.ne.jp (8.8.8+3.0Wbeta9/3.6W98081116) with ESMTP id SAA27918 for ; Thu, 20 Aug 1998 18:17:07 +0900 (JST) Original-Received: from PENNY.tb3.so-net.ne.jp (p84ca1d.kkgw.ap.so-net.ne.jp [210.132.202.29]) by mail.tb3.so-net.ne.jp (8.8.8+3.0Wbeta9/3.6W98081116) with ESMTP id SAA13091 for ; Thu, 20 Aug 1998 18:17:05 +0900 (JST) Original-To: ding@gnus.org X-Emacs: Emacs 20.2, MULE 3.0 (MOMIJINOGA), Meadow-1.01 (MIDORI-NO-TAMA) Original-Lines: 46 X-Mailer: Semi-gnus 6.8.13 (based on Gnus 5.6.37; for SEMI 1.8, FLIM 1.8/1.9) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:16137 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:16137 After I found gnus-posting-style is implemented, I am fiddling with this variable. But it doesn't work well when I use string as attribute name. If I wrote something like (setq gnus-posting-style '((".*" ("X-URL" "http://somewhere.ac.jp/")))) Message buffer would be To: ding@gnus.org Subject: gnus-posting-style --text follows this line-- X-URL: http://somewhere.ac.jp/ So, here is the patch. ---------------------------------------- --- message.el Wed Aug 19 18:10:25 1998 +++ message.el.new Thu Aug 20 00:23:23 1998 @@ -3170,6 +3170,7 @@ (when message-default-headers (insert message-default-headers) (or (bolp) (insert ?\n))) + (goto-char (point-max)) (put-text-property (point) (progn ---------------------------------------- And, if I do something like: (setq gnus-posting-style '((".*" ("X-URL" "http://somewhere.ac.jp/")) ("gnus" ("X-URL" "http://somewhere.ac.jp/gnus/")))) Gnus inserts two X-URL headers. I want string attributes to be overridden by the later match like symbol does. I also want it to insert Organization header only if it is set in gnus-posting-style. I thoght about changing gnus-configure-posing-styles to do those things, but are these right things to do? -- Yoshiki Hayashi