Gnus development mailing list
 help / color / mirror / Atom feed
From: Yoshiki Hayashi <g740685@komaba.ecc.u-tokyo.ac.jp>
Subject: gnus-posting-style
Date: 20 Aug 1998 18:14:54 +0900	[thread overview]
Message-ID: <wk3eas8169.fsf@tb3.so-net.ne.jp> (raw)

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


             reply	other threads:[~1998-08-20  9:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-20  9:14 Yoshiki Hayashi [this message]
1998-08-20 19:54 ` gnus-posting-style Lars Magne Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wk3eas8169.fsf@tb3.so-net.ne.jp \
    --to=g740685@komaba.ecc.u-tokyo.ac.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).