Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: ding@gnus.org
Subject: Re: Gnus generates an invalid To header
Date: Sat, 24 Nov 2007 14:03:51 +0100	[thread overview]
Message-ID: <v9d4tzeqx4.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <87tznbkgqs.fsf@member.fsf.org> (Tassilo Horn's message of "Sat, 24 Nov 2007 12:47:07 +0100")

On Sat, Nov 24 2007, Tassilo Horn wrote:

> Reply-To: "kontakt@tieraerztliche-klinik.com" <Tierklinik Kaiserberg Duisburg>
> From: <kontakt@tieraerztliche-klinik.com>
>
> When I want to reply to it (R or r) Gnus generates the following To
> header:
>
> To: "kontakt@/usr/bin/idn: tld_check_4z: missing inputtieraerztliche-klinik.com" <Tierklinik Kaiserberg Duisburg>

This looks like the output of the IDNA program (/usr/bin/idn).  I
don't have IDNA installed, so I get (disabling it does the same [1]):

,----
| To: "kontakt@tieraerztliche-klinik.com" <Tierklinik Kaiserberg Duisburg>
`----

This is exactly the bogus Reply-To the sender requested.

By edebugging `message-idna-to-ascii-rhs-1', I found that it calls
(idna-to-ascii rhs) with `rhs' = "" because the right hand side of
"tierklinikkaiserbergduisburg" is the empty string.  Maybe message
should just return the same header instead if calling `idna-to-ascii'
if `rhs' is empty?

Throwing an error would not be correct, because "To: foo" is valid
(local user / domain added by the MTA).

> I'm not too familiar with the specs, but I guess it's not Gnus' but the
> senders' fault, e.g. it has to be
>
> Reply-To: "Tierklinik Kaiserberg Duisburg" <kontakt@tieraerztliche-klinik.com>

Yes.  "kontakt@tieraerztliche-klinik.com" is a comment.

Bye, Reiner.

[1]
,----[ M-x apropos-variable RET idna RET ]
| gnus-use-idna
|   Variable: Whether IDNA decoding of headers is used when viewing messages.
| message-use-idna
|   Variable: Whether to encode non-ASCII in domain names into ASCII according to IDNA.
`----
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




  reply	other threads:[~2007-11-24 13:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-24 11:47 Tassilo Horn
2007-11-24 13:03 ` Reiner Steib [this message]
2007-11-26 11:25   ` Tassilo Horn
2007-11-26 12:42     ` Elias Oltmanns
2007-11-28 21:42       ` Reiner Steib
2007-12-01 11:56       ` Avoid calling idna-to-ascii on ASCII domain names (was: Gnus generates an invalid To header) Reiner Steib

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=v9d4tzeqx4.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=ding@gnus.org \
    /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).