Re: [exim] Additional line in body when submitting?

Góra strony
Delete this message
Reply to this message
Autor: Kamil Jońca
Data:  
Dla: exim-users
Temat: Re: [exim] Additional line in body when submitting?
Evgeniy Berdnikov via Exim-users <exim-users@???> writes:

> On Wed, Jun 01, 2022 at 04:15:18PM +0200, Kamil Jońca via Exim-users wrote:
>> %dpkg -S /usr/bin/bsd-mailx
>> bsd-mailx: /usr/bin/bsd-mailx
>
> Strace of Debian bsd-mailx (my version is 8.1.2-0.20180807cvs-2)
> shows that it does not append newline writing to MTA child process,
> it only converts "\n" to "\r\n".

Yes. I believe I was wrong, when I blame submitting stage.

>
>> Created wrapper script:
>> --8<---------------cut here---------------start------------->8---
>> %cat /etc/exim4/lda     
>> #!/bin/sh
>> TS=$(date +%s)
>> cat - > /tmp/exim-$TS
>> cat  /tmp/exim-$TS | /usr/lib/dovecot/dovecot-lda "$@"
>> --8<---------------cut here---------------end--------------->8---
> ...
>> Message saved into maildir has no such additional line at end.

>
> Post here output of "hd /tmp/exim-... | tail", pls. And similar hexdump
> for relevant file from Dovecot spool after delivery.
> --
> Eugene Berdnikov


hd /tmp/exim-1654092090                                
00000000  46 72 6f 6d 20 70 6f 73  74 6d 61 73 74 65 72 40  |From postmaster@|
00000010  61 6c 66 61 2e 6b 6a 6f  6e 63 61 20 57 65 64 20  |alfa.kjonca Wed |
00000020  4a 75 6e 20 30 31 20 31  36 3a 30 31 3a 33 30 20  |Jun 01 16:01:30 |
00000030  32 30 32 32 0a 52 65 74  75 72 6e 2d 70 61 74 68  |2022.Return-path|
00000040  3a 20 3c 70 6f 73 74 6d  61 73 74 65 72 40 61 6c  |: <postmaster@al|
00000050  66 61 2e 6b 6a 6f 6e 63  61 3e 0a 45 6e 76 65 6c  |fa.kjonca>.Envel|
00000060  6f 70 65 2d 74 6f 3a 20  72 6f 6f 74 40 61 6c 66  |ope-to: root@alf|
00000070  61 2e 6b 6a 6f 6e 63 61  0a 44 65 6c 69 76 65 72  |a.kjonca.Deliver|
00000080  79 2d 64 61 74 65 3a 20  57 65 64 2c 20 30 31 20  |y-date: Wed, 01 |
00000090  4a 75 6e 20 32 30 32 32  20 31 36 3a 30 31 3a 33  |Jun 2022 16:01:3|
000000a0  30 20 2b 30 32 30 30 0a  52 65 63 65 69 76 65 64  |0 +0200.Received|
000000b0  3a 20 66 72 6f 6d 20 6b  6a 6f 6e 63 61 20 62 79  |: from kjonca by|
000000c0  20 61 6c 66 61 2e 6b 6a  6f 6e 63 61 20 77 69 74  | alfa.kjonca wit|
000000d0  68 20 6c 6f 63 61 6c 20  28 45 78 69 6d 20 34 2e  |h local (Exim 4.|
000000e0  39 35 29 0a 09 28 65 6e  76 65 6c 6f 70 65 2d 66  |95)..(envelope-f|
000000f0  72 6f 6d 20 3c 6b 6a 6f  6e 63 61 40 61 6c 66 61  |rom <kjonca@alfa|
00000100  2e 6b 6a 6f 6e 63 61 3e  29 0a 09 69 64 20 31 6e  |.kjonca>)..id 1n|
00000110  77 4f 75 67 2d 30 30 34  66 4f 77 2d 4b 69 0a 09  |wOug-004fOw-Ki..|
00000120  66 6f 72 20 72 6f 6f 74  40 61 6c 66 61 2e 6b 6a  |for root@???|
00000130  6f 6e 63 61 3b 0a 09 57  65 64 2c 20 30 31 20 4a  |onca;..Wed, 01 J|
00000140  75 6e 20 32 30 32 32 20  31 36 3a 30 31 3a 33 30  |un 2022 16:01:30|
00000150  20 2b 30 32 30 30 0a 54  6f 3a 20 72 6f 6f 74 40  | +0200.To: root@|
00000160  61 6c 66 61 2e 6b 6a 6f  6e 63 61 0a 4d 49 4d 45  |alfa.kjonca.MIME|
00000170  2d 56 65 72 73 69 6f 6e  3a 20 31 2e 30 0a 43 6f  |-Version: 1.0.Co|
00000180  6e 74 65 6e 74 2d 54 79  70 65 3a 20 74 65 78 74  |ntent-Type: text|
00000190  2f 70 6c 61 69 6e 3b 20  63 68 61 72 73 65 74 3d  |/plain; charset=|
000001a0  22 55 54 46 2d 38 22 0a  43 6f 6e 74 65 6e 74 2d  |"UTF-8".Content-|
000001b0  54 72 61 6e 73 66 65 72  2d 45 6e 63 6f 64 69 6e  |Transfer-Encodin|
000001c0  67 3a 20 38 62 69 74 0a  4d 65 73 73 61 67 65 2d  |g: 8bit.Message-|
000001d0  49 64 3a 20 3c 45 31 6e  77 4f 75 67 2d 30 30 34  |Id: <E1nwOug-004|
000001e0  66 4f 77 2d 4b 69 40 61  6c 66 61 2e 6b 6a 6f 6e  |fOw-Ki@???|
000001f0  63 61 3e 0a 46 72 6f 6d  3a 20 4b 61 6d 69 6c 20  |ca>.From: Kamil |
00000200  4a 6f 6e 63 61 20 3c 6b  6a 6f 6e 63 61 40 61 6c  |Jonca <kjonca@al|
00000210  66 61 2e 6b 6a 6f 6e 63  61 3e 0a 44 61 74 65 3a  |fa.kjonca>.Date:|
00000220  20 57 65 64 2c 20 30 31  20 4a 75 6e 20 32 30 32  | Wed, 01 Jun 202|
00000230  32 20 31 36 3a 30 31 3a  33 30 20 2b 30 32 30 30  |2 16:01:30 +0200|
00000240  0a 0a 62 6c 61 0a 0a                              |..bla..|



