[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnorb 582c111 080/449: Let gnorb-gnus-check-outgoing-he
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnorb 582c111 080/449: Let gnorb-gnus-check-outgoing-headers handle news |
Date: |
Fri, 27 Nov 2020 23:15:12 -0500 (EST) |
branch: externals/gnorb
commit 582c1111d73c891e91f672011c17def0304a066d
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
Let gnorb-gnus-check-outgoing-headers handle news
lisp/gnorb-gnus.el: gnorb-gnus-check-outgoing-headers needs not to choke
on news: use either To or Newsgroups, appropriately.
Probably this whole function should be wrapped in
some kind of condition-case -- it should never
prevent messages from being sent.
---
lisp/gnorb-gnus.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lisp/gnorb-gnus.el b/lisp/gnorb-gnus.el
index 7df6df1..eca0d33 100644
--- a/lisp/gnorb-gnus.el
+++ b/lisp/gnorb-gnus.el
@@ -246,14 +246,16 @@ information about the outgoing message into
(message-narrow-to-headers)
(let* ((org-ids (mail-fetch-field gnorb-mail-header nil nil t))
(msg-id (mail-fetch-field "Message-ID"))
- (to (mail-fetch-field "To"))
+ (to (if (message-news-p)
+ (mail-fetch-field "Newsgroups")
+ (mail-fetch-field "To")))
(toname (nth 1 (mail-extract-address-components to)))
(toaddress (nth 2 (mail-extract-address-components to)))
(subject (mail-fetch-field "Subject"))
(date (mail-fetch-field "Date"))
;; if we can get a link, that's awesome
(link (or (and (mail-fetch-field "Gcc")
- (org-store-link))
+ (call-interactively 'org-store-link))
nil)))
;; if we can't, then save some information so we can fake it
(setq gnorb-gnus-sending-message-info
- [elpa] externals/gnorb a165584 041/449: Handle return from mail sending better, (continued)
- [elpa] externals/gnorb a165584 041/449: Handle return from mail sending better, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 7ffc885 043/449: Commenting out my re-implementation of map-y-or-n-p, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 6152e85 059/449: Comments on editing messages, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb d786b81 063/449: Random comment edits and indenting changes., Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 77698aa 071/449: Split 'gnorb-org-email-subtree-parameters', Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 3a2cd3b 072/449: Improve scanning of headings for mail actions, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb bb21414 075/449: Provide more escapes for outgoing capture templates, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb cd1f289 076/449: Guess which Org TODO is related to this message, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 856da2b 077/449: Improve `gnorb-gnus-outgoing-make-todo', Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5812648 078/449: FUNCTION RENAMING, I'M VERY SORRY, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 582c111 080/449: Let gnorb-gnus-check-outgoing-headers handle news,
Stefan Monnier <=
- [elpa] externals/gnorb 92354d0 082/449: Allow use of some org-mime properties, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb b81f3e2 083/449: Don't assume any ID references on incoming messages, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 1cdec4b 086/449: New option gnorb-org-find-candidates-match, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb c2a3793 087/449: Don't prompt for action if todo is not possible, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 78e1e2b 090/449: Use custom refile targets in re-attaching files, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 7950d3a 091/449: Comment and indentation changes only, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb f5d451e 092/449: New nngnorb mail backend, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e62587f 095/449: Yeesh, assigning to global variable by accident, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 8fef972 097/449: Gnorb nnir engine doesn't take extra criteria, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 7f67221 098/449: Allow for more "query" types in nnir-run-gnorb, Stefan Monnier, 2020/11/27