[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master fe319a7 101/187: * smtpmail-async.el (async-smtpmail-befor
From: |
Michael Albinus |
Subject: |
[elpa] master fe319a7 101/187: * smtpmail-async.el (async-smtpmail-before-send-hook): New hook that run on child emacs before sending. |
Date: |
Wed, 30 Dec 2015 11:49:57 +0000 |
branch: master
commit fe319a75a16bdc9a43175ed39f4ba233faf08a97
Author: Thierry Volpiatto <address@hidden>
Commit: Thierry Volpiatto <address@hidden>
* smtpmail-async.el (async-smtpmail-before-send-hook): New hook that run on
child emacs before sending.
---
smtpmail-async.el | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/smtpmail-async.el b/smtpmail-async.el
index 76a9fb5..c5a9fac 100644
--- a/smtpmail-async.el
+++ b/smtpmail-async.el
@@ -41,6 +41,8 @@
(require 'async)
(require 'smtpmail)
+(defvar async-smtpmail-before-send-hook nil)
+
(defun async-smtpmail-send-it ()
(let ((to (message-field-value "To"))
(buf-content (buffer-substring-no-properties
@@ -54,8 +56,9 @@
(set-buffer-multibyte nil)
;; Pass in the variable environment for smtpmail
,(async-inject-variables
- "\\`\\(smtpmail\\|\\(user-\\)?mail\\)-"
+ "\\`\\(smtpmail\\|async-smtpmail\\|\\(user-\\)?mail\\)-"
nil
"\\`\\(mail-header-format-function\\|smtpmail-address-buffer\\|mail-mode-abbrev-table\\)")
+ (run-hooks 'async-smtpmail-before-send-hook)
(smtpmail-send-it)))
`(lambda (&optional ignore)
(message "Delivering message to %s...done" ,to)))))
- [elpa] master 3a23aa1 095/187: * dired-async.el (helm-async-be-async): Move it as obsolete variable alias to helm., (continued)
- [elpa] master 3a23aa1 095/187: * dired-async.el (helm-async-be-async): Move it as obsolete variable alias to helm., Michael Albinus, 2015/12/30
- [elpa] master eaa0ec1 098/187: * smtpmail-async.el: Fix encoding problems (#27), Michael Albinus, 2015/12/30
- [elpa] master 05c9861 103/187: * smtpmail-async.el (async-smtpmail-before-send-hook): Add docstring., Michael Albinus, 2015/12/30
- [elpa] master b2b4bd6 107/187: * async-bytecomp.el: New file., Michael Albinus, 2015/12/30
- [elpa] master b67254c 096/187: * smtpmail-async.el (async-smtpmail-send-it): Eval content of buffer outside temp buffer.(attempt to fix issue in mu4e), Michael Albinus, 2015/12/30
- [elpa] master 1c54de3 091/187: * README.md: Update., Michael Albinus, 2015/12/30
- [elpa] master f48fe54 099/187: * smtpmail-async.el: Try to catch 'done to not exit when smtpmail-via-smtp is recalled (#22)., Michael Albinus, 2015/12/30
- [elpa] master 85cedab 085/187: * async-file.el: Removed., Michael Albinus, 2015/12/30
- [elpa] master addec5e 102/187: * smtpmail-async.el (async-smtpmail-send-it): Inject the value of auth-sources (#22), Michael Albinus, 2015/12/30
- [elpa] master cca41ed 106/187: * README.md: Fix typo., Michael Albinus, 2015/12/30
- [elpa] master fe319a7 101/187: * smtpmail-async.el (async-smtpmail-before-send-hook): New hook that run on child emacs before sending.,
Michael Albinus <=
- [elpa] master b962cbf 105/187: Merge pull request #32 from Trevoke/patch-1, Michael Albinus, 2015/12/30
- [elpa] master ed0202f 109/187: fix #33 async-start evals (symbol-file 'async-batch-invoke 'defun) at compile time, Michael Albinus, 2015/12/30
- [elpa] master f81ff95 108/187: Remove version number in all files., Michael Albinus, 2015/12/30
- [elpa] master 79e6110 113/187: Add comments, no--code-change., Michael Albinus, 2015/12/30
- [elpa] master 9f038b4 112/187: * smtpmail-async.el: require message to shutup byte compiler., Michael Albinus, 2015/12/30
- [elpa] master 73d8920 100/187: * smtpmail-async.el: Revert previous change (catch)., Michael Albinus, 2015/12/30
- [elpa] master c52a60f 115/187: Merge pull request #34 from michael-heerdegen/fix-33, Michael Albinus, 2015/12/30
- [elpa] master 1c35023 114/187: * async.el: Fix comment., Michael Albinus, 2015/12/30
- [elpa] master 4db2273 111/187: * async-bytecomp.el: Revert previous change in package--compile., Michael Albinus, 2015/12/30
- [elpa] master a6d9541 117/187: * async-bytecomp.el: Use only load., Michael Albinus, 2015/12/30