hd ~/Maildir/new/1654092174.M969837P1180197.alfa.kjonca  
00000000  52 65 74 75 72 6e 2d 70  61 74 68 3a 20 3c 6b 6a  |Return-path: <kj|
00000010  6f 6e 63 61 40 61 6c 66  61 2e 6b 6a 6f 6e 63 61  |onca@???|
00000020  3e 0a 45 6e 76 65 6c 6f  70 65 2d 74 6f 3a 20 72  |>.Envelope-to: r|
00000030  6f 6f 74 40 61 6c 66 61  2e 6b 6a 6f 6e 63 61 0a  |oot@???.|
00000040  44 65 6c 69 76 65 72 79  2d 64 61 74 65 3a 20 57  |Delivery-date: W|
00000050  65 64 2c 20 30 31 20 4a  75 6e 20 32 30 32 32 20  |ed, 01 Jun 2022 |
00000060  31 36 3a 30 32 3a 35 34  20 2b 30 32 30 30 0a 52  |16:02:54 +0200.R|
00000070  65 63 65 69 76 65 64 3a  20 66 72 6f 6d 20 6b 6a  |eceived: from kj|
00000080  6f 6e 63 61 20 62 79 20  61 6c 66 61 2e 6b 6a 6f  |onca by alfa.kjo|
00000090  6e 63 61 20 77 69 74 68  20 6c 6f 63 61 6c 20 28  |nca with local (|
000000a0  45 78 69 6d 20 34 2e 39  35 29 0a 09 28 65 6e 76  |Exim 4.95)..(env|
000000b0  65 6c 6f 70 65 2d 66 72  6f 6d 20 3c 6b 6a 6f 6e  |elope-from <kjon|
000000c0  63 61 40 61 6c 66 61 2e  6b 6a 6f 6e 63 61 3e 29  |ca@???>)|
000000d0  0a 09 69 64 20 31 6e 77  4f 77 32 2d 30 30 34 78  |..id 1nwOw2-004x|
000000e0  31 31 2d 53 50 0a 09 66  6f 72 20 72 6f 6f 74 40  |11-SP..for root@|
000000f0  61 6c 66 61 2e 6b 6a 6f  6e 63 61 3b 0a 09 57 65  |alfa.kjonca;..We|
00000100  64 2c 20 30 31 20 4a 75  6e 20 32 30 32 32 20 31  |d, 01 Jun 2022 1|
00000110  36 3a 30 32 3a 35 34 20  2b 30 32 30 30 0a 54 6f  |6:02:54 +0200.To|
00000120  3a 20 72 6f 6f 74 40 61  6c 66 61 2e 6b 6a 6f 6e  |: root@???|
00000130  63 61 0a 4d 49 4d 45 2d  56 65 72 73 69 6f 6e 3a  |ca.MIME-Version:|
00000140  20 31 2e 30 0a 43 6f 6e  74 65 6e 74 2d 54 79 70  | 1.0.Content-Typ|
00000150  65 3a 20 74 65 78 74 2f  70 6c 61 69 6e 3b 20 63  |e: text/plain; c|
00000160  68 61 72 73 65 74 3d 22  55 54 46 2d 38 22 0a 43  |harset="UTF-8".C|
00000170  6f 6e 74 65 6e 74 2d 54  72 61 6e 73 66 65 72 2d  |ontent-Transfer-|
00000180  45 6e 63 6f 64 69 6e 67  3a 20 38 62 69 74 0a 4d  |Encoding: 8bit.M|
00000190  65 73 73 61 67 65 2d 49  64 3a 20 3c 45 31 6e 77  |essage-Id: <E1nw|
000001a0  4f 77 32 2d 30 30 34 78  31 31 2d 53 50 40 61 6c  |Ow2-004x11-SP@al|
000001b0  66 61 2e 6b 6a 6f 6e 63  61 3e 0a 46 72 6f 6d 3a  |fa.kjonca>.From:|
000001c0  20 4b 61 6d 69 6c 20 4a  6f 6e 63 61 20 3c 6b 6a  | Kamil Jonca <kj|
000001d0  6f 6e 63 61 40 61 6c 66  61 2e 6b 6a 6f 6e 63 61  |onca@???|
000001e0  3e 0a 44 61 74 65 3a 20  57 65 64 2c 20 30 31 20  |>.Date: Wed, 01 |
000001f0  4a 75 6e 20 32 30 32 32  20 31 36 3a 30 32 3a 35  |Jun 2022 16:02:5|
00000200  34 20 2b 30 32 30 30 0a  0a 62 6c 61 0a           |4 +0200..bla.|
0000020d



--
http://stopstopnop.pl/stop_stopnop.pl_o_nas.html