From 39f14fd677043f53f973b6df51bc51d82309339f Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sun, 21 Jul 2019 16:17:21 -0400 Subject: notmuch: Improve stashing of debbugs CC The CC value can have a tab, which the regexp doesn't handle. Instead rely on message-fetch-field. --- lisp/km-mail.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/km-mail.el b/lisp/km-mail.el index 356c6bc..66d1202 100644 --- a/lisp/km-mail.el +++ b/lisp/km-mail.el @@ -234,8 +234,7 @@ Tracking System, set '--in-reply-to' to the initial report and (notmuch-show-stash-git-helper (message-tokenize-header (km/notmuch-with-raw-message (concat "id:" root-id) - (and (re-search-forward "^Cc: \\(.+\\)" nil t) - (match-string 1)))) + (message-fetch-field "Cc"))) "--cc=") (notmuch-show-stash-git-helper (list root-id) "--in-reply-to=")) " "))))) -- cgit v1.2.3