Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id E8EC96DE13E2 for ; Tue, 10 Nov 2015 07:06:09 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.625 X-Spam-Level: X-Spam-Status: No, score=-0.625 tagged_above=-999 required=5 tests=[AWL=0.075, RCVD_IN_DNSWL_LOW=-0.7] 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 LdkAePH_9wtc for ; Tue, 10 Nov 2015 07:06:07 -0800 (PST) Received: from avasout04.plus.net (avasout04.plus.net [212.159.14.19]) by arlo.cworth.org (Postfix) with ESMTPS id 458EB6DE00DD for ; Tue, 10 Nov 2015 07:06:06 -0800 (PST) Received: from localhost ([84.93.237.98]) by avasout04 with smtp id fr611r002283uBY01r62Mi; Tue, 10 Nov 2015 15:06:04 +0000 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=CvRCCSMD c=1 sm=1 tr=0 a=BJaFPv9AyABFDM2hXLRoEA==:117 a=BJaFPv9AyABFDM2hXLRoEA==:17 a=0Bzu9jTXAAAA:8 a=80hmnl3cAAAA:8 a=8nJEP1OIZ-IA:10 a=qtqOOiqGOCEA:10 a=c5rw0FqAVtnqQZv9o64A:9 a=wPNLvfGTeEIA:10 Received: from localhost ([127.0.0.1] helo=webmail.plus.net) by localhost with esmtp (Exim 4.76) (envelope-from ) id 1ZwAUj-0007HF-6k; Tue, 10 Nov 2015 15:06:01 +0000 Received: from 216.31.211.11 (proxying for unknown) (SquirrelMail authenticated user bubblegen+matt) by webmail.plus.net with HTTP; Tue, 10 Nov 2015 15:06:01 -0000 Message-ID: <5b7cdc1b10597d9f667939cf4f0b45d4.squirrel@webmail.plus.net> In-Reply-To: <871tbz8bil.fsf@qmul.ac.uk> References: <430FC760-8BF5-4798-89B5-E7F2A16564B7@bubblegen.co.uk> <87h9l0qg1p.fsf@alice.fifthhorseman.net> <847CC903-FE82-49B4-A3D6-1070D58BF2F3@bubblegen.co.uk> <871tbz8bil.fsf@qmul.ac.uk> Date: Tue, 10 Nov 2015 15:06:01 -0000 Subject: Re: notmuch-emacs: forward messages inline From: "Matthew Lear" To: "Mark Walters" Cc: "Matthew Lear" , "Daniel Kahn Gillmor" , "notmuch\@notmuchmail.org" Reply-To: matt@bubblegen.co.uk User-Agent: SquirrelMail MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.20 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: Tue, 10 Nov 2015 15:06:10 -0000 > > Hi > > Does adding something like the following to your .emacs file do what you > want? > > > (defun my-forward (prefix) > (interactive "P") > (let ((message-forward-as-mime nil) > (message-forward-ignored-headers ".*")) > (notmuch-show-forward-message prefix))) > > (define-key notmuch-show-mode-map "F" 'my-forward) > > Then "F" should forward the message as a plain message rather than > rfc822, and there should not be any spurious headers. Hi Mark. Yes, thanks. For plain text emails this is perfect in that it gives me what I want (and I can customise the start/end of forwarded message separators). For messages with text and html versions of the body it is less ideal because it generates an email with three attachments - one with the plain text of the message body, one with the html of the message body and one that just contains the 'end of forwarded message' separator. I'd prefer that the plain text message body was included inline and that the html portion was the only attachment in this case. Is this possible? -- Matt