From 73f4786d9315c5e40e88f8f34fb221ba4fbe5355 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 23 May 2020 10:59:34 -0700 Subject: notmuch-slurp-this-debbug: if fail to extract bug number, prompt Signed-off-by: Sean Whitton --- mailscripts.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mailscripts.el') diff --git a/mailscripts.el b/mailscripts.el index 3e5b3b5..36f5732 100644 --- a/mailscripts.el +++ b/mailscripts.el @@ -71,8 +71,10 @@ If NO-OPEN, don't open the thread." "When viewing a Debian bug in notmuch, download any missing messages." (interactive) (let ((subject (notmuch-show-get-subject))) - (when (string-match "Bug#\\([0-9]+\\):" subject) - (notmuch-slurp-debbug (match-string 1 subject) t)) + (notmuch-slurp-debbug + (if (string-match "Bug#\\([0-9]+\\):" subject) + (match-string 1 subject) + (read-string "Bug number: ")) t) (notmuch-refresh-this-buffer))) ;;;###autoload -- cgit v1.2.3