* Need group parameter "from-list"
@ 1998-06-30 4:14 Eze Ogwuma
1998-06-30 10:18 ` Robert Bihlmeyer
` (3 more replies)
0 siblings, 4 replies; 16+ messages in thread
From: Eze Ogwuma @ 1998-06-30 4:14 UTC (permalink / raw)
Hi,
Is there any way to set my "From" header depending on which group I'm
in? I was hoping for something like the group parameter "to-list".
Thanks.
--
Eze Ogwuma
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Need group parameter "from-list"
1998-06-30 4:14 Need group parameter "from-list" Eze Ogwuma
@ 1998-06-30 10:18 ` Robert Bihlmeyer
1998-06-30 11:33 ` Eze Ogwuma
1998-06-30 12:11 ` Jari Aalto+list.ding
` (2 subsequent siblings)
3 siblings, 1 reply; 16+ messages in thread
From: Robert Bihlmeyer @ 1998-06-30 10:18 UTC (permalink / raw)
Hi,
>>>>> On 30 Jun 1998 05:14:14 +0100
>>>>> Eze Ogwuma <typhoon@dircon.co.uk> said:
Eze> Is there any way to set my "From" header depending on which
Eze> group I'm in?
How about setting a local `user-mail-address' in the group parameters?
Eliminating the "Sender:" will be left as an exercise to the reader.
Robbe
--
Robert Bihlmeyer reads: Deutsch, English, MIME, Latin-1, NO SPAM!
<robbe@orcus.priv.at> <http://stud2.tuwien.ac.at/~e9426626/sig.html>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Need group parameter "from-list"
1998-06-30 10:18 ` Robert Bihlmeyer
@ 1998-06-30 11:33 ` Eze Ogwuma
1998-06-30 15:29 ` Robert Bihlmeyer
0 siblings, 1 reply; 16+ messages in thread
From: Eze Ogwuma @ 1998-06-30 11:33 UTC (permalink / raw)
Cc: ding
Robert Bihlmeyer <e9426626@stud2.tuwien.ac.at> writes:
> Hi,
>
> >>>>> On 30 Jun 1998 05:14:14 +0100
> >>>>> Eze Ogwuma <typhoon@dircon.co.uk> said:
>
> Eze> Is there any way to set my "From" header depending on which
> Eze> group I'm in?
>
> How about setting a local `user-mail-address' in the group parameters?
I've tried that but I just can't get it to work. I presume that if it
can be done I've got the format wrong.
If you know the correct format please let me know.
Thanks.
--
Eze Ogwuma
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Need group parameter "from-list"
1998-06-30 4:14 Need group parameter "from-list" Eze Ogwuma
1998-06-30 10:18 ` Robert Bihlmeyer
@ 1998-06-30 12:11 ` Jari Aalto+list.ding
1998-06-30 14:27 ` Edward J. Sabol
[not found] ` <m3af6vp1lm.fsf@k0817.kampsax.dtu.dk>
3 siblings, 0 replies; 16+ messages in thread
From: Jari Aalto+list.ding @ 1998-06-30 12:11 UTC (permalink / raw)
| 1998-06-30 Eze Ogwuma <typhoon@dircon.co.uk> list.ding
| Hi,
|
| Is there any way to set my "From" header depending on which group I'm
| in? I was hoping for something like the group parameter "to-list".
I do exactly the same, I use sophisticated 'From' field generator,
which generates appropriate user-mail-address and
RCF comment, which, when returned, traps my procmail recipes
like sendmail plus addressing would.
Basicly you want
(gnus-group-get-parameter gnus-newsgroup-name 'to-list)
In function hooked to message-mode-hook or message-header-setup-hook
jari
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Need group parameter "from-list"
1998-06-30 4:14 Need group parameter "from-list" Eze Ogwuma
1998-06-30 10:18 ` Robert Bihlmeyer
1998-06-30 12:11 ` Jari Aalto+list.ding
@ 1998-06-30 14:27 ` Edward J. Sabol
[not found] ` <m3af6vp1lm.fsf@k0817.kampsax.dtu.dk>
3 siblings, 0 replies; 16+ messages in thread
From: Edward J. Sabol @ 1998-06-30 14:27 UTC (permalink / raw)
Excerpts from mail: (30-Jun-98) Need group parameter "from-list" by Eze Ogwuma
> Is there any way to set my "From" header depending on which group I'm
> in? I was hoping for something like the group parameter "to-list".
This sounds like a job for `gnus-posting-styles'. Too bad it still hasn't
been re-implemented. :-(
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Need group parameter "from-list"
[not found] ` <m3af6vp1lm.fsf@k0817.kampsax.dtu.dk>
@ 1998-06-30 14:59 ` Steinar Bang
0 siblings, 0 replies; 16+ messages in thread
From: Steinar Bang @ 1998-06-30 14:59 UTC (permalink / raw)
>>>>> Anders Melchiorsen <postmaster@and.nospam.kampsax.k-net.dk>:
> Eze Ogwuma <typhoon@dircon.co.uk> writes:
>> Is there any way to set my "From" header depending on which group I'm
>> in? I was hoping for something like the group parameter "to-list".
> I recently started using this, which seems to work. I believe I got it
> from the FAQ, actually.
> ; Set spam-resistent address ininternational newsgroups
> (defun my-address ()
> "Selects an e-mail address based on what newsgroup we are in"
> (setq user-mail-address
> (cond ((string-match "^nnml:mail\\|k-net" gnus-newsgroup-name)
> "my@real.address")
> (t
> "postmaster@and.nospam.kampsax.k-net.dk"))))
> (add-hook 'gnus-summary-mode-hook 'my-address)
I'm doing something way more complicated. The reason for this was to
allow me to cancel and supersede in groups where I had another mail
identity. Unfortunately, with Gnus 5.6.9, this doesn't work anymore,
and I haven't had the energy to look into why. Add another sigh for
gnus-posting-styles...
;=======================================================================
; Emulate "posting styles" by ugly hacks
;
; First a convenient regexp to identify all hobby news and mail groups
; thanx to Erik Naggum
(defvar mc-newsgroups
(mapconcat #'identity
(list "nnml:mail\\.dod"
"nnml:mail\\.utdrikk"
"nnml:hobby\\.trip_report"
"nnml:mail\\.vfr"
"dod\..*"
"no\\.alt\\.motorsykler"
"alt\\.fan\\.ivan"
"\\(nordunet.\\)?rec\\.motorcycles"
)
"\\|"))
(defvar private-newsgroups
(mapconcat #'identity
(list "nnm[hl]:\\(\\(other\\)?folk\\|hobby\\).*"
"nnml:mail\\.private"
"rec\\.aviation\\.military"
"alt\\.fan\\..*"
"no\\.film"
"NRK\\.generelt"
)
"\\|"))
(defvar hobby-newsgroups
(mapconcat #'identity
(list mc-newsgroups
private-newsgroups
)
"\\|"))
;===========================
; Customize the user-mail-address on the basis of the mail or news group
; posted from
;
(defadvice message-user-mail-address (before generate-user-mail-address activate compile)
"Change the value of the user mail address based on the group."
(setq user-mail-address
(cond
((stringp gnus-newsgroup-name)
(cond
((string-match mc-newsgroups gnus-newsgroup-name)
"sb@dod.no")
((string-match private-newsgroups gnus-newsgroup-name)
"steinar@bang.priv.no")
(t "sb@metis.no")
))
(t "sb@metis.no"))))
;===========================
; Customize the Organization, dependent on the news group posted from
;
(defun set-custom-organization (org-name)
"Make the message-user-organization buffer local, and
set it to a custom value.
As a side effect, make the message-syntac checks variable
buffer local, and and set it to disable the Sender header
field"
(progn
(make-variable-buffer-local 'message-user-organization)
(make-variable-buffer-local 'message-syntax-checks)
(setq message-user-organization org-name)
(setq message-syntax-checks (list '(sender . disabled)))
))
(defun custom-organization-and-sender ()
"Set custom organization, and sender on some news groups"
(cond
((stringp gnus-newsgroup-name)
(cond
((string-match hobby-newsgroups gnus-newsgroup-name)
(set-custom-organization "DoD, Norway Chapter"))
((string-match "no.test" gnus-newsgroup-name)
(set-custom-organization "Testers Inc."))
))
(t nil)))
(add-hook 'message-header-setup-hook 'custom-organization-and-sender)
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Need group parameter "from-list"
1998-06-30 11:33 ` Eze Ogwuma
@ 1998-06-30 15:29 ` Robert Bihlmeyer
1998-06-30 20:18 ` Eze Ogwuma
0 siblings, 1 reply; 16+ messages in thread
From: Robert Bihlmeyer @ 1998-06-30 15:29 UTC (permalink / raw)
>>>>> On 30 Jun 1998 12:33:24 +0100
>>>>> Eze Ogwuma <typhoon@dircon.co.uk> said:
Eze> I've tried that but I just can't get it to work.
Yes, I too had to try a few times before succeeding. Group Parameters
are not intuitive IMHO.
Eze> If you know the correct format please let me know.
Try the peculiar
(user-mail-address
'"foo@bar.com")
Robbe
--
Robert Bihlmeyer reads: Deutsch, English, MIME, Latin-1, NO SPAM!
<robbe@orcus.priv.at> <http://stud2.tuwien.ac.at/~e9426626/sig.html>
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Need group parameter "from-list"
1998-06-30 15:29 ` Robert Bihlmeyer
@ 1998-06-30 20:18 ` Eze Ogwuma
1998-07-01 2:26 ` Karl Kleinpaste
0 siblings, 1 reply; 16+ messages in thread
From: Eze Ogwuma @ 1998-06-30 20:18 UTC (permalink / raw)
Cc: ding
Robert Bihlmeyer <e9426626@stud2.tuwien.ac.at> writes:
> >>>>> On 30 Jun 1998 12:33:24 +0100
> >>>>> Eze Ogwuma <typhoon@dircon.co.uk> said:
>
> Eze> I've tried that but I just can't get it to work.
>
> Yes, I too had to try a few times before succeeding. Group Parameters
> are not intuitive IMHO.
>
> Eze> If you know the correct format please let me know.
>
> Try the peculiar
> (user-mail-address
> '"foo@bar.com")
Hello,
I tried it and it does nothing, just like all the others.
Thanks.
--
Eze Ogwuma
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Need group parameter "from-list"
1998-06-30 20:18 ` Eze Ogwuma
@ 1998-07-01 2:26 ` Karl Kleinpaste
1998-07-01 9:36 ` Kai Grossjohann
0 siblings, 1 reply; 16+ messages in thread
From: Karl Kleinpaste @ 1998-07-01 2:26 UTC (permalink / raw)
Robert Bihlmeyer <e9426626@stud2.tuwien.ac.at> writes:
>> Try the peculiar
>> (user-mail-address
>> '"foo@bar.com")
Eze Ogwuma <zcaceog@ucl.ac.uk> writes:
> I tried it and it does nothing, just like all the others.
I tried this, too. Both adding an element via `G p' of
(user-mail-address '"karl@justresearch.com")
or adding a SCORE entry
(local (user-mail-address "karl@justresearch.com"))
cause a buffer-local instance of user-mail-address to be set to the
new string, which can be seen with `C-h v', but for some reason that
value does not propagate into the final message when sent.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Need group parameter "from-list"
1998-07-01 2:26 ` Karl Kleinpaste
@ 1998-07-01 9:36 ` Kai Grossjohann
1998-07-01 11:54 ` Lars Magne Ingebrigtsen
0 siblings, 1 reply; 16+ messages in thread
From: Kai Grossjohann @ 1998-07-01 9:36 UTC (permalink / raw)
Cc: ding
>>>>> Karl Kleinpaste <karl@jprc.com> writes:
> [...] Both adding an element via `G p' [...] or adding a SCORE
> entry [...] cause a buffer-local instance of user-mail-address to
> be set to the new string, which can be seen with `C-h v', but for
> some reason that value does not propagate into the final message
> when sent.
Wasn't there this problem that buffer-local variables in the summary
buffer weren't propagated to the message buffers? Isn't there an item
on Lars' todo list about this? I don't remember...
kai
--
You ate somebody? -- Just a leg. -- That's terrible! -- Not with mustard.
(Terry Pratchett: Interesting Times)
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Need group parameter "from-list"
1998-07-01 9:36 ` Kai Grossjohann
@ 1998-07-01 11:54 ` Lars Magne Ingebrigtsen
1998-07-01 12:49 ` Kai Grossjohann
0 siblings, 1 reply; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-07-01 11:54 UTC (permalink / raw)
Kai Grossjohann <grossjohann@charly.cs.uni-dortmund.de> writes:
> Wasn't there this problem that buffer-local variables in the summary
> buffer weren't propagated to the message buffers?
That's correct, but I don't know whether that's a problem, really...
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Need group parameter "from-list"
1998-07-01 11:54 ` Lars Magne Ingebrigtsen
@ 1998-07-01 12:49 ` Kai Grossjohann
1998-07-01 15:31 ` Lars Magne Ingebrigtsen
1998-07-01 18:04 ` Edward J. Sabol
0 siblings, 2 replies; 16+ messages in thread
From: Kai Grossjohann @ 1998-07-01 12:49 UTC (permalink / raw)
>>>>> Kai Grossjohann <grossjohann@charly.cs.uni-dortmund.de> writes:
> Wasn't there this problem that buffer-local variables in the
> summary buffer weren't propagated to the message buffers?
>>>>> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> That's correct, but I don't know whether that's a problem,
> really...
Considering the high standard you've set yourself for Gnus, the
absence of a nifty feature could already be construed as a `problem'
:-)
But seriously, wouldn't it be nifty if one could set local variables
for the messages in the group parameters? Like user-mail-address, or
message-signature-file, or the like.
kai
--
You ate somebody? -- Just a leg. -- That's terrible! -- Not with mustard.
(Terry Pratchett: Interesting Times)
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Need group parameter "from-list"
1998-07-01 12:49 ` Kai Grossjohann
@ 1998-07-01 15:31 ` Lars Magne Ingebrigtsen
1998-07-11 6:56 ` SL Baur
1998-07-01 18:04 ` Edward J. Sabol
1 sibling, 1 reply; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-07-01 15:31 UTC (permalink / raw)
Kai Grossjohann <grossjohann@charly.cs.uni-dortmund.de> writes:
> But seriously, wouldn't it be nifty if one could set local variables
> for the messages in the group parameters? Like user-mail-address, or
> message-signature-file, or the like.
Yup. Fix in Gnus v5.6.24.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Need group parameter "from-list"
1998-07-01 12:49 ` Kai Grossjohann
1998-07-01 15:31 ` Lars Magne Ingebrigtsen
@ 1998-07-01 18:04 ` Edward J. Sabol
1998-07-02 9:12 ` Lars Magne Ingebrigtsen
1 sibling, 1 reply; 16+ messages in thread
From: Edward J. Sabol @ 1998-07-01 18:04 UTC (permalink / raw)
Excerpts from mail: (01-Jul-98) Re: Need group parameter "from-list" by Kai Grossjohann
> But seriously, wouldn't it be nifty if one could set local variables
> for the messages in the group parameters? Like user-mail-address, or
> message-signature-file, or the like.
I think we would all be better served by re-implementing
`gnus-posting-styles' if those are the variables that you want to change. The
last time this was discussed on the mailing list, Lars was planning on
implementing a `posting-style' group parameter as part of that
implementation.
Later,
Ed
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Need group parameter "from-list"
1998-07-01 18:04 ` Edward J. Sabol
@ 1998-07-02 9:12 ` Lars Magne Ingebrigtsen
0 siblings, 0 replies; 16+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-07-02 9:12 UTC (permalink / raw)
"Edward J. Sabol" <sabol@alderaan.gsfc.nasa.gov> writes:
> I think we would all be better served by re-implementing
> `gnus-posting-styles' if those are the variables that you want to
> change.
Yup; I think so, too.
> The last time this was discussed on the mailing list, Lars was
> planning on implementing a `posting-style' group parameter as part
> of that implementation.
Yes, that might be nice.
Well, posting styles should be trivial to implement -- one just sets a
bunch of local variables in the message buffer. Voilà!
In fact, I think I'll just add that right away. Look for in in Gnus
v5.6.24.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Need group parameter "from-list"
1998-07-01 15:31 ` Lars Magne Ingebrigtsen
@ 1998-07-11 6:56 ` SL Baur
0 siblings, 0 replies; 16+ messages in thread
From: SL Baur @ 1998-07-11 6:56 UTC (permalink / raw)
Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
> Kai Grossjohann <grossjohann@charly.cs.uni-dortmund.de> writes:
>> But seriously, wouldn't it be nifty if one could set local variables
>> for the messages in the group parameters? Like user-mail-address, or
>> message-signature-file, or the like.
> Yup. Fix in Gnus v5.6.24.
Cool! This would be great. I've needed it for a long time.
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~1998-07-11 6:56 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-06-30 4:14 Need group parameter "from-list" Eze Ogwuma
1998-06-30 10:18 ` Robert Bihlmeyer
1998-06-30 11:33 ` Eze Ogwuma
1998-06-30 15:29 ` Robert Bihlmeyer
1998-06-30 20:18 ` Eze Ogwuma
1998-07-01 2:26 ` Karl Kleinpaste
1998-07-01 9:36 ` Kai Grossjohann
1998-07-01 11:54 ` Lars Magne Ingebrigtsen
1998-07-01 12:49 ` Kai Grossjohann
1998-07-01 15:31 ` Lars Magne Ingebrigtsen
1998-07-11 6:56 ` SL Baur
1998-07-01 18:04 ` Edward J. Sabol
1998-07-02 9:12 ` Lars Magne Ingebrigtsen
1998-06-30 12:11 ` Jari Aalto+list.ding
1998-06-30 14:27 ` Edward J. Sabol
[not found] ` <m3af6vp1lm.fsf@k0817.kampsax.dtu.dk>
1998-06-30 14:59 ` Steinar Bang
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).