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 B9B2E6DE0931 for ; Thu, 9 Nov 2017 12:44:48 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -1.332 X-Spam-Level: X-Spam-Status: No, score=-1.332 tagged_above=-999 required=5 tests=[AWL=-1.212, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 upGd_Yueu7oV for ; Thu, 9 Nov 2017 12:44:48 -0800 (PST) Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by arlo.cworth.org (Postfix) with ESMTPS id C6EB26DE035A for ; Thu, 9 Nov 2017 12:44:47 -0800 (PST) Received: by mail-wm0-f54.google.com with SMTP id p75so19826039wmg.3 for ; Thu, 09 Nov 2017 12:44:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=resent-to:resent-from:resent-date:resent-message-id:from:to:subject :date:message-id:mime-version; bh=kEKAs4mzUHncGtSjgaWLFY/lYlZvKU9fLIC0UWbjKSI=; b=VKvCpk2oXLgCN4uhqEBE+/9M7nvD9d+Jn3yynOPWsQO6YaDnozQP3nWSzFqjEJVri2 vErlhY4o3X+hM4PCPwtRzTeQYiYLvQE+Dm9DvLNbivuDh4K3WaDVZcuLntMJyY/mt0R3 1CImRH2hVK9qFndtdasudsu/6N798VQDUNe4kz53tkL3Eu9gFETl4yZm6yBavEKXV8ZP dmy/BIZZun1OeIIqK1dZ3+UM+cy48dhmN7y3JZOjn+M9vQ3rZbHscKjNYvGuPsr8gXzj 7v9Um/lFgzlx2XABE8ZyVmlj9ELfi0zQP9ZdRtuQQXDhuFE5OAy1FVYnBOpXHFCaKUK7 hNkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:resent-to:resent-from:resent-date :resent-message-id:from:to:subject:date:message-id:mime-version; bh=kEKAs4mzUHncGtSjgaWLFY/lYlZvKU9fLIC0UWbjKSI=; b=GymQb3XHdNrT9mwwu5950zoM12JQtWM8UZjmMALEtd6MMdvgcX2jvNcjpBum12alNe Me8GklWnlo3KOqMz6WU65KwNvmsVVbGmGRJ9FGTN3PFRnLe2Tu9yO6LxDKvO0A0hLahV quq8nsnfFl5RoemRORcgFc3W1PzdH0ZzS+cDYIuYeLMeAyn6lTIA24IRsq5k5nj0qVGR ZCzoC2F2Pj8t3pZ9L+C00bMw/rTcsUUZpap6N4xdST40+Tq+IlZiE9lceingg0ApOmB4 ub3SBqIZ9kjgt3/LIrS6oisedAup2FGpi/lNeqWcMBfSzn8f5ooh8wZtP6aj2clikAP9 5Lsw== X-Gm-Message-State: AJaThX6r8Zq0zpmlKqSAZuLJKFgjglgLalNgdSPmqoHf/5G1AgcGMBzn UYe5IxK2H8RIMO/BLLYvXVcImj66 X-Google-Smtp-Source: AGs4zMZ1igQSdNuhCyCOTd2ndq5TR2X2O/KZNgcBeoSxgO2hbtkZq1NP/HHbVjoI7lHPBIfY6mSgdg== X-Received: by 10.28.31.21 with SMTP id f21mr805399wmf.18.1510260286048; Thu, 09 Nov 2017 12:44:46 -0800 (PST) Received: from nix230 (port-92-196-97-105.dynamic.qsc.de. [92.196.97.105]) by smtp.gmail.com with ESMTPSA id f10sm6786391wrg.20.2017.11.09.12.44.45 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Nov 2017 12:44:45 -0800 (PST) Resent-To: notmuch@notmuchmail.org Resent-From: Kai Harries Resent-Date: Thu, 09 Nov 2017 21:44:45 +0100 Resent-Message-ID: <877euzi3lu.fsf@x230.kaiha.invalid> From: Kai Harries To: notmuch@notmuchmail.org Subject: bounce/forward not working due to CR at line end Date: Thu, 09 Nov 2017 21:34:21 +0100 Message-ID: <87d14ri436.fsf@x230.kaiha.invalid> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: Thu, 09 Nov 2017 20:44:48 -0000 --=-=-= Content-Type: text/plain Hello, I am new to notmuch so excuse if the fault is on my end. For me resending and forwarding of emails are not working if message-forward-show-mml is enabled. The problems are CR at the line endings. With the attached two patches I got it working for me. Maybe someone more knowledgeable can see from it what the right solution would be. My configuration: notmuch 0.25.1 Emacs 25.3.1 on GNU/Linux (NixOS 17.09) --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=mime-to-mml.patch Content-Description: patch of mime-to-mml --- a/mml.el 2017-11-09 21:11:26.542291084 +0100 +++ b/mml.el 2017-11-09 21:12:18.838306315 +0100 @@ -929,10 +929,11 @@ (defun mime-to-mml (&optional handles) "Translate the current buffer (which should be a message) into MML. If HANDLES is non-nil, use it instead reparsing the buffer." ;; First decode the head. + (save-excursion (icalendar--clean-up-line-endings)) (save-restriction (message-narrow-to-head) (let ((rfc2047-quote-decoded-words-containing-tspecials t)) (mail-decode-encoded-word-region (point-min) (point-max)))) (unless handles --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=notmuch-show-view-raw-message.patch Content-Description: patch of notmuch-show-view-raw-message --- a/notmuch-show.el 2017-11-09 21:17:05.791414308 +0100 +++ b/notmuch-show.el 2017-11-09 21:17:57.958437388 +0100 @@ -2011,20 +2011,21 @@ (defun notmuch-show-view-raw-message () "View the original source of the current message." (interactive) (let* ((id (notmuch-show-get-message-id)) (buf (get-buffer-create (concat "*notmuch-raw-" id "*"))) (inhibit-read-only t)) (switch-to-buffer buf) (erase-buffer) (let ((coding-system-for-read 'no-conversion)) (call-process notmuch-command nil t nil "show" "--format=raw" id)) + (save-excursion (icalendar--clean-up-line-endings)) (goto-char (point-min)) (set-buffer-modified-p nil) (setq buffer-read-only t) (view-buffer buf 'kill-buffer-if-not-modified))) (defun notmuch-show-resume-message () "Resume EDITING the current draft message." (interactive) (notmuch-draft-resume (notmuch-show-get-message-id))) --=-=-= Content-Type: text/plain Best regards Kai Harries --=-=-=--