]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: create patch filename from subject for inline patch fake parts
authorJani Nikula <jani@nikula.org>
Tue, 27 Dec 2011 16:04:39 +0000 (18:04 +0200)
committerDavid Bremner <bremner@debian.org>
Wed, 28 Dec 2011 12:18:27 +0000 (08:18 -0400)
Use the mail subject line for creating a descriptive filename for the wash
generated inline patch fake parts. The names are similar to the ones
created by 'git format-patch'.

If the user has notmuch-wash-convert-inline-patch-to-part hook enabled in
notmuch-show-insert-text/plain-hook, this will change the old default
filename of "inline patch" in fake parts:

[ inline patch: inline patch (as text/x-diff) ]

into, for example:

[ 0002-emacs-create-patch-filename-from-subject-for-inline.patch: inline patch (as text/x-diff) ]

which is typically the same filename the sender had if he was using 'git
format-patch' and 'git send-email'.

Signed-off-by: Jani Nikula <jani@nikula.org>

No differences found