Giter VIP home page Giter VIP logo

Comments (15)

gauteh avatar gauteh commented on July 19, 2024

What is the configuration line for sendmail in astroid? Also, it seems
that the problem is that there were no receipients, was there a correct
'To:' line in the e-mail?

from astroid.

gauteh avatar gauteh commented on July 19, 2024

Does this happen every time or did it just happen once?

from astroid.

hugoroy avatar hugoroy commented on July 19, 2024

Now that you mention it, it does seem that the 'To:' field wasn't
properly recorded by Astroid even though I put it in the email.
Maybe I had to follow the formalism of John Doe <[email protected]>? I just wrote the email address directly, a space after "To:" without markup.

And, yes, it happened every time.

The configuration is "sendmail": "msmtp -a ampoliros" (same one I use in mutt)

from astroid.

gauteh avatar gauteh commented on July 19, 2024

Hugo Roy writes on January 4, 2016 11:59:

Now that you mention it, it does seem that the 'To:' field wasn't
properly recorded by Astroid even though I put it in the email.

And, yes, it happens every time.

The configuration is

"sendmail": "msmtp -a ampoliros"

You have to give the -t option to msmtp:

"sendmail": "msmtp -a ampoliros -t"

Doesn't the receipients show up in the email-preview? In that case,
do you accidently add a newline in the 'To:' line? Any emails that fail
to parse are usually dropped.

from astroid.

hugoroy avatar hugoroy commented on July 19, 2024

Doesn't the receipients show up in the email-preview?

I can't test right now, but from what I recall, it didn't show up, which is why I think that maybe it doesn't parse it correctly when I just write the plain email address directly, a space after "To:" without markup etc.

from astroid.

hugoroy avatar hugoroy commented on July 19, 2024

OK, so writing "To: Hugo [email protected]" works (I see it in the preview) but not writing "To: [email protected]". That seems a bit too strict for me.

Anyway, sending I still couldn't send this email:

From: Hugo Roy <XXXXXhugoroy.eu>
To: Hugo Roy <XXXXXhugoroy.eu>
Cc: 
Subject: Test envoi de mail

Test envoi de mail

Here's the output:

[debug] (21:32:12): ky: Edit mode, handling: y (edit_message.send)
[info ] (21:32:12): mode: Really send message?
[info ] (21:32:12): mode: yes-no: got yes!
[info ] (21:32:12): em: sending message..
[debug] (21:32:12): em: got tv ready.
[debug] (21:32:12): tv: set info: sending message..
[debug] (21:32:12): em: editor toggle: 0
[debug] (21:32:12): cm: initialize..
[info ] (21:32:12): msg: loading message from file (mid supplied): /home/hugo/.cache/astroid/1451939343-astroid-1-cpstynocfm-4834@xps
[debug] (21:32:12): chunk: content-type: text/plain
[debug] (21:32:12): chunk: preferred.
[debug] (21:32:12): chunk: is part (viewable: 1, attachment: 0) 
[debug] (21:32:12): chunk: body: part
[debug] (21:32:12): chunk: plain text (out html: 0)
[warn ] (21:32:12): charset: not defined.
[debug] (21:32:12): cm: build..
[info ] (21:32:12): cm: wrote tmp file: /tmp/astroid-compose-siATQY
[info ] (21:32:12): msg: loading message from file: /tmp/astroid-compose-siATQY
[debug] (21:32:12): chunk: content-type: text/plain
[debug] (21:32:12): chunk: preferred.
[debug] (21:32:12): chunk: is part (viewable: 1, attachment: 0) 
[info ] (21:32:12): render: loading html..
[info ] (21:32:12): tv: navigation action: 5
[info ] (21:32:12): tv: navigating to: /home/hugo/.config/astroid/3jnjaoey4mjgs0yz2796yfucy2vsrtvn01mx1ab8dbfx6m0hxre0vn53ert6hboe0w4b7z1zijmi0ohwd75w0gnwnm3hdmnwihivwudrx6tbcuoktnm05f1m
[debug] (21:32:12): tv: on_load_changed: 0
[debug] (21:32:12): cm: deinitialized.
[debug] (21:32:12): cm: initialize..
[info ] (21:32:12): msg: loading message from file (mid supplied): /home/hugo/.cache/astroid/1451939343-astroid-1-cpstynocfm-4834@xps
[debug] (21:32:12): chunk: content-type: text/plain
[debug] (21:32:12): chunk: preferred.
[debug] (21:32:12): chunk: is part (viewable: 1, attachment: 0) 
[debug] (21:32:12): chunk: body: part
[debug] (21:32:12): chunk: plain text (out html: 0)
[warn ] (21:32:12): charset: not defined.
[debug] (21:32:12): cm: build..

