I'm trying to sync my emails from emacs using mu4e but I get the following error message:

Process mu4e-test exited abnormally with code 127

/bin/bash: mbsync: command not found

If I set mbsync with its full path in my init.el file:

(setq mu4e-get-mail-command "/usr/local/bin/mbsync -a")

Then I get the following error:

sh: gpg: command not found

Skipping account, PassCmd produced no output

I also tried setting the gpg path with: (setq epg-gpg-program "/usr/local/bin/gpg") and appending the global path with (setq exec-path (append exec-path '("/usr/local/bin/"))) but none worked.

Any ideas?

  • For mu4e-get-mail-command: don't you need to also specify the mbsync config file, usually saved in .emacs.d? E.g., (setq mu4e-get-mail-command "mbsync -c ~/.emacs.d/.mbsyncrc yourchannel"), or something like that.
    – Philopolis
    May 7 at 18:20
  • no, it is reading correctly from ~/.mbsyncrc May 7 at 18:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.