From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 522C96DE0297 for ; Sun, 19 Nov 2017 04:25:28 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.131 X-Spam-Level: X-Spam-Status: No, score=-0.131 tagged_above=-999 required=5 tests=[AWL=0.080, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.211] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SceqN77kJ0cB for ; Sun, 19 Nov 2017 04:25:27 -0800 (PST) Received: from mail-lf0-f45.google.com (mail-lf0-f45.google.com [209.85.215.45]) by arlo.cworth.org (Postfix) with ESMTPS id 1F92D6DE024A for ; Sun, 19 Nov 2017 04:25:27 -0800 (PST) Received: by mail-lf0-f45.google.com with SMTP id e143so7145378lfg.12 for ; Sun, 19 Nov 2017 04:25:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaute-vetsj-com.20150623.gappssmtp.com; s=20150623; h=date:from:subject:to:cc:references:in-reply-to:mime-version :user-agent:message-id:content-transfer-encoding; bh=kNO01aYZsoWi3eoeKVEXFKjQkkfbRzpWcvPhniRfdaQ=; b=TI/Zy1A9DNRv19j+D5BXMesfuhRfhHyq1Xhrf/E9SlIRfaP6B16uDKq0yB+Sk8bLI7 jRopHYTaX8Z5EzGCTrLxCGzxvqvGck8qf1JO7AK3mbXxlWMIytKlZTNBNO9ejLbwo8VP SfhqVPGs5m0dwzvyxMFF9IQvZG4IdR/1ut7qEgliJIMgAZBLj8FVaG8NiLmfP9WqQXwN jJwVTKj2mrSHVAQN9CbPSXyX3r2hcEepRVw2p1A+hSETrJl4A99ebfTKxKioqGddwskH T/2bX85//wQEtR3P26i4i9K82YTeTRmOyb2QDrhBeKAl4yeZ0ynmy0x/6zcDy+Bb3+pk stJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to :mime-version:user-agent:message-id:content-transfer-encoding; bh=kNO01aYZsoWi3eoeKVEXFKjQkkfbRzpWcvPhniRfdaQ=; b=o05qWueYO54nwZ/EiRfINPlj7qpUBrMx7rrREOdAAizRd9NgONHj83rJft2fHtvNgi cyn2D7D7Yho6L7nu8eTYAKDLyFRC7JPvaaPB2gsmGdEswqQIzAlTiEU0VhVPfd5iUwbb DFMpqoOdENhPq6wMkQXgYZ9B3/0rJHXWy6koorbnLcU9inVYyYxKRdyOowK+KC+A8A9q V90ErBXD3I5fw43HVN6o1Y4WFldI9OQm9sSS2ZkI1EdDrRDyrwdYzPSS01Jn0DluIKgT FeN63m5+VpI/2CBZZw/bFgL/lMXPTI2cFiDlnVBzOvGWEoaP+85jMHIjbo9AiRYXu4Ic A7BQ== X-Gm-Message-State: AJaThX7neGlzc/uU2v/f/yQLmQObaeqy6ZpbAEAf+vPZofIaLuVX2D4B bGw0aAJNowlXZKBSWCiALile8A== X-Google-Smtp-Source: AGs4zMa0UUAfmiQ2hwyc+bmhBg2ei9i1CgSIpTUOYajYM7tLY8fQMF55Snpj7nYW+zGvKJ+GomxsLA== X-Received: by 10.25.44.136 with SMTP id s130mr365188lfs.147.1511094325526; Sun, 19 Nov 2017 04:25:25 -0800 (PST) Received: from localhost (cm-84.215.128.252.getinternet.no. [84.215.128.252]) by smtp.gmail.com with ESMTPSA id r80sm1485518lfe.1.2017.11.19.04.25.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 19 Nov 2017 04:25:24 -0800 (PST) Date: Sun, 19 Nov 2017 13:25:20 +0100 From: Gaute Hope Subject: Re: bounce/forward not working due to CR at line end To: David Bremner , Kai Harries , notmuch@notmuchmail.org Cc: Tomi Ollila References: <87d14ri436.fsf@x230.kaiha.invalid> <877euraf0e.fsf@tethera.net> <87fu9f45e1.fsf@x230.kaiha.invalid> <877eur5i33.fsf@tesseract.cs.unb.ca> <87shdeovhb.fsf@x230.kaiha.invalid> <877eup90f0.fsf@tethera.net> <87d14g22l4.fsf@x230.kaiha.invalid> In-Reply-To: <87d14g22l4.fsf@x230.kaiha.invalid> MIME-Version: 1.0 User-Agent: astroid/v0.10.2-26-g61e8fdce =?us-ascii?Q?=28https=3A=2F=2Fgithub=2Ecom=2Fastroidmail=2Fastroid?= =?us-ascii?Q?=29?= Message-Id: <1511093997.jpdc65c7y5.astroid@strange.none> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Nov 2017 12:25:28 -0000 Kai Harries writes on november 17, 2017 19:16: > I am thinking about filing a ticket against gmailier because storing the > emails with CRLF on a *nix is at least surprising. Hi,=20 this was actually fixed in commit 71ce2b2 where line-endings are converted to \n if that is the OS line seperator. I am not modifying the file in any other way, but I think the DOS bomb should hopefully be set correctly already if on Linux [0]. https://github.com/gauteh/gmailieer/blob/master/lieer/local.py#L326 GMail API supplies the content of the message base64 encoded (the whole=20 message not just any MIME parts) with CRLF line endings. Anyway, I realized I never made a release with that commit (I just did)=20 so unless you were running 'master' you would have been missing out on=20 that. Note that messages that were already downloaded before this change wi= ll not be converted by gmailieer, but you can do that youself. All gmailiee= r cares about is the file names. [0] https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8 - gaute =