Burckhard Schmidt
2014-Jan-15 09:17 UTC
[Dovecot] forwarded message is broken in 2.2.10 with pigeonhole-0.4.2
Hi, forwarding a message with sieve like redirect:copy "me at other.domain"; was working without any problem until dovecot-2.1.17, dovecots lmtp and dovecot-2.1-pigeonhole-0.3.5. Using dovecot-2.2.10 , dovecots lmtp and dovecot-2.2-pigeonhole-0.4.2 the structure of a forwarded message is broken. Content of a message is not displayed or an attachment (for instance pdf) can not be opened by (different) clients. Writing a html mail or plain one makes no different. I have compared two messages and the main different is a missing Content-Type: multipart/alternative; boundary="...." to encapsulate the body of the forwarded message. Was it lost in sieve? Here parts of a "well" forwarded message: Return-Path: ... ... Received: by mails.cms.hu-berlin.de (Postfix, from userid 29) id A78C738734; Tue, 14 Jan 2014 17:10:54 +0100 (CET) X-Sieve: Pigeonhole Sieve 0.3.5 X-Sieve-Redirected-From: schmidt at mails.cms.hu-berlin.de Delivered-To: <schmidt at mails.cms.hu-berlin.de> Received: from mails.cms.hu-berlin.de by suncom1 (Dovecot) with LMTP id p8HoIn9h1VKnTwAA9XuJ/g for <schmidt at mails.cms.hu-berlin.de>; Tue, 14 Jan 2014 17:10:54 +0100 ... Message-ID: <52D5618D.6050905 at gmail.com> Date: Tue, 14 Jan 2014 17:10:53 +0100 From: xy <xy at gmail.com> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: schmidt at hu-berlin.de Subject: from gmail with attachment Content-Type: multipart/mixed; boundary="------------070108020005050001040207" X-ENVELOPE-TO: <me at other.domain> This is a multi-part message in MIME format. --------------070108020005050001040207 Content-Type: multipart/alternative; boundary="------------090806050202050708030507" --------------090806050202050708030507 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit Hallo. text --------------090806050202050708030507 Content-Type: text/html; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15"> </head> <body text="#000000" bgcolor="#FFFFFF"> Hallo.<br> <br> <u>text</u><br> <br> P.<br> </body> </html> --------------090806050202050708030507-- --------------070108020005050001040207 Content-Type: application/pdf; name="auftrag-2014-eng-Hinweise.pdf" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="auftrag-2014-eng-Hinweise.pdf" JVBERi0xLjYNJeLjz9MNCjcyIDAgb2JqDTw ... ... c3RyZWFtDWVuZG9iag1zdGFydHhyZWYNCjExNg0KJSVFT0YNCg=--------------070108020005050001040207-- message end Now a broken message without "Content-Type: multipart/alternative;": Return-Path: ... ... Received: by mail5.cms.hu-berlin.de (Postfix, from userid 29) id 47C4C6D46E; Tue, 14 Jan 2014 17:43:54 +0100 (CET) X-Sieve: Pigeonhole Sieve 0.4.2 X-Sieve-Redirected-From: testuser at mail5.cms.hu-berlin.de Delivered-To: <testuser at mail5.cms.hu-berlin.de> Received: from mail5.cms.hu-berlin.de by suncom5 (Dovecot) with LMTP id mnY0AEpp1VLsaQAA0tuC1A for <testuser at mail4.cms.hu-berlin.de>; Tue, 14 Jan 2014 17:43:54 +0100 ... Message-ID: <52D56948.1090704 at gmail.com> Date: Tue, 14 Jan 2014 17:43:52 +0100 From: xy <xy at gmail.com> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: testuser at hu-berlin.de Subject: from gmail with attachment Content-Type: multipart/mixed; boundary="------------030506080302040201020604" X-ENVELOPE-TO: <me at other.domain> This is a multi-part message in MIME format. --------------030506080302040201020604 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit text. --------------030506080302040201020604 Content-Type: application/pdf; name="auftrag-2014-eng-Hinweise.pdf" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="auftrag-2014-eng-Hinweise.pdf" JVBERi0xLjYNJeLjz... ... c3RyZWFtDWVuZG9iag1zdGFydHhyZWYNCjExNg0KJSVFT0YNCg=--------------030506080302040201020604-- message end -- Mit freundlichen Gr??en --- Burckhard Schmidt Abteilung Systemsoftware und Kommunikation ZE Computer- und Medienservice der Humboldt-Universit?t zu Berlin Postanschrift: Unter den Linden 6, 10099 Berlin Standort: Rudower Chaussee 26; 12489 Berlin Tel.: +49-30-2093-70058 Fax: +49-30-2093-2959 Mail: bschmidt at cms.hu-berlin.de
Axel Luttgens
2014-Jan-15 12:15 UTC
[Dovecot] forwarded message is broken in 2.2.10 with pigeonhole-0.4.2
Le 15 janv. 2014 ? 10:17, Burckhard Schmidt a ?crit :> Hi, > forwarding a message with sieve like > > redirect:copy "me at other.domain"; > > was working without any problem until dovecot-2.1.17, dovecots lmtp and dovecot-2.1-pigeonhole-0.3.5. > > Using dovecot-2.2.10 , dovecots lmtp and dovecot-2.2-pigeonhole-0.4.2 the structure of a forwarded message is broken. Content of a message is not displayed or an attachment (for instance pdf) can not be opened by (different) clients. Writing a html mail or plain one makes no different. > > I have compared two messages and the main different is a missing > > Content-Type: multipart/alternative; > boundary="...." > > to encapsulate the body of the forwarded message. Was it lost in sieve?Hello Burckhard, Just to be sure. Above excerpt and your two sample messages invariably show "boundary=" items starting at the beginning of a new line. Is this really the case? Axel
Burckhard Schmidt
2014-Jan-16 09:31 UTC
[Dovecot] forwarded message is broken in 2.2.10 with pigeonhole-0.4.2
Am 15.01.2014 10:17, schrieb Burckhard Schmidt:> Hi, > forwarding a message with sieve like > > redirect:copy "me at other.domain"; > > was working without any problem until dovecot-2.1.17, dovecots lmtp and > dovecot-2.1-pigeonhole-0.3.5. > > Using dovecot-2.2.10 , dovecots lmtp and dovecot-2.2-pigeonhole-0.4.2 > the structure of a forwarded message is broken. Content of a message is > not displayed or an attachment (for instance pdf) can not be opened by > (different) clients. Writing a html mail or plain one makes no different. >I did another test with dovecot-lda instead of lmtp: dovecot 2.2.10, dovcot-lda and pigeonhole-0.4.2 --> Message is forwarded and fully readable. dovecot 2.2.10, lmtp and pigeonhole-0.4.2 --> forwarded message is broken If I compare both messages I see trailing blanks like ... Subject: anhang pdf Content-Type: multipart/mixed; without trailing blank ... X-ENVELOPE-TO: <me at other.domain> blank line here --> and now every line until the end of the message has one trailing blank, starting with: This is a multi-part message in MIME format. --------------060501050100070603080402 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit test text --------------060501050100070603080402 Content-Type: application/pdf; name="oxford-google-docs.pdf" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="oxford-google-docs.pdf" JVBERi0xLjQKJeHp69MKMiAwIG9iago8PC9UeXBlIC9DYXRhbG9nCi9QYWdlcyAxIDAgUgo+ ... dGFydHhyZWYKNTMyMzcKJSVFT0Y--------------060501050100070603080402-- end of message This should be the reason I think. Burckhard -- Mit freundlichen Gr??en --- Burckhard Schmidt Abteilung Systemsoftware und Kommunikation ZE Computer- und Medienservice der Humboldt-Universit?t zu Berlin Postanschrift: Unter den Linden 6, 10099 Berlin Standort: Rudower Chaussee 26; 12489 Berlin Tel.: +49-30-2093-70058 Fax: +49-30-2093-2959 Mail: bschmidt at cms.hu-berlin.de