From: Lars-Johan Liman <liman@cafax.se>
To: Eric Abrahamsen <eric@ericabrahamsen.net>
Cc: info-gnus-english@gnu.org
Subject: Re: Gnus capitalizes non-header "from"
Date: Tue, 14 Nov 2017 09:10:21 +0100 [thread overview]
Message-ID: <22bmk59t76.fsf@netnod.se> (raw)
In-Reply-To: <87fu9hsmmf.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Mon, 13 Nov 2017 16:57:28 -0800")
eric@ericabrahamsen.net:
> asjo@koldfront.dk (Adam Sjøgren) writes:
>> Christoph writes:
>>
>>> The bug occurs when I send an email message with an attachment that is a
>>> Python source file. Lines in that file that begin with "from" (or
>>> perhaps just the first such line), get capitalized, as if they were a
>>> SMTP header. For an example see the message [1] that I've just sent to
>>> a mailing list.
>>
>> Are you sure Gnus is the program mangling it? It is mangled in your
>> sent-folder?
>>
>> I just tried emailing myself an attachment and "from" was untouched -
>> both in the copy in the sent-folder and the one I received through my
>> local Postfix. (I tried both with disposition=attachment and inline,
>> same result).
> FWIW, I tried it, and the "from" was capitalized in both the received
> and sent version.
(Without having gone through your testing, and not knowing to which
detail you're familiar with the mail standards, so please excuse is this
is too basic:)
This can possibly boil down to the old e-mail standard for the "mailbox"
format - the old local storage format for incoming mail to a user
(typically in /var/(spool/)mail/liman (in my case). In those files,
messages are separated by a "From ...." line (no colon! not header!),
and in order to not mistake a text line starting with "From " for a
message separator, all "From " lines in a message had to be "quoted",
typically with a ">" leading to text like this:
text text text text text text text text text text
text text text text text text text text text text
>From this day on, I had to write everything using the
Comic Sans font, and I was very upset with my editor ...
Mail user agents typically convert this back to "From ..." when showing
a message, but as you undoubtedly realise, there is ample room for
mistakes here. One bug is to also "quote" lower case "from ..." to
">from ..." or even ">From ...", and/or when converting back make
another mistake ">from ..." --> "From ...".
One way around this could be to see whether you can append your Python
code as something else than "text/plain", and have it encoded in
Quoted-Printable (or even BASE64), which ought to eliminate the
problem. (Q-P encoding would lead to "From ..." --> "=70rom ...", if I
remember the standard correctly, which I probably don't ;-).
Then again, I could be completely off here. I usuaslly am ... ;-)
Cheers,
/Liman
#-------------------------------------------------------------------------
# Lars-Johan Liman, M.Sc. ! E-mail: liman@cafax.se
# Cafax AB ! HTTP : //www.cafax.se/
# Computer Consultants, Sweden ! Voice : +46 8 - 564 702 30
#-------------------------------------------------------------------------
_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english
next prev parent reply other threads:[~2017-11-14 8:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-13 15:44 Christoph Groth
2017-11-13 16:32 ` Adam Sjøgren
2017-11-14 0:57 ` Eric Abrahamsen
2017-11-14 7:38 ` Adam Sjøgren
2017-11-14 11:08 ` Christoph Groth
2017-11-14 16:00 ` Adam Sjøgren
2017-11-14 19:13 ` Christoph Groth
2017-11-14 19:19 ` Adam Sjøgren
2017-11-14 19:47 ` Eric Abrahamsen
2017-11-14 16:13 ` Eric Abrahamsen
2017-11-14 8:10 ` Lars-Johan Liman [this message]
2017-11-14 11:26 ` Christoph Groth
2017-11-15 19:56 ` Eric Abrahamsen
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=22bmk59t76.fsf@netnod.se \
--to=liman@cafax.se \
--cc=eric@ericabrahamsen.net \
--cc=info-gnus-english@gnu.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).