summaryrefslogtreecommitdiffhomepage
path: root/custom/jao-custom-email.el
diff options
context:
space:
mode:
Diffstat (limited to 'custom/jao-custom-email.el')
-rw-r--r--custom/jao-custom-email.el14
1 files changed, 8 insertions, 6 deletions
diff --git a/custom/jao-custom-email.el b/custom/jao-custom-email.el
index a3d1a92..b9e4ba9 100644
--- a/custom/jao-custom-email.el
+++ b/custom/jao-custom-email.el
@@ -9,9 +9,9 @@
;;; personal emails and others
(defvar jao-mails)
-(defvar jao-extra-mails)
+(defvar jao-extra-mails nil)
(defvar jao-mails-regexp (regexp-opt jao-mails))
-
+(defvar jao-maildir (jao-d-l "~/Documents/mail" "~/var/mail"))
;;; gnus
(setq gnus-init-file "~/.emacs.d/gnus.el"
gnus-home-directory "~/.emacs.d/gnus"
@@ -21,7 +21,7 @@
message-directory (expand-file-name "Mail" gnus-home-directory)
mail-source-directory (expand-file-name "Mail" gnus-home-directory))
;;; proton
-(use-package jao-proton-utils)
+(jao-when-linux (use-package jao-proton-utils))
;;; message mode
;;;; customization
@@ -180,7 +180,7 @@
(when (require 'randomsig nil t)
(define-key message-mode-map (kbd "C-c s") 'randomsig-replace-sig)
(define-key message-mode-map (kbd "C-c S") 'randomsig-select-sig)
- (setq randomsig-dir (expand-file-name "~/etc/config/emacs"))
+ (setq randomsig-dir gnus-home-directory)
(setq randomsig-files '("signatures.txt"))
;; or (setq randomsig-files (randomsig-search-sigfiles))
;; or (setq randomsig-files 'randomsig-search-sigfiles)
@@ -219,12 +219,14 @@
(defun jao-sendmail-msmtp ()
(setq send-mail-function 'sendmail-send-it
- sendmail-program "/usr/bin/msmtp"
+ sendmail-program (executable-find "msmtp")
mail-specify-envelope-from t
message-sendmail-envelope-from 'header
mail-envelope-from 'header))
-(jao-sendmail-local)
+(jao-d-l
+ (jao-sendmail-msmtp)
+ (jao-sendmail-local))
;;; bbdb
;; (jao-load-path "bbdb/lisp")