(astroid:4834): Gtk-CRITICAL **: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed
[info ] (21:32:12): cm: sending (threaded)..
[warn ] (21:32:12): cm: sending message from account: Hugo Roy <XXXXXhugoroy.eu>
msmtp: account default from /home/hugo/.msmtprc: envelope-from address is missing
[ERROR] (21:32:12): cm: could not send message!
[debug] (21:32:12): tv: on_load_changed: 1
[debug] (21:32:12): tv: on_load_changed: 3
[debug] (21:32:12): tv: on_load_changed: 2
[debug] (21:32:12): tv: load finished.
[debug] (21:32:12): tv: mathjax request: approved
[debug] (21:32:12): tv: code prettify request: approved
[debug] (21:32:12): render: html loaded, building messages..
[debug] (21:32:12): tv: adding message: 1451939343-astroid-1-cpstynocfm-4834@xps
[debug] (21:32:12): gravatar: for: XXXXXhugoroy.eu, uri: http://www.gravatar.com/avatar/19188dd148e4bb0163194085abd3d2a8?d=retro&s=48
[info ] (21:32:12): db: open db read-only.
[debug] (21:32:12): db: open time: 0.165 ms.
[info ] (21:32:12): db: closing db.
[debug] (21:32:12): create message part: 27 (siblings: 0) (kids: 0) (attachment: 0) (viewable: 1) (mimetype: text/plain)
[debug] (21:32:12): create body part: 27
[debug] (21:32:12): chunk: body: part
[debug] (21:32:12): chunk: plain text (out html: 1)
[debug] (21:32:12): enc: quoted-printable
[debug] (21:32:12): charset: utf-8
[debug] (21:32:12): mq: quote filter done, time: 0 ms.
[debug] (21:32:12): tv: code filter done, time: 0 ms.
[debug] (21:32:12): tv: make preview..
[debug] (21:32:12): chunk: body: part
[debug] (21:32:12): chunk: plain text (out html: 0)
[debug] (21:32:12): enc: quoted-printable
[debug] (21:32:12): charset: utf-8
[info ] (21:32:12): tv: ready emitted.
[debug] (21:32:12): em: got tv ready.
[debug] (21:32:12): tv: set info: sending message..
[info ] (21:32:12): em: message sending done.
[debug] (21:32:12): cm: deinitialized.
[debug] (21:32:12): em: got tv ready.
[debug] (21:32:12): tv: set warning: message could not be sent!
[debug] (21:32:12): tv: code prettify request: approved
[debug] (21:32:12): tv: request: denied: https://cdn.mathjax.org/mathjax/2.6-latest/jax/input/TeX/config.js?rev=2.6.0
[debug] (21:32:12): tv: request: denied: https://cdn.mathjax.org/mathjax/2.6-latest/jax/output/HTML-CSS/config.js?rev=2.6.0
[debug] (21:32:12): tv: request: denied: https://cdn.mathjax.org/mathjax/2.6-latest/extensions/tex2jax.js?rev=2.6.0
[debug] (21:32:13): ky: Edit mode,  unknown key: 65513
[debug] (21:32:13): ky: Thread View,  unknown key: 65513
[debug] (21:32:13): ky: Edit mode,  unknown key: 65513
[debug] (21:32:13): ky: MainWindow,  unknown key: 65513
[debug] (21:32:14): tv: request: denied: https://cdn.mathjax.org/mathjax/2.6-latest/extensions/MathMenu.js?rev=2.6.0
[debug] (21:32:14): ky: Edit mode,  unknown key: 65513
[debug] (21:32:14): ky: Thread View,  unknown key: 65513
[debug] (21:32:14): ky: Edit mode,  unknown key: 65513
[debug] (21:32:14): ky: MainWindow,  unknown key: 65513
[debug] (21:32:15): tv: request: denied: https://cdn.mathjax.org/mathjax/2.6-latest/extensions/MathZoom.js?rev=2.6.0

