elizagamedev / mujmap

Bridge for synchronizing email and tags between JMAP and notmuch
GNU General Public License v3.0
63 stars 11 forks source link

send mail: error: Found argument '-o' which wasn't expected, or isn't valid in this context #52

Open vbmithr opened 1 year ago

vbmithr commented 1 year ago
error: Found argument '-o' which wasn't expected, or isn't valid in this context

    If you tried to supply `-o` as a value rather than a flag, use `-- -o`

USAGE:
    mujmap [OPTIONS] <SUBCOMMAND>

For more information try --help

Now my emacs seems to want -o ? :(

vbmithr commented 1 year ago

Actually the issue is that emacs (as of 29.1) does not honor parameters message-sendmail-extra-arguments for some reason. Am I the only one to have this issue?

wesnel commented 1 year ago

hi @vbmithr! not sure if this is relevant, but i was just curious: what value are you using for message-send-mail-function?

vbmithr commented 1 year ago

I use

message--default-send-mail-function
        Use the setting of ‘send-mail-function’ if applicable.

i.e. the default setting

vbmithr commented 1 year ago

Apparently, setting this function to a non-default value (send with sendmail) fixes the thing! Thank you very much!

Since it is not a mujmap function, this should be closed, but a note in the README.md must be added about the necessity of setting message-send-mail-function to avoid other people loosing time on this!

wesnel commented 1 year ago

Apparently, setting this function to a non-default value (send with sendmail) fixes the thing! Thank you very much!

Since it is not a mujmap function, this should be closed, but a note in the README.md must be added about the necessity of setting message-send-mail-function to avoid other people loosing time on this!

nice, i'm glad you figured that out! i also had to set mine to message-send-mail-with-sendmail in order to get things working. i have opened a pull request #55 which edits the README to mention this.