All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fwd: Re: Mails in incoming cause of "invalid from"]
@ 2006-09-15 22:20 Sven 'Darkman' Michels
  2006-09-16 17:18 ` Mads Martin Joergensen
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Sven 'Darkman' Michels @ 2006-09-15 22:20 UTC (permalink / raw)
  To: mlmmj

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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

sorry, i just replyed this to mads... so again to the list :)

Regards,
Sven
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFFCycQQoCguWUBzBwRAomTAKCprf70oerL90IIIY5s3i1S/4tYNQCfasgt
9Dq+cVbGmy17KTuQv/FcMpw=
=SIZo
-----END PGP SIGNATURE-----

[-- Attachment #2: Re: Mails in incoming cause of "invalid from" --]
[-- Type: message/rfc822, Size: 734 bytes --]

From: Sven 'Darkman' Michels <sven@darkman.de>
To: Mads Martin Joergensen <mmj@mmj.dk>
Subject: Re: Mails in incoming cause of "invalid from"
Date: Thu, 14 Sep 2006 20:42:04 +0200
Message-ID: <4509A27C.2010102@darkman.de>

Mads Martin Joergensen wrote:

> Can you put the mail from the discarded directory somewhere and show me?

They stay in incoming btw.

tar'ed:
http://www.c3f2m.de/broken-mails.tar

Regards,
Sven




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

* Re: [Fwd: Re: Mails in incoming cause of "invalid from"]
  2006-09-15 22:20 [Fwd: Re: Mails in incoming cause of "invalid from"] Sven 'Darkman' Michels
@ 2006-09-16 17:18 ` Mads Martin Joergensen
  2006-09-16 19:11 ` Mads Martin Joergensen
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Mads Martin Joergensen @ 2006-09-16 17:18 UTC (permalink / raw)
  To: mlmmj

* Sven 'Darkman' Michels <sven@darkman.de> [Sep 16. 2006 00:20]:
> They stay in incoming btw.
> 
> tar'ed:
> http://www.c3f2m.de/broken-mails.tar

Just tried to reproduce, and cannot. Can you reproduce with 1.2.12-RC2?

-- 
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
 and totally illogical, with just a little bit more effort?"
                                 -- A. P. J.

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

* Re: [Fwd: Re: Mails in incoming cause of "invalid from"]
  2006-09-15 22:20 [Fwd: Re: Mails in incoming cause of "invalid from"] Sven 'Darkman' Michels
  2006-09-16 17:18 ` Mads Martin Joergensen
@ 2006-09-16 19:11 ` Mads Martin Joergensen
  2006-09-16 20:22 ` Sven 'Darkman' Michels
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Mads Martin Joergensen @ 2006-09-16 19:11 UTC (permalink / raw)
  To: mlmmj

* Sven 'Darkman' Michels <sven@darkman.de> [Sep 16. 2006 19:58]:
> Mads Martin Joergensen wrote:
> > Just tried to reproduce, and cannot. Can you reproduce with 1.2.12-RC2?
> 
> Yep. I updated to rc2 and did:
> cat incoming/5dc2658876e70a91 | /usr/bin/mlmmj-recieve -L
> /var/spool/mlmmj/test/
> 
> With 1.2.11 i saw output on the shell, now i don't. But: i see
> logs from mlmmj-process.c which told me that the mail was
> discarded, and with RC2 the mail now is put into the discard
> dir, not left in incoming anymore.
> Log:
> Sep 16 19:55:58 pamphlet /usr/bin/mlmmj-process[7818]:
> mlmmj-process.c:641: Discarding
> /var/spool/mlmmj/test//incoming/2d1420e3163f055e due to invalid From::
> Bad file descriptor
> Sep 16 19:55:58 pamphlet /usr/bin/mlmmj-process[7818]:
> mlmmj-process.c:644: fromemails.emaillist[0] = my@benjamin-oette.de :
> Bad file descriptor
> Sep 16 19:55:58 pamphlet /usr/bin/mlmmj-process[7818]:
> mlmmj-process.c:644: fromemails.emaillist[1] = Adnan Vatandas
> [mailto:vatandas@rz.uni-frankfurt.de]  : Bad file descriptor

What I meant by reproducing is creating a mail in an editor doing this?
I cannot do that. So there must be something seriously fishy with this
one. Haven't had a chance to examine it yet.

And please keep the list involved, since I'm no longer maintainer of
mlmmj :-)

-- 
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
 and totally illogical, with just a little bit more effort?"
                                 -- A. P. J.

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

* Re: [Fwd: Re: Mails in incoming cause of "invalid from"]
  2006-09-15 22:20 [Fwd: Re: Mails in incoming cause of "invalid from"] Sven 'Darkman' Michels
  2006-09-16 17:18 ` Mads Martin Joergensen
  2006-09-16 19:11 ` Mads Martin Joergensen
