Почта, это конечно хорошо, но кто же в двадцать первом веке посылает сообщения открытым текстом?! Поэтому поддержка шифрования в почте вещь совершенно необходимая. Вот и wanderlust можно настроить для работы с gnu-gpg. Базовыя статья по установке, на которую я опирался: <a href="http://box.matto.nl/wanderlustgpg.html">http://box.matto.nl/wanderlustgpg.html</a>

Инсталляция

Первым делом скачиваем библиотеку mailcrypt c <a href="http://sourceforge.net/projects/mailcrypt/files/mailcrypt/3.5.8/mailcrypt-3.5.8.tar.gz/download">http://sourceforge.net/projects/mailcrypt/files/mailcrypt/3.5.8/mailcrypt-3.5.8.tar.gz/download</a>

Распаковываем ее в рабочую директорию, делаем

<source lang="bash"> ./configure make sudo make install </source>

Прописываем в <code>~/.emacs.d/init.el</code>

<source lang="lisp"> ;; MAILCRYPT ;; Commands: ;; M-x mc-encrypt. ;; M-x mc-wl-decrypt-message ;; http://box.matto.nl/wanderlustgpg.html (load-library "mailcrypt") ; provides "mc-setversion" (mc-setversion "gpg") ; for PGP 2.6 (default); also "5.0" and "gpg"

(autoload 'mc-install-write-mode "mailcrypt" nil t) (autoload 'mc-install-read-mode "mailcrypt" nil t) (add-hook 'mail-mode-hook 'mc-install-write-mode)

(require 'mailcrypt) (add-hook 'wl-summary-mode-hook 'mc-install-read-mode) (add-hook 'wl-mail-setup-hook 'mc-install-write-mode)

(defun mc-wl-verify-signature () (interactive) (save-window-excursion (wl-summary-jump-to-current-message) (mc-verify)))

(defun mc-wl-decrypt-message () (interactive) (save-window-excursion (wl-summary-jump-to-current-message) (let ((inhibit-read-only t)) (mc-decrypt))))

(eval-after-load "mailcrypt" '(setq mc-modes-alist (append (quote ((wl-draft-mode (encrypt . mc-encrypt-message) (sign . mc-sign-message)) (wl-summary-mode (decrypt . mc-wl-decrypt-message) (verify . mc-wl-verify-signature)))) mc-modes-alist))) </source>

Использование

Теперь можно использовать команды <code>M-x mc-encrypt</code> и <code>M-x mc-wl-decrypt-message</code> внутри буфера сообщения, для шифрования и расшифровывания сообщений. Для тех, кто захочет послать мне шифровку прилагаю мои публичные ключи:

<source> –—BEGIN PGP PUBLIC KEY BLOCK–— Version: GnuPG v1.4.10 (GNU/Linux)

mQINBEyBOy4BEADaWAyD8dzRGHXc2isU79XyVy1Q/SmQUC8xFmlV3RzrEIQlj+gJ JwoCAqbIiwNRbXVv++sxnlldmZZSvWx9qecrUiL2Paj45fJS0gRWRr7TvHue8Ayg +73BvDaTbFTdv4kthpTAlsyAbdJwmAb6i69ZcS0/eYnlEYIcNkDKGwugJUtEJoUQ JIcqKCh9+LxW2AvHf5QgwB0+woRcJUsiCX39QI6Ryr9sMtDn6ktQFQwxEpReUs1M YEoTIlQZ1ZoDDkPKzhCvyYNlEyPgXBMpfW9yEeRF8eQh0Qho75e+inOnBUvgxy22 iwwAuYMm/LNDkmFebq2Yv51YrOHjhUn88wPyw/yrAEBgWxKYbUMqcmkXAxf8jtxd RLzi/wJRC4SSyOXvf29dJJVIuO2/CCdCQak9HTXguhbZYdB8Xo7fzSFBEJXg5z4E N8GFF4um69vqFPwU+QH0UYJQbxfZWsyu3oBXL4BGEeQLDgkyKh1KKTfAeC6xVdb9 lTKmcrjGiTAtwiiPsPdlfh7hllT7aVDFb5q1eS/i2XB+9FajUZRWn2KjDbf4NK+e gkrJlkF8eivbofTwrbrpa5lcJpxCuQorBplLwogqY5HPedVgIYs2QNuHTylqvv+1 osWFf8OkBG126YWONZrrY4gvwYw7Ds4AoMO/m3spoMJK6ExZV5TQ8yeNMQARAQAB tB9hdmVuZ2VyLWYgPGF2ZW5nZXItZkB5YW5kZXgucnU+iQI4BBMBAgAiBQJMgTsu AhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRDDJJA0rrTCU2RLEADVxekL yBym6y8kndxwsndPfgXHPjDBWLBn/IJ6lAHvKW/Chzs6tfHMv9bLpR6yep718vTp oYFCmCsQZcOqP9JeI7YF2ldUlGwseBVLcvkPi/A83m5LupUYNe5oaU/vAFMjLCEW qO9OO3qjCyfSsyHtngJlwMS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XPY2+g/9GZbncRzaUYBrcu+yBNMWta/CoYkbJAtkpwPDMvGttFxA 6OhPA6nE3sMwHHgruC0xrK44dvfTzA+afGCuAxEKoefx3UfAOj0ES3p1HoeumfDO tjQ7BEUfDLMd/eTkJ5NPf0o5mKYyEO6840rqN1Hnf6G/OKGNdY+sAe71+5uJBBou P/U8oBUbf2ckWEDEcMVWdgb+csCUiahZYYoh4gvCJw9eHxTHXG6BoiwhOccozHFU gs19cqqqqnWxeL+2/EZYS6gEpgXK6VaYrOT8qBkh26uuL76pPM/fpU1KfvkpukRw oHfjrLZIutGziqE94WQhwp1+vvsan/2XPbDjNa1VNUVD0z43Lm2VhwNLhWBmdner 14rtDySP4Ii9+s5j+LPXI6LpMQROsiz6RdKmJoxPzkyeHN6grzbaUOffpOMwm7Gn JUlZVm+qzGbkletOqZpEfRQGbc9T2uZFE2FwnFuZjtfN7dkaMzfCxciOIB1qeEZB dqExVmKTtOoQQ8iC8eLLjAG43SGkdzjJ49qxwJPd1zI5PjO775PlxiZkKvvbxXau UE+5/wxgTb2gx+VaE7FDcouTwUmhBXHPrqthAIjcYn4dtro/EhmUxkbkl7Zc1oSr XEQMJ/2pyvGbb9dkWFj6z7L+tJXDHBAf+ag/3JYtbAY+EerVVj2lc0WNQgTC/DU= =2FJ6 –—END PGP PUBLIC KEY BLOCK–— </source>

И, на всякий пожарный, инструкция по использованию шифрования в gpg на русском: <a href="https://nordrus.org/security/gnupg_manual_linux_w_sendkey.pdf">https://nordrus.org/security/gnupg_manual_linux_w_sendkey.pdf</a>