from astroid.

gauteh avatar gauteh commented on July 19, 2024

Hugo Roy writes on January 4, 2016 21:32:

OK, so writing "To: Hugo [email protected]" works (I see it in the preview) but not writing "To: [email protected]". That seems a bit too strict for me.

Hm, weird.. those should both work. Do both show up in the preview?

Anyway, sending I still couldn't send this email:

From: Hugo Roy <[email protected]>
To: Hugo Roy <[email protected]>
Cc: 
Subject: Test envoi de mail

Test envoi de mail

Here's the output:

[debug] (21:32:12): ky: Edit mode, handling: y (edit_message.send)
[info ] (21:32:12): mode: Really send message?
[info ] (21:32:12): mode: yes-no: got yes!
[info ] (21:32:12): em: sending message..
[debug] (21:32:12): chunk: body: part

[...]

debug: chunk: plain text (out html: 0)
warn : charset: not defined.
debug: cm: build..

(astroid:4834): Gtk-CRITICAL **: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

this worries me a little.

info : cm: sending (threaded)..
warn : cm: sending message from account: Hugo Roy [email protected]
msmtp: account default from /home/hugo/.msmtprc: envelope-from address is missing
ERROR: cm: could not send message!

I have the line:

under the specfic account in .msmptrc, do you have that?

from astroid.

gauteh avatar gauteh commented on July 19, 2024

Or you can probably use: --read-envelope-from as an argument to msmtp, I also have the line defaults at the top of my .msmtprc.

from astroid.

hugoroy avatar hugoroy commented on July 19, 2024

OK, so writing "To: Hugo [email protected]" works (I see it in the preview) but not writing "To: [email protected]". That seems a bit too strict for me.
Hm, weird.. those should both work. Do both show up in the preview?

No, I meant that only the first will be parsed and be in the preview, not the second.

I have the line: from [email protected] under the specfic account in .msmptrc, do you have that?

No. I haven't specified it (I did specify it for a google apps account I had to use for some time).

Now I added a "from" also at this account and it worked.

from astroid.

gauteh avatar gauteh commented on July 19, 2024

Hm, this seems to work for me:
2016-01-04-215007_1200x800_scrot
2016-01-04-215013_1200x800_scrot

from astroid.

hugoroy avatar hugoroy commented on July 19, 2024

from astroid.

gauteh avatar gauteh commented on July 19, 2024

Hugo Roy writes on January 4, 2016 23:10:

Well, this works for me as well it seems.

Is it possible that it has something to do with save_sent_to? I
noticed that sometimes in the documentation there were references to the
"cur" maildir folder and sometimes not...

Shouldn't really, that was just an example. I am not using any of the
other subdirs, just writing it to the folder: https://github.com/gauteh/astroid/blob/master/src/compose_message.cc#L247 .

Anyway.

So everything somehow works now?

PS: sending this from astroid :)

Yey!!

from astroid.

hugoroy avatar hugoroy commented on July 19, 2024

Well. I can't reproduce now so I guess i's fixed but I will update the wiki.

from astroid.

gauteh avatar gauteh commented on July 19, 2024

Ok! fingers crossed.

(btw: I reverted your latest edit in the wiki, I think it makes more
sense to put the sent email in the cur directory if you follow a maildir
scheme, since it will end up on the correct place on the remote server
in that case).

from astroid.

hugoroy avatar hugoroy commented on July 19, 2024

from astroid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.