Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Gnus capitalizes non-header "from"
@ 2017-11-13 15:44 Christoph Groth
  2017-11-13 16:32 ` Adam Sjøgren
  0 siblings, 1 reply; 13+ messages in thread
From: Christoph Groth @ 2017-11-13 15:44 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 631 bytes --]

Hi,

I regularly encounter a bug in Gnus (or message) that I'd love to fix.
Given my very rudimentary experience with Elisp, I'd very much
appreciate some help on how to get started.

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.

How would one set out to debug this?

Thanks,
Christoph

[1] https://mailman-mail5.webfaction.com/pipermail/kwant-discuss/2017-November/001511.html

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Gnus capitalizes non-header "from"
  2017-11-13 15:44 Gnus capitalizes non-header "from" Christoph Groth
@ 2017-11-13 16:32 ` Adam Sjøgren
  2017-11-14  0:57   ` Eric Abrahamsen
  0 siblings, 1 reply; 13+ messages in thread
From: Adam Sjøgren @ 2017-11-13 16:32 UTC (permalink / raw)
  To: info-gnus-english

[-- Attachment #1: Type: text/plain, Size: 968 bytes --]

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).

Let me try attaching it here, and we'll see what happens (maybe my email
gets rejected :-))


  Best regards,

    Adam

-- 
 "Efter 90?"                                                  Adam Sjøgren
 "89"                                                    asjo@koldfront.dk
 "Efter 89 blev det faste pladser. Kopper med navn på."


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: test.py --]
[-- Type: text/x-python, Size: 108 bytes --]

import kwant, numpy
from math import cos, sin
import matplotlib.pyplot as plt

lat = kwant.lattice.square()



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Gnus capitalizes non-header "from"
  2017-11-13 16:32 ` Adam Sjøgren
@ 2017-11-14  0:57   ` Eric Abrahamsen
  2017-11-14  7:38     ` Adam Sjøgren
                       ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Eric Abrahamsen @ 2017-11-14  0:57 UTC (permalink / raw)
  To: info-gnus-english

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.


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Gnus capitalizes non-header "from"
  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:13       ` Eric Abrahamsen
  2017-11-14  8:10     ` Lars-Johan Liman
  2017-11-15 19:56     ` Eric Abrahamsen
  2 siblings, 2 replies; 13+ messages in thread
From: Adam Sjøgren @ 2017-11-14  7:38 UTC (permalink / raw)
  To: info-gnus-english

Eric writes:

>> 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.

Hm, interesting!

Difference in versions? In storage type?

(GNU Emacs 27.0.50 built from a7b7b85567f766ff510a5eaaaf32dbbbec15efd0,
nnml).

I would guess that storage formats that have more than one email per
file need to "escape" lines starting with "From " (as that is the
separator), and maybe something then happens to lines starting with
"from " as well?

If you view the raw article, what does the line look like then?

                                 o o o

Interestingly my attachment here was unmangled! What happens if you do a
similar attachment to your next follow-up here?


  Best regards,

    Adam

-- 
 "Repetition is the death of magic."                          Adam Sjøgren
                                                         asjo@koldfront.dk


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Gnus capitalizes non-header "from"
  2017-11-14  0:57   ` Eric Abrahamsen
  2017-11-14  7:38     ` Adam Sjøgren
@ 2017-11-14  8:10     ` Lars-Johan Liman
  2017-11-14 11:26       ` Christoph Groth
  2017-11-15 19:56     ` Eric Abrahamsen
  2 siblings, 1 reply; 13+ messages in thread
