Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Richard Cobbe <cobbe@airmail.net>
Subject: Re: Gnus code snippet for tmda dated addresses?
Date: 10 Jun 2002 17:20:05 -0500	[thread overview]
Message-ID: <103F545196E72465.5F706F75F9A51AEA.20737D40F1103389@lp.airnews.net> (raw)
In-Reply-To: <87bsaig69h.fsf@nomad.consult-meyers.com>

"A. L. Meyers" <nospam.look@replyto.because.this.is.invalid> writes:

> Hi! The tmda antispam tool recommends the following code to insert
> dated addresses into USENET postings when using Gnus:
> 
> (defun tmda-dated-address ()
>   (shell-command-to-string "/path/to/tmda/bin/tmda-address -dn"))
>   (setq gnus-posting-styles
>         (message-this-is-news
>         (address tmda-dated-address)))
> 
> Alas, this appears not to work with Oort Gnus. I get error messages "no
> such function" for the functions "messeage-this-is-news" and "address".

Looks to me like there's a missing single quote (') before the parenthesis
on the 4th line.  However, simply adding the quote (to suppress evaluation)
won't work terribly well, as this value doesn't appear to correspond to the
expected values for gnus-posting-styles.  See the `Posting Styles' node of
the Gnus manual for more details.  If you want to apply TMDA dated
addresses to messages posted to all groups, something like the following
should work:

(setq gnus-posting-styles
  '((".*"                   ;; The quote is necessary!
     message-this-is-news
     (address tmda-dated-address))))

HTH,

Richard


           reply	other threads:[~2002-06-10 22:20 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <87bsaig69h.fsf@nomad.consult-meyers.com>]

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=103F545196E72465.5F706F75F9A51AEA.20737D40F1103389@lp.airnews.net \
    --to=cobbe@airmail.net \
    /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).