unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: David Edmondson <dme@dme.org>, notmuch@notmuchmail.org
Subject: Re: [PATCH v2 1/2] emacs: Optionally check for missing attachments in outgoing messages
Date: Sun, 23 Sep 2018 08:09:46 -0300	[thread overview]
Message-ID: <877ejch3lx.fsf@tethera.net> (raw)
In-Reply-To: <20180908214041.19959-2-dme@dme.org>

David Edmondson <dme@dme.org> writes:

> Query the user if the message text indicates that an attachment is
> expected but no MML referencing an attachment is found.
>
> This is not enabled by default - see the documentation for
> `notmuch-mua-attachment-check'.
> ---
>  emacs/notmuch-mua.el | 37 +++++++++++++++++++++++++++++++++++++
>  1 file changed, 37 insertions(+)
>
> diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el
> index fc8ac687..13759c73 100644
> --- a/emacs/notmuch-mua.el
> +++ b/emacs/notmuch-mua.el
> @@ -115,8 +115,45 @@ multiple parts get a header."
>  		(function :tag "Other"))
>    :group 'notmuch-reply)
>  
> +(defcustom notmuch-mua-attachment-regexp
> +  "\\b\\(attache\?ment\\|attached\\|attach\\|pi[èe]ce\s+jointe?\\)\\b"
> +  "Message body text indicating that an attachment is expected.
> +
> +This is not used unless `notmuch-mua-attachment-check' is added
> +to `notmuch-mua-send-hook'.")
> +
>  ;;

notmuch-mua-send-hook is not firing for me. I ran the following test

./devel/try-emac-mua -q

(add-hook 'notmuch-mua-send-hook (lambda () (error "boo!"))) C-x C-e
(notmuch-hello) C-x C-e
m
delete Fcc header
C-c C-c
select trasport

Nothing in messages from my hook, no traceback.

This is not caused by your patches, but seems like we should figure out
what's going on?

  reply	other threads:[~2018-09-23 11:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-08 21:40 [PATCH v2 0/2] emacs: Optionally warn if attachments are mentioned in an outgoing David Edmondson
2018-09-08 21:40 ` [PATCH v2 1/2] emacs: Optionally check for missing attachments in outgoing messages David Edmondson
2018-09-23 11:09   ` David Bremner [this message]
2019-03-28 11:11     ` David Bremner
2019-03-28 17:43   ` David Bremner
2018-09-08 21:40 ` [PATCH v2 2/2] test: Add emacs attachment check tests David Edmondson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877ejch3lx.fsf@tethera.net \
    --to=david@tethera.net \
    --cc=dme@dme.org \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).