Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Can I make gnus-posting-styles not to add an header?
@ 2006-05-29 12:59 kousik
  2006-05-29 15:57 ` Reiner Steib
  0 siblings, 1 reply; 2+ messages in thread
From: kousik @ 2006-05-29 12:59 UTC (permalink / raw)


Hi,

Depending on posting style I wanted to change some of my supercite
parameters. So can I ask gnus-posting-styles to just call a function of
my own, but not add any header? For example I have:

(setq gnus-posting-styles
    '((".*"
       (Face mf-insert-random-face)
       (nil (lambda () (setq sc-citation-delimiter ">")))
       ("X-Now-Playing" (mr-now-playing)))
      ("school"
       (signature-file "~/.signature_short")
       )
))

But this still puts a header "Nil: >" in the outgoing message ... which
I want to suppress. Do I have to define a message-send-hook which will
strip out the Nil: header before sending out the message? Or maybe I
should consider sending such an header harmless?

regards
Kousik

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Can I make gnus-posting-styles not to add an header?
  2006-05-29 12:59 Can I make gnus-posting-styles not to add an header? kousik
@ 2006-05-29 15:57 ` Reiner Steib
  0 siblings, 0 replies; 2+ messages in thread
From: Reiner Steib @ 2006-05-29 15:57 UTC (permalink / raw)


On Mon, May 29 2006, kousik wrote:

> Depending on posting style I wanted to change some of my supercite
> parameters. So can I ask gnus-posting-styles to just call a function of
> my own, but not add any header? For example I have:
>
> (setq gnus-posting-styles
>     '((".*"
>        (Face mf-insert-random-face)
>        (nil (lambda () (setq sc-citation-delimiter ">")))

         (eval (setq sc-citation-delimiter ">"))

,----[ (info "(gnus)Posting Styles") ]
|    The attribute name can also be a string or a symbol.  In that case,
| this will be used as a header name, and the value will be inserted in
| the headers of the article; if the value is `nil', the header name will
| be removed.  If the attribute name is `eval', the form is evaluated,
| and the result is thrown away.
`----

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-29 15:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-29 12:59 Can I make gnus-posting-styles not to add an header? kousik
2006-05-29 15:57 ` Reiner Steib

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).