I recently started to move my workflow over to emacs and was able to configure my email with mu4e with emacs, but offlineimap, which controls updating my email, function is not working when I invoke it.
I use zsh as my shell. Would that be the reason it is not working, because when I run it in my zsh shell it works? Do I need to use bash and how would I change it?
When running:mu index --maildir=~/Maildir
I get the error mu: mu_store_new_writable: xapian error 'Unable to get write lock on /Users/nathan/.mu/xapian: already locked' (11)
Here is my emacs configuration:
(add-to-list 'load-path "/usr/local/Cellar/mu/HEAD-b4cc67d/share/emacs/site-lisp/mu/mu4e")
(require 'mu4e)
(setq mu4e-mu-binary "/usr/local/Cellar/mu/HEAD-b4cc67d/bin/mu")
;; use mu4e for e-mail in emacs
(setq mail-user-agent 'mu4e-user-agent)
;; default
;; (setq mu4e-maildir "~/Maildir")
(setq mu4e-drafts-folder "/Drafts")
(setq mu4e-sent-folder "/Sent Mail")
(setq mu4e-trash-folder "/Trash")
;; don't save message to Sent Messages, Lavabit/IMAP takes care of this
(setq mu4e-sent-messages-behavior 'delete)
;; (See the documentation for "mu4e-sent-messages-behavior' if you have
;; setup some handy shortcuts
;; you can quickly switch to your Inbox -- press ''ji''
;; then, when you want archive some messages, move them to
;; the 'All Mail' folder by pressing ''ma''.
(setq mu4e-maildir-shortcuts
'( ("/Inbox" . ?i)
("/Sent Mail" . ?s)
("/Trash" . ?t)
("/All Mail" . ?a)))
;; allow for updating mail using 'U' in the main view:
(setq mu4e-get-mail-command "offlineimap -o" mu4e-update-interval (* 60 5))
;; something about ourselves
(setq
user-mail-address "*******.com"
user-full-name "*********"
mu4e-compose-signature
(concat
"************\n"
"***********\n"))
;; sending mail -- replace USERNAME with your lavabit username
;; also, make sure the gnutls command line utils are installed
;; package 'gnutls-bin' in Debian/Ubuntu
(require 'smtpmail)
(setq message-send-mail-function 'smtpmail-send-it
starttls-use-gnutls t
smtpmail-starttls-credentials '(("smtp.********.com" 587 nil nil))
smtpmail-auth-credentials
'(("smtp.lavabit.com" 587 "************" nil))
smtpmail-default-smtp-server "smtp.**********.com"
smtpmail-smtp-server "smtp.*********.com"
smtpmail-smtp-service 587)
;; don't keep message buffers around
(setq message-kill-buffer-on-exit t)
(setq mu4e-get-mail-command "offlineimap -o" mu4e-update-interval (* 60 5))
. OTOH, the error message seems to imply that offlineimap may not be on your path.zsh:1:command not found: offlineimap