* sensible posting-styles
@ 2000-05-03 18:33 Arcady Genkin
2000-05-03 19:00 ` David S. Goldberg
2000-05-03 19:12 ` Holger Sparr
0 siblings, 2 replies; 5+ messages in thread
From: Arcady Genkin @ 2000-05-03 18:33 UTC (permalink / raw)
I'm experimenting with posting styles. For example, I have:
(setq gnus-posting-styles
'((".*"
(signature-file "~/.signature")
("X-Face" (xface-insert))
(organization "thpoon.com"))
("^nnimap\\\+soup:mail/lists/"
("Mail-Copies-To" "never"))))
I would like to tune the posting style for
"^nnimap\\\+soup:mail/lists/" in the following way:
Insert "Mail-Copies-To: never" only if I do a follow-up or a new
article. I.e. I don't want that header if I send a _reply_, that is
if the message doesn't go to the list.
Is this doable?
--
Arcady Genkin http://www.thpoon.com
Nostalgia isn't what it used to be.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sensible posting-styles
2000-05-03 18:33 sensible posting-styles Arcady Genkin
@ 2000-05-03 19:00 ` David S. Goldberg
2000-05-03 19:12 ` Holger Sparr
1 sibling, 0 replies; 5+ messages in thread
From: David S. Goldberg @ 2000-05-03 19:00 UTC (permalink / raw)
I have done something like what you want, but I'm not certain it works
right 100% of the time. It does seem to work right for most things.
It's not done with posting styles but rather
message-header-setup-hook. I seem to recall trying with posting
styles but not being able to get it to work. I don't recall why.
(defun my-message-header-setup-hook ()
(let ((group (or gnus-newsgroup-name "")))
(when (or (message-news-p)
(and (message-mail-p)
(string-match "wide reply" (buffer-name))
(or (message-fetch-field "newsgroups")
(gnus-group-find-parameter group 'to-address)))
(and (message-mail-p)
(string-match "mail to" (buffer-name))
(gnus-group-find-parameter group 'to-list)))
(message-add-header "Mail-Copies-To: never"))))
(add-hook 'message-header-setup-hook 'my-message-header-setup-hook)
hth,
--
Dave Goldberg
Post: The Mitre Corporation\MS K207\202 Burlington Rd.\Bedford, MA 01730
Phone: 781-271-3887
Email: dsg@mitre.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sensible posting-styles
2000-05-03 18:33 sensible posting-styles Arcady Genkin
2000-05-03 19:00 ` David S. Goldberg
@ 2000-05-03 19:12 ` Holger Sparr
2000-05-03 19:41 ` Arcady Genkin
1 sibling, 1 reply; 5+ messages in thread
From: Holger Sparr @ 2000-05-03 19:12 UTC (permalink / raw)
Arcady Genkin <antipode@thpoon.com> writes:
[...]
>
> Insert "Mail-Copies-To: never" only if I do a follow-up or a new
> article. I.e. I don't want that header if I send a _reply_, that is
> if the message doesn't go to the list.
>
> Is this doable?
I guess you can something do like:
(setq message-default-news-headers "Mail-Copies-To: never\n")
Holger
--
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sensible posting-styles
2000-05-03 19:12 ` Holger Sparr
@ 2000-05-03 19:41 ` Arcady Genkin
2000-05-04 8:23 ` Holger Sparr
0 siblings, 1 reply; 5+ messages in thread
From: Arcady Genkin @ 2000-05-03 19:41 UTC (permalink / raw)
Holger Sparr <sparr+ding@mfkrs1.mw.tu-dresden.de> writes:
> Arcady Genkin <antipode@thpoon.com> writes:
> > Insert "Mail-Copies-To: never" only if I do a follow-up or a new
> > article. I.e. I don't want that header if I send a _reply_, that is
> > if the message doesn't go to the list.
> >
> > Is this doable?
>
> I guess you can something do like:
>
> (setq message-default-news-headers "Mail-Copies-To: never\n")
But will it work in mail groups?
--
Arcady Genkin http://www.thpoon.com
Nostalgia isn't what it used to be.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: sensible posting-styles
2000-05-03 19:41 ` Arcady Genkin
@ 2000-05-04 8:23 ` Holger Sparr
0 siblings, 0 replies; 5+ messages in thread
From: Holger Sparr @ 2000-05-04 8:23 UTC (permalink / raw)
Arcady Genkin <antipode@thpoon.com> writes:
> Holger Sparr <sparr+ding@mfkrs1.mw.tu-dresden.de> writes:
>
> > Arcady Genkin <antipode@thpoon.com> writes:
>
> > > Insert "Mail-Copies-To: never" only if I do a follow-up or a new
> > > article. I.e. I don't want that header if I send a _reply_, that is
> > > if the message doesn't go to the list.
> > >
> > > Is this doable?
> >
> > I guess you can something do like:
> >
> > (setq message-default-news-headers "Mail-Copies-To: never\n")
>
> But will it work in mail groups?
There should be a way! Group Parameters, maybe?
Is the function provided by David doing the job?
Holger
--
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2000-05-04 8:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-03 18:33 sensible posting-styles Arcady Genkin
2000-05-03 19:00 ` David S. Goldberg
2000-05-03 19:12 ` Holger Sparr
2000-05-03 19:41 ` Arcady Genkin
2000-05-04 8:23 ` Holger Sparr
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).