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 49A6F6DE00D1 for ; Thu, 6 Sep 2018 11:15:09 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.306 X-Spam-Level: X-Spam-Status: No, score=0.306 tagged_above=-999 required=5 tests=[AWL=-0.136, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.211, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=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 WHyEUCBU1jKp for ; Thu, 6 Sep 2018 11:15:00 -0700 (PDT) Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by arlo.cworth.org (Postfix) with ESMTPS id 0A9F76DE0083 for ; Thu, 6 Sep 2018 11:15:00 -0700 (PDT) Received: by mail-wr1-f50.google.com with SMTP id 20-v6so12347458wrb.12 for ; Thu, 06 Sep 2018 11:14:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dme-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=rX69S/7CA8ESHc42+mq2QSm2G7o5G2dV1mhOCxgUxjw=; b=IPrxBcWxu3CemZcM/v+6LOn31iedRVunUgbVkQap4jhLFYAiBuQH2IT4U3vDwkPQ0K 7NhUv0dHdNFUUJMyzX81WmkMKQw1NnH8UKNvPPaltYCDVrz4oxxQs64mS+vF5zQyFD8t fupA7AtKDokV0kXm7J6YhHd+3FNuRnzCYV8MdbWq8y23hKoH4/zMAdzl+9NA1PZHJym6 s3vnDGljYNmIBv5FxsrrVUM2bZlE0wAXYcB1Qcg9HONgF76p0u98Rz9PNb2l+tMAIoZf OsN4WT5lIYY9NayAPP4GdYuiRJ2Hfx6Q1bqwDnD/dQIDrh1sTKEixlCFP6kwh7KEKw72 P8QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=rX69S/7CA8ESHc42+mq2QSm2G7o5G2dV1mhOCxgUxjw=; b=gwhaUYpIoM6KtzSoh4sti+PwsezcOSCUmNwrJAdzUM4wmhduhm2CR7RIiVf9BMLcHh T8XWwk0Kl+jFQpJk7+xzVQTF38ZXb053sEoF31q3N/p1IlMjpVq8cIOsnKkV6ucCPCTD KL4axkRBkjFQzIqyIz8oteC1ADLMANEnR2lO+baNja/S83lPKr2VGmyEGVMIr/VMapT/ /OJe7mjgaBrp9E/tN+wHk4fZU53o6buVIIsaeu+SbL7CEK8tKhaMIhkPY6+cxZAmxNDz TrLSYVKoMYYuDf2R64DIoL0OW5oeuB6SK5ayv7q7ncJ0MUKFcS2iX4bB/CyE53zfneDt gUzA== X-Gm-Message-State: APzg51DM7iSW4h7w+yMwQrq14ZpVCNIpJ58Tvj8w8Kbp4DPletgBupFv UKVZCjNgaaLbUd1Ia8Lp3JXXOxmZJ8Q= X-Google-Smtp-Source: ANB0VdbAwtPwB2FRLe/0ZN+jo1TEJ0PgEw1VnBb1ksxwhPIQJH/3mieR3M0kWdX89IxAirJSVxELKg== X-Received: by 2002:a5d:448d:: with SMTP id j13-v6mr3410046wrq.236.1536257697639; Thu, 06 Sep 2018 11:14:57 -0700 (PDT) Received: from disaster-area.hh.sledj.net (disaster-area.hh.sledj.net. [81.149.164.25]) by smtp.gmail.com with ESMTPSA id b124-v6sm3806430wmg.47.2018.09.06.11.14.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Sep 2018 11:14:56 -0700 (PDT) Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 8d4d1a7c for ; Thu, 6 Sep 2018 18:14:56 +0000 (UTC) From: David Edmondson To: notmuch@notmuchmail.org Subject: [PATCH v1 0/2] emacs: Optionally warn if attachments are mentioned in an outgoing Date: Thu, 6 Sep 2018 19:14:54 +0100 Message-Id: <20180906181456.21719-1-dme@dme.org> X-Mailer: git-send-email 2.11.0 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 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, 06 Sep 2018 18:15:09 -0000 emacs: Optionally warn if attachments are mentioned in an outgoing message but no MML referencing an attachment is found. This is similar to Antoine's patch in id:20180903175711.16141-1-anarcat@debian.org, but also includes tests. David Edmondson (2): emacs: Optionally check for missing attachments in outgoing messages test: Add emacs attachment check tests. emacs/notmuch-mua.el | 27 +++++++++++++++++++++++++ test/T720-emacs-attachment-warnings.sh | 36 ++++++++++++++++++++++++++++++++++ test/emacs-attachment-test.el | 25 +++++++++++++++++++++++ 3 files changed, 88 insertions(+) create mode 100755 test/T720-emacs-attachment-warnings.sh create mode 100644 test/emacs-attachment-test.el -- 2.11.0