From 492704c0b73a7efaa29e480bfc05cd95e7189cff Mon Sep 17 00:00:00 2001 From: Mark Walters Date: Fri, 3 Jun 2016 18:49:52 +0100 Subject: [PATCH] [PATCH v2 0/3] postpone and resume support --- 71/8ff8eb0edf99295b12b64dd47f803aee984b17 | 122 ++++++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 71/8ff8eb0edf99295b12b64dd47f803aee984b17 diff --git a/71/8ff8eb0edf99295b12b64dd47f803aee984b17 b/71/8ff8eb0edf99295b12b64dd47f803aee984b17 new file mode 100644 index 000000000..2cdbc432a --- /dev/null +++ b/71/8ff8eb0edf99295b12b64dd47f803aee984b17 @@ -0,0 +1,122 @@ +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 3C44F6DE0243 + for ; Fri, 3 Jun 2016 10:50:21 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.176 +X-Spam-Level: +X-Spam-Status: No, score=0.176 tagged_above=-999 required=5 tests=[AWL=-0.254, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, + 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 37sdARzcIvhy for ; + Fri, 3 Jun 2016 10:50:12 -0700 (PDT) +Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com + [74.125.82.41]) by arlo.cworth.org (Postfix) with ESMTPS id B1AB66DE0159 for + ; Fri, 3 Jun 2016 10:50:11 -0700 (PDT) +Received: by mail-wm0-f41.google.com with SMTP id z87so5377804wmh.0 + for ; Fri, 03 Jun 2016 10:50:11 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:cc:subject:date:message-id; + bh=OY6e9nR414K0JKJR/1VBMJPK1t22l+Sg54mwx12Kr3c=; + b=ATcMgUcoH4kdvtCVU/8HKmIaSUoDETW4wa/FlLylmq/FhRNYFs1Z8JxL5pIcqN9Fla + u4g5Ymr+AOivsyzPY1gwbDas5gWoTb23USVT7UHQBJGgDHxJO5opx2sAWP2RwsS6/77R + rojBtMTypLLzDAI2NUAU3+tWBbjRoaxGpzmv3FvO7A8cExKAwCyrIkOhBuXXGP4PBULR + GzM1YhXqE4CHt/XUGjFNDAmTS9kQbj95BaiHCUVzq/u+kvTWoxNE9BSMGWAOrF/aCz7H + KhxHBuh1MjbJAEdTbZgs3JPhvYFF77xKDqvQ5v+uBKGdeCcMAg6WI107bfxzepIg4B9D + 2iUA== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:cc:subject:date:message-id; + bh=OY6e9nR414K0JKJR/1VBMJPK1t22l+Sg54mwx12Kr3c=; + b=i7VdJQ99hUbymlFm1StrHbsF3wIPLgiDkajy/5DwVcJv4tQYFhKm/5pf9weKE102e1 + khmZopkgPdXiQR25fAvg+vflVJaFa4k2Df0xABEbzNcKq5bI7o6nyAIoxGQfzUR4/XVJ + /NE6K/vTOsdKj7evX+xraSC2+GBAc8Elng9LxPfSqqrqAVrtB2wBBI/P1twjwEWJBZln + OSkjGJX5JM+TpDZeHC3jiKlxP6+CgkqY0DsoI+jrPZFXGrHbNPZfzxjUTPKO9mWVWAsN + bKDJSvXiTotWxbE/LUl5jNvXXRo+XeiTylM7ZxfWnpyg+Hn3p+65Zf3904oO+uELWZkn + iZkw== +X-Gm-Message-State: + ALyK8tKlUbGn+zVWd+vB/uGaEhYTD1dVzwjXsPKUV7QBl8lt/kxbRXA7W5VAPnf/V7jWDg== +X-Received: by 10.28.10.65 with SMTP id 62mr595991wmk.81.1464976209998; + Fri, 03 Jun 2016 10:50:09 -0700 (PDT) +Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162]) + by smtp.gmail.com with ESMTPSA id m8sm6775891wjd.34.2016.06.03.10.49.59 + (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Fri, 03 Jun 2016 10:50:02 -0700 (PDT) +From: Mark Walters +To: notmuch@notmuchmail.org +Subject: [PATCH v2 0/3] postpone and resume support +Date: Fri, 3 Jun 2016 18:49:52 +0100 +Message-Id: <1464976195-23134-1-git-send-email-markwalters1009@gmail.com> +X-Mailer: git-send-email 2.1.4 +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: Fri, 03 Jun 2016 17:50:21 -0000 + +This is a new version of the WIP patch at +id:1464915472-5669-1-git-send-email-markwalters1009@gmail.com + +So far it seems to deal with all cases that I have tried, and the +CAVEATS list is rather smaller than before. + +The bindings are C-x C-s to save a draft (in notmuch-message-mode) C-c +C-p to postpone a draft (ie save and exit buffer), and "e" to resume +editing from either show or tree mode. You may want to add "draft" to +your list of excluded tags to hide them unless you specifically search +for them. + +CAVEATS + +Attachments work, but the attachment that will be sent is the +attachment that was there when the message was postponed. (Attachments +added after resume are obviously not added until the message is sent.) + +Each save saves a separate copy of the message. We hide these copies +with the deleted tag but we don't actually delete them. Thus if you +save several copies of message with large attachments you will use a +lot of space. + +If you use signing or encryption then I don't know what will happen: +I have not tested at all. You might sign a partial message that you +didn't mean too; you might expose plain text to someone. + +Finally, and this is not really a caveat, it *may* be possible to resume +a previously sent message. At the moment I haven't tested this, and +have made it so that emacs warns before allowing it. + +Best wishes + +Mark + + +Mark Walters (3): + emacs: tree: move binding for pressing button in message pane to g + emacs: notmuch-check-exit-status bugfix + emacs: postpone/resume support + + emacs/notmuch-lib.el | 10 +++- + emacs/notmuch-message.el | 135 +++++++++++++++++++++++++++++++++++++++++++++++ + emacs/notmuch-mua.el | 4 ++ + emacs/notmuch-show.el | 13 +++++ + emacs/notmuch-tree.el | 3 +- + 5 files changed, 162 insertions(+), 3 deletions(-) + +-- +2.1.4 + -- 2.26.2