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 200AA6DE01D0 for ; Thu, 2 Jun 2016 11:21:56 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.321 X-Spam-Level: X-Spam-Status: No, score=-0.321 tagged_above=-999 required=5 tests=[AWL=0.249, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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 CGrk6xHCaR2r for ; Thu, 2 Jun 2016 11:21:48 -0700 (PDT) Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by arlo.cworth.org (Postfix) with ESMTPS id 889796DE00DB for ; Thu, 2 Jun 2016 11:21:47 -0700 (PDT) Received: by mail-wm0-f51.google.com with SMTP id a20so77757805wma.1 for ; Thu, 02 Jun 2016 11:21:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:user-agent:date:message-id:mime-version; bh=5YHwp0e2vm4sbCLGnbR2jEG5cu5rwLZnA3F6ytqL+Io=; b=V6w7uq4I3QbchmVpjs+jLfYMP5WJ6yGKvmWv+bpLNKX4QYVbwwYgvn1gEwX3Qn4LI9 i42ykdrKf0NPIexIUSMFXZlZDLuL7CGnZjdGSN+593jcfP7rYbxidmv/YRaJkQ9vqt5k YD+icaVc+2EjzcuvO1a8JZslcSSCfiCSt/H0ZtDzliLtEPZrr5mjfyaPpY45tYuHXyUI fvpTXq3y84ZZAO3bul8lFSXMqMYSxHzQ7+/eXu7gkEZj4isQKgfZ0NzEekNnfzizw23/ vqcz5qnHqiJY6HX/Pmzb/XtGQ0MwHpxLAz3lpib9Zq1d5TthdNe85pOSSmwX4X8GiApY fvuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:user-agent:date:message-id :mime-version; bh=5YHwp0e2vm4sbCLGnbR2jEG5cu5rwLZnA3F6ytqL+Io=; b=IHvxfr6DbARWgTsgK7Km52RjHPD7w9QWFBlGD0oUN1TEu4CGYdnK7/Wnow0H469dUG C4Jqa4xJNzeQeL2BjXP/mn4sQ0UaQM7W+rbjQBWDV+WcUs2d1X9pWNpjTn+VGtRQ7KPd Ymc2XnE3dadZatjq0+YYpMCYhAM2YzVvJzfm+1/Ptajl3mYJ/MijoTNZFW7tnURrctqI xPHK5KCNinTjUYjWpGGeG4BkpxTe2BJ7f1XvxoaPi1PU72G5LsgVyZ+u/ijcL0PFK+1b mEEWVPlJdgJOVgDadjsMv4fyp6uGM2u86qiXKCPCrrjYLRK41b2y3p5lrmMWxHVUkzMj EBEw== X-Gm-Message-State: ALyK8tLcniwkP4Enkm0SVrDtowdVBG+PGzLpxgrJWQknbVeR83IYXn2I0HT2YNOPmLIv8A== X-Received: by 10.194.133.194 with SMTP id pe2mr9723384wjb.5.1464891705760; Thu, 02 Jun 2016 11:21:45 -0700 (PDT) Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162]) by smtp.gmail.com with ESMTPSA id c7sm1758402wji.38.2016.06.02.11.21.44 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jun 2016 11:21:45 -0700 (PDT) From: Mark Walters To: notmuch@notmuchmail.org Subject: Emacs: postponing messages User-Agent: Notmuch/0.22~rc1+4~g410fd6d (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) Date: Thu, 02 Jun 2016 19:21:44 +0100 Message-ID: <87mvn330zr.fsf@qmul.ac.uk> MIME-Version: 1.0 Content-Type: text/plain 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: Thu, 02 Jun 2016 18:21:56 -0000 Dear All There was some discussion on irc yesterday about a better way of postponing message when using the emacs frontend. I think getting a moderately nice interface should be quite easy (see below) but there are some corner cases on what *should* happen that I would like to resolve before trying to implement anything. My broad idea for postpone is to take the partial message, use notmuch insert to put it in the database with a "postponed" tag, and then on resume fetch the raw message and go into notmuch-message-mode, and also either add a deleted tag to the resumed message, or better actually delete the resumed message. Finally, we would add postponed to the excluded tags list, so that postponed messages only show up when searched for. Now the main difficulty I see is what to do with attachments. If we just leave the mml #part markers in the message then the file might have disappeared by the time we resume (or could even be a different file). This would be a particular problem if people attach files that are in /tmp say. Further the way rfc822 forwarding works (ie the default forwarding in notmuch/emacs) is to put each attachment of the message that is being forwarded into its own emacs buffer, and include these buffers via the mml markers. These buffers would all disappear if the user restarts emacs between postponing and resume. An alternative would be to attach the attachments with the postponed message. This is probably doable by writing the message (as if being fcc'd) to notmuch insert, and then using the mime-to-mml function to reverse the process. The downside here is that now the attached file is not the current file in the filesystem when you send -- ie its different from the normal case. Any thoughts or comments very gratefully received! Best wishes Mark