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 44AFD6DE00D4 for ; Wed, 15 Nov 2017 13:08:12 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.054 X-Spam-Level: X-Spam-Status: No, score=0.054 tagged_above=-999 required=5 tests=[AWL=-0.635, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.211, SPF_PASS=-0.001] 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 ud_VmII49_NE for ; Wed, 15 Nov 2017 13:08:11 -0800 (PST) Received: from mail-wr0-f176.google.com (mail-wr0-f176.google.com [209.85.128.176]) by arlo.cworth.org (Postfix) with ESMTPS id 2CD3E6DE00C4 for ; Wed, 15 Nov 2017 13:08:11 -0800 (PST) Received: by mail-wr0-f176.google.com with SMTP id w95so2756231wrc.2 for ; Wed, 15 Nov 2017 13:08:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=6x7tbKTSwkz9bTnoNbbyEz+1+xN301MwXrcr17aHQuw=; b=pWSS69aVawyeRa8mbfGlGJ//vHzUSfUnOydUv5Ye4WI+aBP4uInHTrTYqICa976HmK GtyhH4XrRJO0zNjIeDMAdliPu1Ij51cLPhPGewcw3mElzNAGqcNAnsXTGg6wysXyi4sZ 7l4VUKU1d3HluE6EvbUnQgRpXU1b9o7Hyjbcvg6x5pTzP5WwyouXiUFZ5QN+6M6ef42b DXcDMS7FKMhG+YW46YAoeREf8m+c3gpEXGvMF41138dHuA/vKWqqlMs52/uL5xAduogA s6FZIEa6tJtnqU3mVSlyzFJu7z5mFlYZbQNIZKKCmYqx93VCw4CSJkJEDU+GzIqjG8ys EbkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=6x7tbKTSwkz9bTnoNbbyEz+1+xN301MwXrcr17aHQuw=; b=PkzJzKZ1QFE5WfTN6BRdxuclgQCFtRa5AkfhB7GOY56zrpaMzk5sahwqq2wUtS8WPl hGGEx1f0FFs5vYDVt41ZycDZ2VyjFGXs0QKa47OZCz4rZLGNgCQCqiUmhmmPn0aVVx2I Tn1MBjBrL3Fmp3VF0PcM5Ks3nPDrIWCrE4jg/ipWgx0/Sn05GBWHoNB+xdFWH2MECVxW tlMKf4KXCnblFbzxaxlvRCd8oI4SjOb46bgLkomZdMZi3ir9q2h+43CRSfRNCn0yBrTp dvezBFQJtf8UbNULkPkwLL9GatyIvf9i4VE+EDfz/qUMplMqxls9xZpZAyfxWK917pxw 6wKA== X-Gm-Message-State: AJaThX6tkj8Y+u21h2pzZg1Yqj0SEVII/hcZTKqaCZzGus6QyDVrz+l8 B9k5f+oaaLS5kPjfhKgObx4uvjn9 X-Google-Smtp-Source: AGs4zMb7huUlr0cVAXkvN786La7xRSSeTBuEetkvaXhiB63ypPl0QtjHCodb3Fl2RgHSBbCnMLDuJA== X-Received: by 10.223.172.245 with SMTP id o108mr15238670wrc.122.1510780088956; Wed, 15 Nov 2017 13:08:08 -0800 (PST) Received: from nix230 (port-92-196-61-232.dynamic.qsc.de. [92.196.61.232]) by smtp.gmail.com with ESMTPSA id k185sm5086600wma.28.2017.11.15.13.08.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 15 Nov 2017 13:08:07 -0800 (PST) From: Kai Harries To: David Bremner , notmuch@notmuchmail.org Subject: Re: bounce/forward not working due to CR at line end In-Reply-To: <877euraf0e.fsf@tethera.net> References: <87d14ri436.fsf@x230.kaiha.invalid> <877euraf0e.fsf@tethera.net> Date: Wed, 15 Nov 2017 22:08:06 +0100 Message-ID: <87fu9f45e1.fsf@x230.kaiha.invalid> MIME-Version: 1.0 Content-Type: text/plain 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: Wed, 15 Nov 2017 21:08:12 -0000 David Bremner writes: > During off-list discussion, Kai mentioned id:87a7zsm5ol.fsf@gmail.com as > a message that he cannot bounce (and also not forward?). For me this > forwards fine, but does not bounce because it has a corrupted Cc header, > and my MTA rejects it. That doesn't sound related to the original > problem report (nothing about line endings). Can you please evaluate the following on your system: (call-process "notmuch" nil t nil "show" "--format=raw" "id:87a7zsm5ol.fsf@gmail.com") If I do this on my system, then the text that is inserted into the buffer has ^M (CR) at the line endings. Is this expected? In contrast, if I evaluate the following: (require 'subr-x) (find-file (string-trim (shell-command-to-string "notmuch search --output=files id:87a7zsm5ol.fsf@gmail.com"))) then a buffer with the message is opened but with clean line endings (no ^M). > I guess we still need a good test case [1], but my best guess is that > something about Kai's settings. Kai, if you have the source unpacked > (even if not built), try > > $ ./devel/try-emacs-mua -Q > > and see if the problem is duplicated there. Yes, bounce is also not working in this mode. I only evaluated (setq message-send-mail-function (lambda () t)) (notmuch-hello) from the startup page (I have not loaded my ~/.emacs). But still the bounce fails with: Search failed: " " as message in the minibuffer. > [1]: I tried both the copy of that message I already have and the copy > Kai sent me, after changing it's message-id