[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnorb 9ecb0e2 136/449: Use BBDB posting styles in mail
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnorb 9ecb0e2 136/449: Use BBDB posting styles in mail composition |
Date: |
Fri, 27 Nov 2020 23:15:25 -0500 (EST) |
branch: externals/gnorb
commit 9ecb0e256ed1476ea7e3a6b82b8875c1534a0d14
Author: Eric Abrahamsen <eric@ericabrahamsen.net>
Commit: Eric Abrahamsen <eric@ericabrahamsen.net>
Use BBDB posting styles in mail composition
lisp/gnorb-org.el: (gnorb-org-handle-mail, gnorb-org-email-subtree)
Change both functions to make use of
gnorb-bbdb-posting-styles. When will these
functions get merged!?
---
lisp/gnorb-org.el | 30 ++++++++++++++++++++++--------
1 file changed, 22 insertions(+), 8 deletions(-)
diff --git a/lisp/gnorb-org.el b/lisp/gnorb-org.el
index 3c5d8f2..84f4b9e 100644
--- a/lisp/gnorb-org.el
+++ b/lisp/gnorb-org.el
@@ -523,10 +523,17 @@ current heading."
(cc (mp "MAIL_CC"))
(bcc (mp "MAIL_BCC"))
(org-id (org-id-get-create))
+ (recs (plist-get links :bbdb))
mails)
- (when (plist-get links :bbdb)
- (dolist (b (plist-get links :bbdb))
- (push (gnorb-bbdb-link-to-mail b) mails)))
+ (when recs
+ (dolist (r recs)
+ (push (gnorb-bbdb-link-to-mail r) mails)))
+ (when (and gnorb-bbdb-posting-styles
+ recs)
+ (add-hook 'message-mode-hook
+ (lambda ()
+ (gnorb-bbdb-configure-posting-styles (cdr recs))
+ (gnorb-bbdb-configure-posting-styles (list (car
recs))))))
(gnorb-org-setup-message
(plist-get links :gnus) ; gnus links
(append mails (plist-get links :mail))
@@ -694,21 +701,28 @@ default set of parameters."
(links (gnorb-org-extract-mail-stuff strategy))
(attachments (gnorb-org-attachment-list))
(org-id (org-id-get-create))
- text mails)
+ (recs (plist-get links :bbdb))
+ text mails )
;; this should just go into a call to `org-handle-mail', passing
;; the results of the export as an argument
(setq gnorb-org-window-conf (current-window-configuration))
(if (bufferp result)
(setq text result)
(push result attachments))
- (when (plist-get links :bbdb)
- (dolist (b (plist-get links :bbdb))
- (push (gnorb-bbdb-link-to-mail b) mails)))
+ (when recs
+ (dolist (r recs)
+ (push (gnorb-bbdb-link-to-mail r) mails)))
+ (when (and gnorb-bbdb-posting-styles
+ recs)
+ (add-hook 'message-mode-hook
+ (lambda ()
+ (gnorb-bbdb-configure-posting-styles (cdr recs))
+ (gnorb-bbdb-configure-posting-styles (list (car recs))))))
(gnorb-org-setup-message
(plist-get links :gnus)
(append mails (plist-get links :mails))
nil nil nil ;; when this calls into `org-handle-mail' all this
- ;; will be sorted
+ ;; will be sorted
attachments text org-id)))
(defcustom gnorb-org-capture-collect-link-p t
- [elpa] externals/gnorb 5876834 088/449: BBDB posting styles, first draft, (continued)
- [elpa] externals/gnorb 5876834 088/449: BBDB posting styles, first draft, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 69c3312 089/449: Refactoring of gnorb-org link scanning, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 6a66e21 093/449: Got the arguments to org-get-heading backwards, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb a64f652 094/449: Have gnorb-org-popup-bbdb scan the whole subtree, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 68f1473 096/449: More robust check for an open nngnorb server, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 9fbd947 105/449: Collect attachments on incoming trigger action, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb adba76d 117/449: Rewrite of link-scanning routine, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 522f653 121/449: Declare some function, possibly unneccesary, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 1a40d11 130/449: Checking wishlist items off, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 372986c 132/449: Fix call of key-description, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 9ecb0e2 136/449: Use BBDB posting styles in mail composition,
Stefan Monnier <=
- [elpa] externals/gnorb 1d9c710 139/449: Error in following link should be re-raised, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 5a86970 109/449: Improvements to outgoing todo handling, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb ac97c90 118/449: Let gnorb-org-view work in the Agenda as well, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb a512d40 124/449: Largely re-wrote gnorb-gnus-outgoing-do-todo, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb dad66e6 131/449: Better separate triggering for sent/received msgs, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb baf896c 100/449: Cruft! How the hell did that happen?, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 3ffcdab 101/449: Create .gitignore file, ignoring *elc files, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb 9bf56f2 135/449: Refactor extraction of mails from records, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb c6b7c04 137/449: Minor README edits, Stefan Monnier, 2020/11/27
- [elpa] externals/gnorb e44ece6 102/449: Multiple misnamed variables in bbdb posting styles, Stefan Monnier, 2020/11/27