* How to avoid resent- headers?
@ 2004-01-19 14:51 Steinar Bang
2004-01-19 20:43 ` Kai Grossjohann
[not found] ` <7cd69fiipf.fsf@nature.tsukuba.ac.jp>
0 siblings, 2 replies; 14+ messages in thread
From: Steinar Bang @ 2004-01-19 14:51 UTC (permalink / raw)
How do I avoid the resent-from etc. headers in resent messages?
I tried doing this, but it didn't help:
(setq message-ignored-resent-headers
(concat message-ignored-resent-headers
"\\|^Resent-.+"))
Thanx!
- Steinar
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to avoid resent- headers?
2004-01-19 14:51 How to avoid resent- headers? Steinar Bang
@ 2004-01-19 20:43 ` Kai Grossjohann
2004-01-19 22:34 ` Steinar Bang
[not found] ` <7cd69fiipf.fsf@nature.tsukuba.ac.jp>
1 sibling, 1 reply; 14+ messages in thread
From: Kai Grossjohann @ 2004-01-19 20:43 UTC (permalink / raw)
Steinar Bang <sb@dod.no> writes:
> How do I avoid the resent-from etc. headers in resent messages?
This is like asking how to avoid From/To/Cc in normal messages ;-)
Kai
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to avoid resent- headers?
2004-01-19 20:43 ` Kai Grossjohann
@ 2004-01-19 22:34 ` Steinar Bang
2004-01-19 23:30 ` Jesper Harder
2004-01-20 8:47 ` Kai Grossjohann
0 siblings, 2 replies; 14+ messages in thread
From: Steinar Bang @ 2004-01-19 22:34 UTC (permalink / raw)
>>>>> Kai Grossjohann <kai@emptydomain.de>:
> Steinar Bang <sb@dod.no> writes:
>> How do I avoid the resent-from etc. headers in resent messages?
> This is like asking how to avoid From/To/Cc in normal messages ;-)
How so? Are these headers understood, and used by the MTA? I thought
perhaps Gnus did an SMTP connection when resending?
Perhaps I can convince exim to lose these headers then?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to avoid resent- headers?
2004-01-19 22:34 ` Steinar Bang
@ 2004-01-19 23:30 ` Jesper Harder
2004-01-20 6:13 ` Steinar Bang
2004-01-20 8:47 ` Kai Grossjohann
1 sibling, 1 reply; 14+ messages in thread
From: Jesper Harder @ 2004-01-19 23:30 UTC (permalink / raw)
Steinar Bang <sb@dod.no> writes:
>>>>>> Kai Grossjohann <kai@emptydomain.de>:
>
>> Steinar Bang <sb@dod.no> writes:
>>> How do I avoid the resent-from etc. headers in resent messages?
>
>> This is like asking how to avoid From/To/Cc in normal messages ;-)
>
> How so? Are these headers understood, and used by the MTA?
No, they're informational (but so is From/To/Cc). RFC 2822 says that
they SHOULD be added when resending.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to avoid resent- headers?
2004-01-19 23:30 ` Jesper Harder
@ 2004-01-20 6:13 ` Steinar Bang
2004-01-20 14:06 ` Josh Huber
0 siblings, 1 reply; 14+ messages in thread
From: Steinar Bang @ 2004-01-20 6:13 UTC (permalink / raw)
>>>>> Jesper Harder <harder@ifa.au.dk>:
> Steinar Bang <sb@dod.no> writes:
>>>>>>> Kai Grossjohann <kai@emptydomain.de>:
>>> Steinar Bang <sb@dod.no> writes:
>>>> How do I avoid the resent-from etc. headers in resent messages?
>>> This is like asking how to avoid From/To/Cc in normal messages ;-)
>> How so? Are these headers understood, and used by the MTA?
> No, they're informational
What program is it that interprets them to see where the message
should go? The MTA? The MTA interface in Emacs? Something in Gnus?
> (but so is From/To/Cc).
...except for when being initially interpreted by the MTA on
linux/unix systems.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to avoid resent- headers?
2004-01-20 6:13 ` Steinar Bang
@ 2004-01-20 14:06 ` Josh Huber
2004-01-20 19:37 ` Steinar Bang
0 siblings, 1 reply; 14+ messages in thread
From: Josh Huber @ 2004-01-20 14:06 UTC (permalink / raw)
Steinar Bang <sb@dod.no> writes:
> What program is it that interprets them to see where the message
> should go? The MTA? The MTA interface in Emacs? Something in Gnus?
[...]
> ...except for when being initially interpreted by the MTA on
> linux/unix systems.
The MTA does not look at the To/CC headers when deciding where to
deliver a message, it uses the envelope recipient information. What
happens (at lest, when you're using smtpmail.el) is the envelope
recipient information is gathered from the various fields
(to/cc/bcc), bcc headers are removed, then the message is injected
into the MTA using SMTP. The initial protocol exchange (prior to
sending the message data) specifies the sender/recipient addresses.
--
Josh Huber
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to avoid resent- headers?
2004-01-20 14:06 ` Josh Huber
@ 2004-01-20 19:37 ` Steinar Bang
0 siblings, 0 replies; 14+ messages in thread
From: Steinar Bang @ 2004-01-20 19:37 UTC (permalink / raw)
>>>>> Josh Huber <huber+news@alum.wpi.edu>:
> The MTA does not look at the To/CC headers when deciding where to
> deliver a message, it uses the envelope recipient information.
Yes I know. This is true for sending mail with SMTP.
I was thinking of what sendmail.el used to do: call sendmail and hand
over the body of the message. I don't know if it works that way
anymore (smtpmail.el, which you refer to, presumably talks SMTP to
hand over the message).
However, I'm still in the blue as to what software _uses_ the resent-*
headers.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to avoid resent- headers?
2004-01-19 22:34 ` Steinar Bang
2004-01-19 23:30 ` Jesper Harder
@ 2004-01-20 8:47 ` Kai Grossjohann
2004-01-20 19:39 ` Steinar Bang
1 sibling, 1 reply; 14+ messages in thread
From: Kai Grossjohann @ 2004-01-20 8:47 UTC (permalink / raw)
Steinar Bang <sb@dod.no> writes:
>>>>>> Kai Grossjohann <kai@emptydomain.de>:
>
>> Steinar Bang <sb@dod.no> writes:
>>> How do I avoid the resent-from etc. headers in resent messages?
>
>> This is like asking how to avoid From/To/Cc in normal messages ;-)
>
> How so? Are these headers understood, and used by the MTA?
If you pass the message to "sendmail -t", then sendmail will look
whether the resent-foo headers exist and use that. Only if resent-foo
does not exist, then sendmail will look at the foo header.
Search for "Resent-" in smtpmail.el for further information.
Kai
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to avoid resent- headers?
2004-01-20 8:47 ` Kai Grossjohann
@ 2004-01-20 19:39 ` Steinar Bang
2004-01-21 10:02 ` Kai Grossjohann
0 siblings, 1 reply; 14+ messages in thread
From: Steinar Bang @ 2004-01-20 19:39 UTC (permalink / raw)
>>>>> Kai Grossjohann <kai@emptydomain.de>:
> If you pass the message to "sendmail -t", then sendmail will look
> whether the resent-foo headers exist and use that. Only if
> resent-foo does not exist, then sendmail will look at the foo
> header.
OK. It's used by sendmail to do the actual resend?
> Search for "Resent-" in smtpmail.el for further information.
Do you mean in sendmail.el? smtpmail.el presumably speaks SMTP to
hand off the message, and doesn't need the message to have resent-
headers, at least not when sending it off.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to avoid resent- headers?
2004-01-20 19:39 ` Steinar Bang
@ 2004-01-21 10:02 ` Kai Grossjohann
0 siblings, 0 replies; 14+ messages in thread
From: Kai Grossjohann @ 2004-01-21 10:02 UTC (permalink / raw)
Steinar Bang <sb@dod.no> writes:
>>>>>> Kai Grossjohann <kai@emptydomain.de>:
>
>> If you pass the message to "sendmail -t", then sendmail will look
>> whether the resent-foo headers exist and use that. Only if
>> resent-foo does not exist, then sendmail will look at the foo
>> header.
>
> OK. It's used by sendmail to do the actual resend?
I guess that sendmail.el feeds the message to "/usr/lib/sendmail -t" without
further ado. /usr/lib/sendmail is then responsible for looking at the
Resent- headers.
>> Search for "Resent-" in smtpmail.el for further information.
>
> Do you mean in sendmail.el?
No.
> smtpmail.el presumably speaks SMTP to hand off the message, and
> doesn't need the message to have resent- headers, at least not when
> sending it off.
smtpmail.el computes the envelope from the resent- headers.
Kai
^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <7cd69fiipf.fsf@nature.tsukuba.ac.jp>]
* Re: How to avoid resent- headers?
[not found] ` <7cd69fiipf.fsf@nature.tsukuba.ac.jp>
@ 2004-01-20 0:25 ` Katsumi Yamaoka
2004-01-20 6:20 ` Steinar Bang
2004-01-20 6:24 ` Steinar Bang
1 sibling, 1 reply; 14+ messages in thread
From: Katsumi Yamaoka @ 2004-01-20 0:25 UTC (permalink / raw)
>>>>> In <7cd69fiipf.fsf@nature.tsukuba.ac.jp> Hiroshi Fujishima wrote:
> Steinar Bang <sb@dod.no> writes:
>> How do I avoid the resent-from etc. headers in resent messages?
> (defvar message-ignored-mail-headers-save message-ignored-mail-headers)
> (setq message-ignored-mail-headers
> (concat message-ignored-mail-headers-save
> "\\|^Resent-From:"))
Even if it is successful to remove Reset- headers (but I don't
think so), is the message sent to the correct Resent-To address?
Of course there's no problem if To and Resent-To are the same,
though.
--
Katsumi Yamaoka <yamaoka@jpl.org>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to avoid resent- headers?
2004-01-20 0:25 ` Katsumi Yamaoka
@ 2004-01-20 6:20 ` Steinar Bang
[not found] ` <87smibm997.fsf-0MSThuzptbI@public.gmane.org>
0 siblings, 1 reply; 14+ messages in thread
From: Steinar Bang @ 2004-01-20 6:20 UTC (permalink / raw)
>>>>> Katsumi Yamaoka <yamaoka@jpl.org>:
> Even if it is successful to remove Reset- headers (but I don't think
> so), is the message sent to the correct Resent-To address? Of
> course there's no problem if To and Resent-To are the same, though.
Well, most of the times I resend, it is because the original address
bounced, so that won't do.
On the other hand, the only header I need to sap is resent-from,
because it didn't pick a sender address using gnus-posting-styles, but
instead created a bogus sender address using my current userid at
gnus-local-domain.
So the exact example above, should work for me.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: How to avoid resent- headers?
[not found] ` <7cd69fiipf.fsf@nature.tsukuba.ac.jp>
2004-01-20 0:25 ` Katsumi Yamaoka
@ 2004-01-20 6:24 ` Steinar Bang
1 sibling, 0 replies; 14+ messages in thread
From: Steinar Bang @ 2004-01-20 6:24 UTC (permalink / raw)
>>>>> Hiroshi Fujishima <pooh@nature.tsukuba.ac.jp>:
> Steinar Bang <sb@dod.no> writes:
>> How do I avoid the resent-from etc. headers in resent messages?
> (defvar message-ignored-mail-headers-save message-ignored-mail-headers)
> (setq message-ignored-mail-headers
> (concat message-ignored-mail-headers-save
> "\\|^Resent-From:"))
Hm... what's the significant difference from my original example? Not
the temporary variable? Is it that this blocks just a single resent-
header, instead of trying to match all of them? Is it that the colon
is part of the regexp pattern?
Thanx!
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2004-01-21 10:02 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-19 14:51 How to avoid resent- headers? Steinar Bang
2004-01-19 20:43 ` Kai Grossjohann
2004-01-19 22:34 ` Steinar Bang
2004-01-19 23:30 ` Jesper Harder
2004-01-20 6:13 ` Steinar Bang
2004-01-20 14:06 ` Josh Huber
2004-01-20 19:37 ` Steinar Bang
2004-01-20 8:47 ` Kai Grossjohann
2004-01-20 19:39 ` Steinar Bang
2004-01-21 10:02 ` Kai Grossjohann
[not found] ` <7cd69fiipf.fsf@nature.tsukuba.ac.jp>
2004-01-20 0:25 ` Katsumi Yamaoka
2004-01-20 6:20 ` Steinar Bang
[not found] ` <87smibm997.fsf-0MSThuzptbI@public.gmane.org>
2004-01-20 21:43 ` Jochen Küpper
2004-01-20 6:24 ` 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).