Skip to content

Commit

Permalink
[emacs] Use dovecot shell connection
Browse files Browse the repository at this point in the history
  • Loading branch information
rasendubi committed Apr 3, 2017
1 parent 1239cb0 commit 88bd090
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .emacs.d/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -1234,9 +1234,8 @@ the it takes a second \\[keyboard-quit]] to abort the minibuffer."

(setq gnus-select-method
'(nnimap "Mail"
(nnimap-address "127.0.0.1")
(nnimap-stream network)
(nnimap-authenticator login)))
(nnimap-stream shell)
(nnimap-shell-program "/var/run/current-system/sw/libexec/dovecot/imap")))
(setq gnus-secondary-select-methods nil)

(setq gnus-parameters
Expand Down Expand Up @@ -1279,6 +1278,7 @@ the it takes a second \\[keyboard-quit]] to abort the minibuffer."
:init
(define-key gnus-group-mode-map (kbd "f") 'mbsync)
:config
(setq mbsync-executable "mbsync")
(add-hook 'mbsync-exit-hook 'gnus-group-get-new-news))

(use-package notmuch
Expand Down
3 changes: 3 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,9 @@ Dovecot serves fetched mail to gnus.
enableImap = true;
mailLocation = "maildir:~/Mail:LAYOUT=fs";
};

# dovecot has some helpers in libexec (namely, imap).
environment.pathsToLink = [ "/libexec/dovecot" ];
}
#+end_src

Expand Down
3 changes: 3 additions & 0 deletions nixos/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,9 @@ in
enableImap = true;
mailLocation = "maildir:~/Mail:LAYOUT=fs";
};

# dovecot has some helpers in libexec (namely, imap).
environment.pathsToLink = [ "/libexec/dovecot" ];
}
{
environment.systemPackages = [
Expand Down

0 comments on commit 88bd090

Please sign in to comment.