Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Re: getting Gnus to grok TMDA or vice-versa
       [not found] <87r8ixol5g.fsf@nomad.consult-meyers.com>
@ 2002-06-25 20:14 ` Paul Jarc
  0 siblings, 0 replies; only message in thread
From: Paul Jarc @ 2002-06-25 20:14 UTC (permalink / raw)


"A. L. Meyers" <nospam.look@replyto.because.this.is.invalid> wrote:
> (setq gnus-posting-styles
>   '((".*"                   ;; The quote is necessary!
>       message-this-is-news
>       (address tmda-dated-address))))
>
> However, also have the following in ~/.gnus.el :
>
> (setq gnus-posting-styles
>       '((t                ("From" "\"A. L. Meyers\" <nospam.look@replyto.because.this.is.invalid>"))
> 	((message-mail-p) ("From" "\"A. Lucien Meyers\" <a.l.meyers@consult-meyers.com>"))))
>
> Are these entries compatible?

Merge them:
(setq gnus-posting-styles
  '((".*"
      message-this-is-news
      (address tmda-dated-address))
    (t
     ("From" "\"A. L. Meyers\" <nospam.look@replyto.because.this.is.invalid>"))
    ((message-mail-p)
     ("From" "\"A. Lucien Meyers\" <a.l.meyers@consult-meyers.com>"))))

Or, if you want to keep them as separate top-level forms:
(require 'gnus-msg)
(add-to-list 'gnus-posting-styles
             '(".*"
               message-this-is-news
               (address tmda-dated-address)))
(add-to-list 'gnus-posting-styles
             '(t
               ("From" "\"A. L. Meyers\" <nospam.look@replyto.because.this.is.invalid>")))
(add-to-list 'gnus-posting-styles
             '((message-mail-p)
               ("From" "\"A. Lucien Meyers\" <a.l.meyers@consult-meyers.com>")))

Also note that if you want to specify your From name only once, and
only change the From address for different groups, you can use "name"
and "address" instead of ""From"".


paul


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-06-25 20:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87r8ixol5g.fsf@nomad.consult-meyers.com>
2002-06-25 20:14 ` getting Gnus to grok TMDA or vice-versa Paul Jarc

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