astroidmail / astroid

A graphical threads-with-tags style, lightweight and fast, e-mail client for Notmuch
http://astroidmail.github.io
Other
613 stars 65 forks source link

Can't use sublime text 3 as editor #703

Closed shmalebx9 closed 3 years ago

shmalebx9 commented 3 years ago

Astroid crashes once I try to send the message created with sublime. Astroid properly launches sublime and I am able to edit the email but upon attempting to send astroid will crash. I've attached the log and my config.

[16:26:45] [0x00007fa76d6cd180] [M] [info] render: loading html..
[16:26:46] [0x00007fa76d6cd180] [M] [info] pc: adding /usr/lib/astroid/web-extensions to web extension search path.
[16:26:46] [0x00007fa76d6cd180] [M] [warning] pc: id: 1
[16:26:46] [0x00007fa765d5f700] [M] [info] db: closing db.
[16:26:46] [0x00007fa76d6cd180] [M] [info] msg: loading message from file (mid supplied): /home/caleb/.cache/astroid/1604705205.cuv8d39doj.astroid@caleb.none
[16:26:46] [0x00007fa76d6cd180] [M] [warning] charset: not defined.
[16:26:46] [0x00007fa76d6cd180] [M] [info] msg: loading message from GMimeStream.
[16:26:46] [0x00007fa76d6cd180] [M] [info] db: open db read-only, waiting for lock..
[16:26:46] [0x00007fa76d6cd180] [M] [info] db: closing db.
[16:26:46] [0x00007fa76d6cd180] [M] [warning] pc: got extension connect
[2020-11-06 16:26:46.482194] [0x00007f8e69099700] [debug]   reader thread: started.
[2020-11-06 16:26:46.482216] [0x00007f8e69099700] [debug]   reader waiting..
[2020-11-06 16:26:46.612872] [0x00007f8ebaa96f40] [debug]   page created.
[2020-11-06 16:26:46.614605] [0x00007f8ebaa96f40] [debug]   request: /home/caleb/.config/astroid/vplfn3nr5tvnqfh1u9jw8mjdjgno79vv..
[2020-11-06 16:26:46.614629] [0x00007f8ebaa96f40] [debug]   request: allow.
[2020-11-06 16:26:46.621991] [0x00007f8ebaa96f40] [debug]   request: about:srcdoc..
[2020-11-06 16:26:46.622033] [0x00007f8ebaa96f40] [debug]   request: allow.
[2020-11-06 16:26:46.624887] [0x00007f8e69099700] [debug]   reader waiting..
[16:26:46] [0x00007fa76d6cd180] [M] [info] chunk: contents: loaded 0 bytes in 0.019 ms.
[16:26:46] [0x00007fa76d6cd180] [M] [info] chunk: file size: 0 (time used to calculate: 0.059 s.)
[16:26:46] [0x00007fa76d6cd180] [M] [info] tv: ready emitted.
[16:26:49] [0x00007fa76d6cd180] [M] [info] poll: done (time: 4.76018 s) (status: 0)
[16:26:49] [0x00007fa76d6cd180] [M] [info] poll: emitted poll state: false
[16:26:49] [0x00007fa76d6cd180] [M] [info] db: open db read-only, waiting for lock..
[16:26:49] [0x00007fa76d6cd180] [M] [info] db: closing db.
[16:27:00] [0x00007fa76d6cd180] [M] [info] msg: loading message from file (mid supplied): /home/caleb/.cache/astroid/1604705205.cuv8d39doj.astroid@caleb.none
[16:27:00] [0x00007fa76d6cd180] [M] [warning] charset: not defined.
[16:27:00] [0x00007fa76d6cd180] [M] [info] msg: loading message from GMimeStream.
[16:27:00] [0x00007fa76d6cd180] [M] [info] chunk: contents: loaded 8 bytes in 0.082 ms.
[16:27:00] [0x00007fa76d6cd180] [M] [info] chunk: file size: 8 (time used to calculate: 0.36 s.)
[16:27:00] [0x00007fa76d6cd180] [M] [info] tv: ready emitted.
[16:27:01] [0x00007fa76d6cd180] [M] [info] msg: loading message from file (mid supplied): /home/caleb/.cache/astroid/1604705205.cuv8d39doj.astroid@caleb.none
[16:27:01] [0x00007fa76d6cd180] [M] [warning] charset: not defined.
[16:27:01] [0x00007fa76d6cd180] [M] [info] msg: loading message from GMimeStream.
[16:27:01] [0x00007fa76d6cd180] [M] [info] chunk: contents: loaded 8 bytes in 0.257 ms.
[16:27:01] [0x00007fa76d6cd180] [M] [info] chunk: file size: 8 (time used to calculate: 0.41 s.)
[16:27:01] [0x00007fa76d6cd180] [M] [info] tv: ready emitted.
[16:27:02] [0x00007fa76d6cd180] [M] [info] mw: Really send message?
[16:27:03] [0x00007fa76d6cd180] [M] [info] mw: yes-no: got yes!
[16:27:03] [0x00007fa76d6cd180] [M] [info] em: sending message..
[16:27:03] [0x00007fa76d6cd180] [M] [info] msg: loading message from file (mid supplied): /home/caleb/.cache/astroid/1604705205.cuv8d39doj.astroid@caleb.none
[16:27:03] [0x00007fa76d6cd180] [M] [warning] charset: not defined.
[16:27:03] [0x00007fa76d6cd180] [M] [info] cm: sending (threaded)..
[16:27:05] [0x00007fa7589fd700] [M] [warning] cm: sending message from account: Caleb La Grange <clagrang@ualberta.ca>
terminate called after throwing an instance of 'Glib::ShellError'
[1]    23462 abort      astroid