From: Lars-Johan Liman @ 2017-11-14  8:10 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: info-gnus-english

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Gnus capitalizes non-header "from"
  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 16:13       ` Eric Abrahamsen
  1 sibling, 1 reply; 13+ messages in thread
From: Christoph Groth @ 2017-11-14 11:08 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1.1: Type: text/plain, Size: 1996 bytes --]

Adam Sjøgren wrote:
> Eric writes:
>
> >> 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.
>
> Hm, interesting!

Thanks for your interest!

I did some more systematic tests.  The mangling is visible in the
locally saved version of the message, so it's definitely caused locally.
Moreover, the mangling seems to simply affect all the lines that begin
with a lower-case "from ", also in the main body.

The problem does *not* occur if I do not sign the message!  It *does*
occur when the message is signed either with an OpenPGP or with an
S/MIME key.

> Difference in versions? In storage type?
>
> (GNU Emacs 27.0.50 built from
> a7b7b85567f766ff510a5eaaaf32dbbbec15efd0, nnml).

GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of
2017-09-12 on hullmann, modified by Debian

It's not a new problem, I remember seeing it for the first time years
ago.

> I would guess that storage formats that have more than one email per
> file need to "escape" lines starting with "From " (as that is the
> separator), and maybe something then happens to lines starting with
> "from " as well?

It seems indeed have something to do with it, and not with SMTP headers.

> If you view the raw article, what does the line look like then?

I attach the pristine mbox file of a sent message (saved directly from
Gnus with 'o').  I only removed the host parts of email addresses.  The
MD5 sum of the attached file is ec7588fe8704b1d48aba09976894bc2e.

I am signing this mail, so let's see what will happen:
From this time forward, you will service us.

Christoph

[-- Attachment #1.1.2: mbox --]
[-- Type: application/octet-stream, Size: 5399 bytes --]

From nobody Tue Nov 14 11:52:33 2017
From: Christoph Groth <christoph.groth@...>
To: cwg@...
Subject: test5
X-Draft-From: ("nnimap+cea:2017")
Date: Tue, 14 Nov 2017 11:50:05 +0100
Message-ID: <87tvxxi17m.fsf@cea.fr>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
	micalg=sha256; protocol="application/pkcs7-signature"

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

heyho

From=20dusk till dawn.

From=20Russia with love.

--=-=-=
Content-Type: application/pkc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lowKAYJKoZIhvcNAQkPMRswGTALBglghkgBZQME
AQIwCgYIKoZIhvcNAwcwLwYJKoZIhvcNAQkEMSIEIO05rbEvPdLLmuDPjqfL1PKn6wTazc45Rtfr
7uSwxZHUMA0GCSqGSIb3DQEBAQUABIIBAHS5H6AKBs3NjaLQ7RcEF6C7ItFNTkQQAKZdq5HNu99w
3xSe+WKgHrNSG9qoXmTHtxzeo2PqHB/M8MO1GEfU/eOYsfrfh0eNIDqTwpZfULuat08J5ZrwycLK
t6RngTHsqElhLdWWfD4FNTACBpWhTTyFFdcSGoVdxkr//HnIhptxapUjaKy42TV5KpMWys3pPj53
pudGFNLDMUsT8wa3rPDgBaBdyI2Vod5JAerLOyENvVQnM65WNNJj9xCW9pRguAoZhpXh72QadVWL
ANZeiHlCLryiehDG3dGp9UBWivaI3bVuetQkJKmO9wj28YcNlLjagL1JNpjGw1ELAH4iwxcAAAAA
AAA=
--=-=-=--


[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Gnus capitalizes non-header "from"
  2017-11-14  8:10     ` Lars-Johan Liman
@ 2017-11-14 11:26       ` Christoph Groth
  0 siblings, 0 replies; 13+ messages in thread
From: Christoph Groth @ 2017-11-14 11:26 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 1029 bytes --]

Lars-Johan Liman wrote:

> 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:

Yest that must be indeed the source of the problem, thanks for your
explaination.

> 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 ;-).

The body of the mbox file I attached to my reply to Adam is encoded in
quoted-printable.

Christoph

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Gnus capitalizes non-header "from"
  2017-11-14 11:08       ` Christoph Groth
@ 2017-11-14 16:00         ` Adam Sjøgren
  2017-11-14 19:13           ` Christoph Groth
  0 siblings, 1 reply; 13+ messages in thread
From: Adam Sjøgren @ 2017-11-14 16:00 UTC (permalink / raw)
  To: info-gnus-english

Christoph writes:

> I did some more systematic tests.  The mangling is visible in the
> locally saved version of the message, so it's definitely caused locally.

What format do you use for your sent messages folder? nnfolder?

> The problem does *not* occur if I do not sign the message!  It *does*
> occur when the message is signed either with an OpenPGP or with an
> S/MIME key.

Aha. Maybe that is to avoid the lines starting with "[Ff]rom " being
(potentially) mangled after signing, leaving the signature invalid.

> It's not a new problem, I remember seeing it for the first time years
> ago.

Yeah, mbox has used "From " as the separator for decades.


  Best regards,

    Adam

-- 
 "It's not denial. I'm just very selective about the          Adam Sjøgren
  reality I accept."                                     asjo@koldfront.dk


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Gnus capitalizes non-header "from"
  2017-11-14  7:38     ` Adam Sjøgren
  2017-11-14 11:08       ` Christoph Groth
