Gnus development mailing list
 help / color / mirror / Atom feed
From: prj@po.cwru.edu (Paul Jarc)
Subject: Re: Forcing the sender address in Posting Styles
Date: Sat, 20 Apr 2002 03:07:36 -0400	[thread overview]
Message-ID: <m3r8laalv5.fsf@multivac.cwru.edu> (raw)
In-Reply-To: <m14ri7ggsd.fsf@reader.newsguy.com> (Harry Putnam's message of "Fri, 19 Apr 2002 21:38:25 -0700")

Harry Putnam <reader@newsguy.com> wrote:
> Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:
>>     (defvar hp-fqdn "reader.newsguy.com")
>>
>>     (defun message-make-fqdn ()
>>       "My hacked msg id."
>>       hp-fqdn)
>>
>> Then you can set hp-fqdn as a local variable in some groups.  I think
>> you also have to (add-to-list 'hp-fqdn 'gnus-newsgroup-variables),
>> but I'm not sure.
>
> But would I then have to set the other hacked msg id in all others?

I don't think so.  Making a local variable in group parameters makes
the value buffer-local to the *Summary* buffer; adding it to
gnus-newsgroup-variables means the *Summary* buffer-local value will
also be used in *Article* and message buffers created from that
*Summary*, and will also be buffer-local in those buffers.

> Also, it really wasn't clear what variable I would set hp-fqdn to.

Set it to "reader.newsguy.com" in defvar for the default, and then set
it to "reader.dslextreme.com" in the group parameters for the group
where you want to override it.

> those who know me have no need of my name <not-a-real-address@usa.net> writes:
>> ((gcc-self . t)
>>  (posting-style
>>   (name "Harry Putnam")
>>   (address "reader@dslextreme.com"))
>>   ("Message-Id" (function-the-generates-a-dslextreme-id)))
>
> Is this close to what you are suggesting:
>
> ((gcc-self . t)
>  (posting-style
>   (name "Harry Putnam")
>   (address "Harry Putnam  <reader@dslextreme.com>"))
>  ("Message-Id" (defun message-make-fqdn ()
> 		 "My  hacked message-id."
> 		 "reader.dslextreme.com")))

TWKM was suggesting calling a function in that spot, not defining one.
But I don't think this would work; IIRC, Message-ID gets erased and
regenerated when a message is sent, and group parameters are ignored
at that point.


paul



      reply	other threads:[~2002-04-20  7:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m17kn532u8.fsf@reader.newsguy.com>
     [not found] ` <vafg01t2vpo.fsf@lucy.cs.uni-dortmund.de>
2002-04-20  4:38   ` Harry Putnam
2002-04-20  7:07     ` Paul Jarc [this message]

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=m3r8laalv5.fsf@multivac.cwru.edu \
    --to=prj@po.cwru.edu \
    /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).