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 265636DE1294 for ; Sat, 8 Oct 2016 13:05:29 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.509 X-Spam-Level: X-Spam-Status: No, score=0.509 tagged_above=-999 required=5 tests=[AWL=-0.621, 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_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 LqqdW0cYOCih for ; Sat, 8 Oct 2016 13:05:28 -0700 (PDT) Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by arlo.cworth.org (Postfix) with ESMTPS id 30D266DE128E for ; Sat, 8 Oct 2016 13:05:28 -0700 (PDT) Received: by mail-wm0-f68.google.com with SMTP id i130so8005947wmg.0 for ; Sat, 08 Oct 2016 13:05:28 -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=DXmxbkzhaDkf4z2iljnWCSFn9kumemvFXiqtNKzbl5k=; b=loC+3mAW/exSw6mUgzD4I2Z4HHlcoSkhSx/M6NPkAABcoi0w5jqqSi2tFkJcpy71RZ 27it5NTFu0ai40tjjjnpyv0dtJaiw5/rXzd40dvB0t/6lGzvS6VEwNvJVbfHwBuNdJ73 xm7N6j4QjtqxQmR3TaLgp13nYdjMK8lMu/F+cRBo2aOpUugVMywHYTfWSzlrzZXrLR8g l8jIjnUSxGKZfUQH4CPvhZogdorMHjkYz3pY9EmZ1ssMgx4T/MrUXRhth3uEZlf7+AZo CIqFyRuROWFdgOOmHZWTspmcLBXQEyWDhvkU63j5icNbx9y753lPNH3717YQKX7lRhB8 h5Sg== 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=DXmxbkzhaDkf4z2iljnWCSFn9kumemvFXiqtNKzbl5k=; b=I5Ax/JOp3v4UuEcDEQRwvssofI9SNPlPnGN2KEtMmJMV3/WoP8nydQ3avfmNzSXrH1 ePjA5qDG1NlJsXi9L9a0cmIlZsbxP3HHKh6ouw3JQrFB6tSEJRLKA9vmlfQxORDuemv7 1aeb9x3UM8rJY8H1xx7FprJb2gH/B2lEjbMDYfnz82WQr4jBslZ/XHVGEvU7FXjA7/p3 UKsAHmMIxF6iEmzZL302tqwI3memDfDwuRWZooRl17bRPTDIcj75plN+GozF6r6kw8SO AJhmeEs/B0LrpOmr3MaVJ0j4kankYcT2/YWHuL7JEF2kbHutlQS6BCqIlUzGXj6Bi0Zl fV7Q== X-Gm-Message-State: AA6/9RmtM5z4DdfEpQAHGlEu9QrdQjQDOO8jEiSD3Lu/RCz8QLY7Yq5Rn6iZijG/3WsLSg== X-Received: by 10.28.26.1 with SMTP id a1mr4072824wma.68.1475957126148; Sat, 08 Oct 2016 13:05:26 -0700 (PDT) Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162]) by smtp.gmail.com with ESMTPSA id jr3sm26378699wjb.13.2016.10.08.13.05.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Oct 2016 13:05:25 -0700 (PDT) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH v4 0/2] Check for misplaced secure mml tags Date: Sat, 8 Oct 2016 21:05:21 +0100 Message-Id: <1475957123-6920-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.22 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: Sat, 08 Oct 2016 20:05:29 -0000 This is a new version of id:1475417131-24915-1-git-send-email-markwalters1009@gmail.com It fixes bremner's comment that the warning message presented to the user was wrong. Also, I think the logic is a little simpler, and I think the general layout extends to any other checks we wish to do before sending. Best wishes Mark Mark Walters (2): emacs: mua: extract a common message-send function. emacs: mua: check for misplaced secure mml tags emacs/notmuch-mua.el | 57 ++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 53 insertions(+), 4 deletions(-) -- 2.1.4