[My Config]

    "editor": {
        "charset": "utf-8",
        "cmd": "\/usr\/bin\/subl3 -w %1",
        "external_editor": "true",
        "save_draft_on_force_quit": "true",
        "attachment_words": "attach",
        "attachment_directory": "~",
        "markdown_processor": "cmark",
        "markdown_on": "false"
    },
gauteh commented 3 years ago

Looks like the error might be in your sendmail / msmtp command. You could also enable debug logging to get a bit more information, but check your account settings. The error in the log happens somewhen when launching the sendmail program.

shmalebx9 commented 3 years ago

Looks like the error might be in your sendmail / msmtp command. You could also enable debug logging to get a bit more information, but check your account settings. The error in the log happens somewhen when launching the sendmail program.

I did notice that the error occurs no matter which editor I use. Here is my account config:


    "accounts": {
        "school": {
            "name": "Caleb La Grange",
            "email": "clagrang@ualberta.ca",
            "gpgkey": "",
            "always_gpg_sign": "false",
            "accounts.school.sendmail": "msmtp --read-envelope-from -i -t",
            "default": "true",
            "save_sent": "true",
            "save_sent_to": "\/home\/root\/Mail\/sent\/cur\/",
            "additional_sent_tags": "",
            "save_drafts_to": "\/home\/root\/Mail\/drafts\/",
            "signature_separate": "false",
            "signature_file": "",
            "signature_file_markdown": "",
            "signature_default_on": "true",
            "signature_attach": "false",
            "select_query": ""
        }

I feel like I may be misunderstanding the "id" portion of the account.sendmail identifier.

gauteh commented 3 years ago

The identifier here:

"accounts.school.sendmail": "msmtp --read-envelope-from -i -t",

should just be "sendmail":

"sendmail": "msmtp --read-envelope-from -i -t",

On Sat, Nov 7, 2020 at 9:26 AM shmalebx9 notifications@github.com wrote:

Looks like the error might be in your sendmail / msmtp command. You could also enable debug logging to get a bit more information, but check your account settings. The error in the log happens somewhen when launching the sendmail program.

I did notice that the error occurs no matter which editor I use. Here is my account config:

"accounts": {
    "school": {
        "name": "Caleb La Grange",
        "email": "clagrang@ualberta.ca",
        "gpgkey": "",
        "always_gpg_sign": "false",
        "accounts.school.sendmail": "msmtp --read-envelope-from -i -t",
        "default": "true",
        "save_sent": "true",
        "save_sent_to": "\/home\/root\/Mail\/sent\/cur\/",
        "additional_sent_tags": "",
        "save_drafts_to": "\/home\/root\/Mail\/drafts\/",
        "signature_separate": "false",
        "signature_file": "",
        "signature_file_markdown": "",
        "signature_default_on": "true",
        "signature_attach": "false",
        "select_query": ""
    }

I feel like I may be misunderstanding the "id" portion of the account.sendmail identifier.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/astroidmail/astroid/issues/703#issuecomment-723417787, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAN363C6N2FR45CV73NEC3SOUAC5ANCNFSM4TNH7H6Q .

shmalebx9 commented 3 years ago

Thanks! That worked. Feeling kinda dumb.

gauteh commented 3 years ago

:) happy it worked out

On Sat, Nov 7, 2020 at 9:33 AM shmalebx9 notifications@github.com wrote:

Thanks! That worked. Feeling kinda dumb.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/astroidmail/astroid/issues/703#issuecomment-723418427, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAN367BUROS5TEP3TL2DSLSOUA6LANCNFSM4TNH7H6Q .