@ 2017-11-14 16:13       ` Eric Abrahamsen
  1 sibling, 0 replies; 13+ messages in thread
From: Eric Abrahamsen @ 2017-11-14 16:13 UTC (permalink / raw)
  To: info-gnus-english

asjo@koldfront.dk (Adam Sjøgren) writes:

> Eric writes:
>
>>> 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.
>
> Hm, interesting!
>
> Difference in versions? In storage type?
>
> (GNU Emacs 27.0.50 built from a7b7b85567f766ff510a5eaaaf32dbbbec15efd0,
> nnml).

GNU Emacs 27.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.22.25)
of 2017-11-09

And dovecot IMAP, unfortunately, which rules out old storage formats.

Unless I'm doing something else wrong -- I'll have time to check this
out in detail tonight.


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Gnus capitalizes non-header "from"
  2017-11-14 16:00         ` Adam Sjøgren
@ 2017-11-14 19:13           ` Christoph Groth
  2017-11-14 19:19             ` Adam Sjøgren
  0 siblings, 1 reply; 13+ messages in thread
From: Christoph Groth @ 2017-11-14 19:13 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 883 bytes --]

Adam Sjøgren wrote:
>
> > I did some more systematic tests.  The mangling is visible in the
> > locally saved version of the message, so it's definitely caused
> > locally.
>
> What format do you use for your sent messages folder? nnfolder?

My setup is similar to Eric's.  I use nnimap and the backend is a local
dovecot that is synchronized (but that doesn't matter here) using isync.

> > The problem does *not* occur if I do not sign the message!  It
> > *does* occur when the message is signed either with an OpenPGP or
> > with an S/MIME key.
>
> Aha. Maybe that is to avoid the lines starting with "[Ff]rom " being
> (potentially) mangled after signing, leaving the signature invalid.

Maybe... In order to debug this, it would be useful to examine the
various steps that lie between pressing C-c C-c and storing the
message.  Is "Edebug" the way to go?

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Gnus capitalizes non-header "from"
  2017-11-14 19:13           ` Christoph Groth
@ 2017-11-14 19:19             ` Adam Sjøgren
  2017-11-14 19:47               ` Eric Abrahamsen
  0 siblings, 1 reply; 13+ messages in thread
From: Adam Sjøgren @ 2017-11-14 19:19 UTC (permalink / raw)
  To: info-gnus-english

Christoph writes:

> Maybe... In order to debug this, it would be useful to examine the
> various steps that lie between pressing C-c C-c and storing the
> message.  Is "Edebug" the way to go?

edebug-defun is my go-to (but I am no expert in the topic :-))


  Best regards,

    Adam

-- 
 "Tom has put all my music into this rectangle."              Adam Sjøgren
                                                         asjo@koldfront.dk


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Gnus capitalizes non-header "from"
  2017-11-14 19:19             ` Adam Sjøgren
@ 2017-11-14 19:47               ` Eric Abrahamsen
  0 siblings, 0 replies; 13+ messages in thread
From: Eric Abrahamsen @ 2017-11-14 19:47 UTC (permalink / raw)
  To: info-gnus-english

asjo@koldfront.dk (Adam Sjøgren) writes:

> Christoph writes:
>
>> Maybe... In order to debug this, it would be useful to examine the
>> various steps that lie between pressing C-c C-c and storing the
>> message.  Is "Edebug" the way to go?
>
> edebug-defun is my go-to (but I am no expert in the topic :-))

What I would do is first find the chain of function calls that sends a
message, and then pick a likely one for edebugging. I started looking at
this yesterday: I thought `message-fix-before-sending' sounded a likely
culprit, but it wasn't to blame. That's as far as I got.


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: Gnus capitalizes non-header "from"
  2017-11-14  0:57   ` Eric Abrahamsen
  2017-11-14  7:38     ` Adam Sjøgren
  2017-11-14  8:10     ` Lars-Johan Liman
@ 2017-11-15 19:56     ` Eric Abrahamsen
  2 siblings, 0 replies; 13+ messages in thread
From: Eric Abrahamsen @ 2017-11-15 19:56 UTC (permalink / raw)
  To: info-gnus-english

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> 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.

Bah, now I can't reproduce it. I have no idea what's going on...


_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-11-15 19:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-13 15:44 Gnus capitalizes non-header "from" 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
2017-11-14 11:26       ` Christoph Groth
2017-11-15 19:56     ` Eric Abrahamsen

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).