@ 2006-09-16 20:22 ` Sven 'Darkman' Michels
  2006-09-17 15:07 ` Mads Martin Joergensen
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Sven 'Darkman' Michels @ 2006-09-16 20:22 UTC (permalink / raw)
  To: mlmmj

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Mads Martin Joergensen wrote:
> What I meant by reproducing is creating a mail in an editor doing this?
> I cannot do that. So there must be something seriously fishy with this
> one. Haven't had a chance to examine it yet.

it has become even more serious now: with 1.2.12-RC2 the same user
even can't subscribe to a new list... seems to be the same problem:
Sep 16 22:19:18 pamphlet /usr/bin/mlmmj-process[8010]:
listcontrol.c:180: Ignoring mail with invalid From: which was not a
bounce: Success

this was the reply to the confsub message... and the message has:
  -----Original Message-----
From: test+help@c3f2m.de [mailto:test+help@c3f2m.de]
Sent: Saturday, September 16, 2006 9:40 PM
To: my@benjamin-oette.de
Subject: [test] Confirm subscription to test@c3f2m.de

in it (notice the missing spaces for from etc!). Mailer is Outlook 11.
Is it possible that something "removes" leading spaces?

*help?* ;)

Sven
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFDF0dQoCguWUBzBwRAiyIAJ9uz46VyhBxUI/BHYI51m36H6IZLgCgo24S
B8BSByI+JkgOGKemb8dyg3s=r6re
-----END PGP SIGNATURE-----

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

* Re: [Fwd: Re: Mails in incoming cause of "invalid from"]
  2006-09-15 22:20 [Fwd: Re: Mails in incoming cause of "invalid from"] Sven 'Darkman' Michels
                   ` (2 preceding siblings ...)
  2006-09-16 20:22 ` Sven 'Darkman' Michels
@ 2006-09-17 15:07 ` Mads Martin Joergensen
  2006-09-17 18:35 ` Sven 'Darkman' Michels
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Mads Martin Joergensen @ 2006-09-17 15:07 UTC (permalink / raw)
  To: mlmmj

* Sven 'Darkman' Michels <sven@darkman.de> [Sep 16. 2006 22:23]:
> > What I meant by reproducing is creating a mail in an editor doing this?
> > I cannot do that. So there must be something seriously fishy with this
> > one. Haven't had a chance to examine it yet.
> 
> it has become even more serious now: with 1.2.12-RC2 the same user
> even can't subscribe to a new list... seems to be the same problem:
> Sep 16 22:19:18 pamphlet /usr/bin/mlmmj-process[8010]:
> listcontrol.c:180: Ignoring mail with invalid From: which was not a
> bounce: Success
> 
> this was the reply to the confsub message... and the message has:
>   -----Original Message-----
> From: test+help@c3f2m.de [mailto:test+help@c3f2m.de]
> Sent: Saturday, September 16, 2006 9:40 PM
> To: my@benjamin-oette.de
> Subject: [test] Confirm subscription to test@c3f2m.de
> 
> in it (notice the missing spaces for from etc!). Mailer is Outlook 11.
> Is it possible that something "removes" leading spaces?
> 
> *help?* ;)

Can you try it without this patch?

--- chomp.c
+++ chomp.c
@@ -38,7 +38,7 @@

        i = strlen(str) - 1;

