hello all, i was expecting some guide about
configuring disroot email on emacs. alas, there
are none? has anybody successfully configured
and using email on emacs? if yes, please post
config files. does simply providing imap
incoming & outgoing servers is enough?
hello all, i was expecting some guide about
configuring disroot email on emacs. alas, there
are none? has anybody successfully configured
and using email on emacs? if yes, please post
config files. does simply providing imap
incoming & outgoing servers is enough?
Hi! I read Disroot mail with Emacs and my flow is as follows:
getmail: to download mail (pop3)
msmtp: to send messages
mu4e: read mail
But I use mu4e and not gnus…
If it helps, here is my mu4e configuration.
ciao ciao:)
(require 'mu4e)
;; default
(setq mail-user-agent 'mu4e-user-agent)
;; Call mu every 60 minutes to update and index Maildir
(setq mu4e-update-interval 3600)
;; Set format=flowed
;; mu4e sets up visual-line-mode and also fill (M-q) to do the right thing
;; each paragraph is a single long line; at sending, emacs will add the
;; special line continuation characters.
(setq mu4e-compose-format-flowed t)
;; show full addresses in view message (instead of just names)
;; toggle per name with M-RET
(setq mu4e-view-show-addresses 't)
;; give me ISO(ish) format date-time stamps in the header list
(setq mu4e-headers-date-format "%Y-%m-%d %H:%M")
;; customize the reply-quote-string
(setq message-citation-line-format "On %a %d %b %Y at %R, %f wrote:\n")
;; choose to use the formatted string
(setq message-citation-line-function 'message-insert-formatted-citation-line)
;; customize the reply-quote-string
(setq message-citation-line-format "On %a %d %b %Y at %R, %f wrote:\n")
;; choose to use the formatted string
(setq message-citation-line-function 'message-insert-formatted-citation-line);; Spell checking ftw.
(add-hook 'mu4e-compose-mode-hook 'flyspell-mode)
;; View message in browser
(add-to-list 'mu4e-view-actions '("view in browser" . mu4e-action-view-in-browser))
;; path to our Maildir directory
(setq mu4e-maildir "~/Mail")
;; GPG settings
(setq mu4e-decryption-policy 'ask)
(setq mm-sign-option 'guided)
(require 'mml2015)
(require 'epa-file)
(defun encrypt-message (&optional arg)
(interactive "p")
(mml-secure-message-encrypt-pgpmime))
(defun sign-message (&optional arg)
(interactive "p")
(mml-secure-message-sign-pgpmime))
(defun decrypt-message (&optional arg)
(interactive "p")
(epa-decrypt-armor-in-region (point-min) (point-max)))
(defalias 'em 'encrypt-message)
(defalias 'sm 'sign-message)
(defalias 'dm 'decrypt-message)
(setq mu4e-compose-crypto-reply-policy 'sign-and-encrypt)
(setq mml12015-encrypt-to-selt t)
;; Attachment
(setq mu4e-attachment-dir "~/tmp")
;; the list of all of my e-mail addresses
(setq mu4e-user-mail-address-list '(
"l3o@disroot.org"))
(setq mu4e-headers-fields '(
(:human-date . 18)
(:flags . 4)
(:maildir . 22)
(:mailing-list . 16)
(:from-or-to . 22)
(:subject)))
;; Program to get mail.
;; Called when 'U' is pressed in main view.
;; If you get your mail without an explicit command,
;; use "true" for the command (this is the default)
;; when I press U in the main view, or C-c C-u elsewhere,
;; this command is called, followed by the mu indexer
(setq mu4e-get-mail-command "getmail --rcfile disroot")
(setq sendmail-program "/usr/bin/msmtp"
send-mail-function 'smtpmail-send-it
message-sendmail-f-is-evil t
message-sendmail-extra-arguments '("--read-envelope-from")
message-send-mail-function 'message-send-mail-with-sendmail)
;; don't keep message buffers around
(setq message-kill-buffer-on-exit t)
;; Bookmarks for common searches that I use.
(setq mu4e-bookmarks '(
("flag:unread" "Unread messages" ?u)
("date:today..now" "Today's messages" ?t)
("date:7d..now" "Last 7 days" ?w)
("flag:flagged" "Flagged" ?f)
("maildir:/disroot/DISROOT_inbox and date:7d..now" "Inbox DISROOT last 7 days" ?d)
("maildir:/trash" "TRASH archive" ?n)
))
;; mu4e-context. One for each mail personality
(setq mu4e-contexts
`(
,(make-mu4e-context
:name "disroot"
:enter-func (lambda () (mu4e-message "Enter Disroot context"))
:leave-func (lambda () (mu4e-message "Leave Disroot context"))
;; Match based on the contact-fields of the message (that we are replying to)
:match-func (lambda (msg)
(when msg
(mu4e-message-contact-field-matches msg
:to "l3o@disroot.org")))
:vars '( (user-mail-address . "l3o@disroot.org" )
(user-full-name . "l3o" )
(mu4e-sent-folder . "/disroot/DISROOT_sent")
(mu4e-drafts-folder . "/disroot/DISROOT_postponed")
(mu4e-trash-folder . "/trash")
(mu4e-refile-folder . "/trash")
(mu4e-compose-signature . (concat "l3o\n"))
(mu4e-maildir-shortcuts . ( ("/disroot/DISROOT_inbox" . ?i)
("/disroot/DISROOT_sent" . ?s)
("/trash" . ?t)
("/disroot/DISROOT_postponed" . ?d)
))))
))
;; start with the first (default) context;
(setq mu4e-context-policy 'pick-first)
;;store org-mode links to messages
(require 'org-mu4e)
;;store link to message if in header view, not to header query
(setq org-mu4e-link-query-in-headers-mode nil)
(define-key mu4e-headers-mode-map (kbd "C-c c") 'mu4e-org-store-and-capture)
(define-key mu4e-view-mode-map (kbd "C-c c") 'mu4e-org-store-and-capture)