1

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?

2
  • 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, 2021 at 18:20
  • no, it is reading correctly from ~/.mbsyncrc May 7, 2021 at 18:35

1 Answer 1

0

It would appear that gpg in "PassCmd" in .mbsyncrc needs to be specified with a full path.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.