[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnorb f3acab5 345/449: Handle forwarding from gnorb-mod
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnorb f3acab5 345/449: Handle forwarding from gnorb-mode summary buffers |
Date: |
Fri, 27 Nov 2020 23:16:08 -0500 (EST) |
branch: externals/gnorb
commit f3acab58c4bfb72acae66068c551e11a3fbb70e4
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
Handle forwarding from gnorb-mode summary buffers
* nngnorb.el (gnorb-summary-reply-hook): `message-repy-headers' is only
populated for replies. When forwarding, simply get the message-id from
the text of the forwarded message below. If the user has added
message-id to `message-forward-ignored-headers' then s/he is out of
luck.
---
nngnorb.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/nngnorb.el b/nngnorb.el
index 0c1ca35..732254e 100644
--- a/nngnorb.el
+++ b/nngnorb.el
@@ -269,7 +269,14 @@ continue to provide tracking of sent messages."
(defun gnorb-summary-reply-hook (&rest args)
"Function that runs after any command that creates a reply."
;; Not actually a "hook"
- (let* ((msg-id (aref message-reply-headers 4))
+ (let* ((msg-id (if message-reply-headers
+ (aref message-reply-headers 4)
+ ;; When forwarding messages,
+ ;; `message-reply-headers' is nil.
+ (save-excursion
+ (let ((case-fold-search t))
+ (when (re-search-forward "message-id: +\\(.*\\)$"
(point-max) t)
+ (match-string 1))))))
(org-id (car-safe (gnus-registry-get-id-key msg-id 'gnorb-ids)))
(compose-marker (make-marker))
(attachments (buffer-local-value
- [elpa] externals/gnorb acb91c5 315/449: Fix doc error, (continued)
- [elpa] externals/gnorb acb91c5 315/449: Fix doc error, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 4d3de61 316/449: Various documentation improvements, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 86fa893 318/449: Fix up all cl-lib calls, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 51439a1 323/449: Look in drawers for potential mail links, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 209b938 324/449: Attach outgoing message check to message-sent-hook, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 2660934 333/449: gnorb-bbdb.el: Use the right catch tag name, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb eaaea81 335/449: Link extraction should return links in same order, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 87137be 330/449: gnorb-bbdb.el: Fix matching of posting styles, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 9c918ab 337/449: Bump version to 1.1.2, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 2086922 342/449: Fixes to previous commit, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb f3acab5 345/449: Handle forwarding from gnorb-mode summary buffers,
Stefan Monnier <=
- [elpa] externals/gnorb f963a32 346/449: Don't ignore entries with no sender key, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 42ba9d9 347/449: Change the gnus hook to use for hinting, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e17a402 353/449: Mess with TODOs in README.org, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb b53c93f 354/449: Enormous quantities of compiler-inspired fixes, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 4a8fa84 369/449: Fix nnir search routine, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb dfb2acd 375/449: Bug fix in mail tracking extraction, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb de4b0e8 145/449: Associate outgoing messages with arbitrary headings, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 0f18c45 311/449: Allow persistent nnir search groups, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 4f62ec8 374/449: Fix inevitable screwup in previous commit, bump version, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 3b81d8c 377/449: Don't mark the 'artno key as precious, Stefan Monnier, 2020/11/27