X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=elisp.git;a=blobdiff_plain;f=vm;h=a25594bd55d6e9797c952e61c2672a44b7829520;hp=b9e7233684d8e1bb202b9967b5b4bd21222f0760;hb=b01b564e2f6c23ab0b5440c7473c724901c600f5;hpb=ccf4141d0aa6fc7f73567e99d07d8e389ec638cf diff --git a/vm b/vm index b9e7233..a25594b 100644 --- a/vm +++ b/vm @@ -351,7 +351,8 @@ attachement from mail." (ff/configure-faces ;; '((ff/mail-header-face :background "#c8c8ff")) - '((ff/mail-header-face :background "#f0f0f0")) + '((ff/mail-header-face :background "#eaf0ff")) + ;; '((ff/mail-header-face :background "#fff0a0")) ;; '((ff/mail-header-face :foreground "blue4")) ) @@ -517,7 +518,6 @@ an attachment") ) s)) - ;; You can not have a line starting with "From:" in a pure text ;; mail. The smtp server would add a leading character to prevent it. @@ -588,6 +588,9 @@ an attachment") ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; If we can, encrypt! +(autoload 'mc-install-write-mode "mailcrypt" nil t) +(autoload 'mc-install-read-mode "mailcrypt" nil t) + (add-hook 'vm-mode-hook 'mc-install-read-mode) (add-hook 'vm-summary-mode-hook 'mc-install-read-mode) (add-hook 'vm-virtual-mode-hook 'mc-install-read-mode) @@ -713,9 +716,24 @@ instance, someone in bbdb named \"Paul Smith\" would generate an alias (let ((link "/tmp/at") (dir (format-time-string "/tmp/at-%Y%m%d-%H%M%S" (current-time)))) (mkdir dir) - (when (file-symlink-p link) (delete-file link)) - (unless (file-exists-p link) (make-symbolic-link dir link 1)) - (vm-pipe-message-to-command (concat "munpack -C " dir)) + + (when (file-symlink-p (concat link "~~")) + (delete-file (concat link "~~"))) + + (when (and (file-symlink-p (concat link "~")) + (not (file-exists-p (concat link "~~")))) + (rename-file (concat link "~") (concat link "~~"))) + + (when (and (file-symlink-p link) + (not (file-exists-p (concat link "~")))) + (file-symlink-p link) (rename-file link (concat link "~"))) + + (unless (file-exists-p link) + (make-symbolic-link dir link 1)) + + ;; (vm-pipe-message-to-command (concat "munpack -C " dir)) + + (vm-pipe-message-to-command (concat "munpack -t -C " dir)) (message "Wrote files to %s" dir) ) @@ -816,3 +834,21 @@ created." (message "No attachments to be saved!")))) (define-key vm-summary-mode-map [(control c) (control s)] 'ff/vm-mime-save-all-attachments) + +;; I do not like relief + +(ff/configure-faces + '( + + ;; (vm-highlight-url :weight 'bold :foreground "#0000f0" :box nil) + (vm-highlight-url :underline nil :foreground "#0000f0" :box nil) + ;; (vm-highlight-url :background "white" :foreground "#0000f0" :box nil) + (vm-highlighted-header :box nil) ;; :weight 'bold :background "white") + + (vm-attachment-button :background "#f0d0d0" :box nil) + (vm-attachment-button-mouse :background "#f0d0d0" :box nil) + (vm-attachment-button-pressed-face :background "#f0d0d0" :box nil) + (vm-mime-button :background "#f0d0d0" :box nil) + (vm-mime-button-mouse :background "#f0d0d0" :box nil) + (vm-mime-button-pressed-face :background "#f0d0d0" :box nil) + ))