-       while(str[i] = '\n') {
+       while(str[i] = '\n' || str[i] = '\r') {
                str[i] = 0;
                i--;
        }


-- 
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
 and totally illogical, with just a little bit more effort?"
                                 -- A. P. J.

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

* Re: [Fwd: Re: Mails in incoming cause of "invalid from"]
  2006-09-15 22:20 [Fwd: Re: Mails in incoming cause of "invalid from"] Sven 'Darkman' Michels
                   ` (3 preceding siblings ...)
  2006-09-17 15:07 ` Mads Martin Joergensen
@ 2006-09-17 18:35 ` Sven 'Darkman' Michels
  2006-09-17 20:08 ` Mads Martin Joergensen
  2006-09-18 19:18 ` Morten K. Poulsen
  6 siblings, 0 replies; 8+ messages in thread
From: Sven 'Darkman' Michels @ 2006-09-17 18:35 UTC (permalink / raw)
  To: mlmmj

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mads Martin Joergensen wrote:
> Can you try it without this patch?

doesn't work. It looks like the problem existed before
because i run 1.2.11 since beginning of the year and
haven't changed anything. The user with the problem
did subscribe before moving to mlmmj, so we maybe
never triggered that one. We played around with it
now. It looks like the "From: " in the body is the
normal behavior of outlook when replying to a mail.
Now we add a "space" in front of the "From:" in the
body and voila, it worked. So it seems the headerparser
or whatever is broken. It doesn't stop parsing the
mailheader after the "^$" line. May this from the new
email address parsing?

I also tested this with thunderbird: when i add some
"fake headers", it works with the following "code":
  bla fasel

  -----Original Message-----
From: test+help@c3f2m.de [mailto:test+help@c3f2m.de]
Sent: Saturday, September 16, 2006 9:40 PM
To: my@email.address
Subject: Confirm unsubscribe from test@c3f2m.de



(maybe you need to change the listname to match yours, didn't
test that)

can't check all versions back now because i'm a little bit
limited in time ;)

Regards,
Sven
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFFDZViQoCguWUBzBwRAqcOAKCdIXAbVcjghGzOZMCpCMy1ABvXmwCfcSgg
mdRvH8MsVecnsYf0BGC5tZs=qfcc
-----END PGP SIGNATURE-----

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

* Re: [Fwd: Re: Mails in incoming cause of "invalid from"]
  2006-09-15 22:20 [Fwd: Re: Mails in incoming cause of "invalid from"] Sven 'Darkman' Michels
                   ` (4 preceding siblings ...)
  2006-09-17 18:35 ` Sven 'Darkman' Michels
@ 2006-09-17 20:08 ` Mads Martin Joergensen
  2006-09-18 19:18 ` Morten K. Poulsen
  6 siblings, 0 replies; 8+ messages in thread
From: Mads Martin Joergensen @ 2006-09-17 20:08 UTC (permalink / raw)
  To: mlmmj

* Sven 'Darkman' Michels <sven@darkman.de> [Sep 17. 2006 20:35]:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Mads Martin Joergensen wrote:
> > Can you try it without this patch?
> 
> doesn't work. It looks like the problem existed before
> because i run 1.2.11 since beginning of the year and
> haven't changed anything. The user with the problem
> did subscribe before moving to mlmmj, so we maybe
> never triggered that one. We played around with it
> now. It looks like the "From: " in the body is the
> normal behavior of outlook when replying to a mail.
> Now we add a "space" in front of the "From:" in the
> body and voila, it worked. So it seems the headerparser
> or whatever is broken. It doesn't stop parsing the
> mailheader after the "^$" line. May this from the new
> email address parsing?

mlmmj should stop parsing headers when two newlines are met like the
spec claims.

That's why when I add a From: on the beginning of a line after a
newline, that From: isn't picked up.

Could you look in a hex editor or such, to see if there's something
making mlmmj believe there's more headers? Space or tab is enough to
make it continue.

> I also tested this with thunderbird: when i add some
> "fake headers", it works with the following "code":
>   bla fasel

Well, can you trigger it with Thunderbird, by writing From: somewhere
after a newline?

-- 
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
 and totally illogical, with just a little bit more effort?"
                                 -- A. P. J.

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

* Re: [Fwd: Re: Mails in incoming cause of "invalid from"]
  2006-09-15 22:20 [Fwd: Re: Mails in incoming cause of "invalid from"] Sven 'Darkman' Michels
                   ` (5 preceding siblings ...)
  2006-09-17 20:08 ` Mads Martin Joergensen
@ 2006-09-18 19:18 ` Morten K. Poulsen
  6 siblings, 0 replies; 8+ messages in thread
From: Morten K. Poulsen @ 2006-09-18 19:18 UTC (permalink / raw)
  To: mlmmj


Hi Sven,

On Sun, 17 Sep 2006 20:35:14 +0200, Sven 'Darkman' Michels <sven@darkman.de> wrote:
> Mads Martin Joergensen wrote:
>> Can you try it without this patch?
> 
> doesn't work. It looks like the problem existed before
> because i run 1.2.11 since beginning of the year and
> haven't changed anything.

Yes, it is an old (but unknown) issue. We have just never seen any problems with it.

The problem is this; If a header is followed by a line beginning with whitespace, that next line is to be "folded" back into the first one (RFC 2822 section 2.2.3). We did that. However, we did not follow RFC 2822 section 3.2.3, which states:

   However, where CFWS occurs in this standard, it MUST NOT be inserted
   in such a way that any line of a folded header field is made up
   entirely of WSP characters and nothing else.

So "Header: value1\n value2\n" was unfolded, but so was "\n body." So if a mail's body begin with a whitespace character, that first body line is folded onto the end-of-headers marker, and header parsing continues down through the mail body.

I have fixed the issue, and you can get the patch from

http://mlmmj.mmj.dk/~mortenp/patch-mlmmj-1.2.12_RC2-gethdrline.diff

Morten

-- 
Morten K. Poulsen <morten@afdelingp.dk>
http://www.afdelingp.dk/


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

end of thread, other threads:[~2006-09-18 19:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-15 22:20 [Fwd: Re: Mails in incoming cause of "invalid from"] Sven 'Darkman' Michels
2006-09-16 17:18 ` Mads Martin Joergensen
2006-09-16 19:11 ` Mads Martin Joergensen
2006-09-16 20:22 ` Sven 'Darkman' Michels
2006-09-17 15:07 ` Mads Martin Joergensen
2006-09-17 18:35 ` Sven 'Darkman' Michels
2006-09-17 20:08 ` Mads Martin Joergensen
2006-09-18 19:18 ` Morten K. Poulsen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.