Discussion:
[bug-mailutils] Guile: unbound variable mu-mailer
Jean Louis
2016-12-15 08:47:06 UTC
Permalink
Hello,

This is not really a bug, maybe it is.

Now I am exploring Guile functions, as I wish to be able to send
emails programmatically, and save them into the corresponding
folders. This may help me so much in relations with the clients.

1) I am trying to set From field, would this be correct?

(mu-message-set-header msg "From" "***@example.com" #t)



2) How do I set or configure: mu-username->email in the system?



3) If I review the msg object:
$25 = #<message "***@protected.rcdrun.com" "Thu Dec 15 08:23" 3 56 >

then I can see there is missing time zone, it should be there, just
like other emails.


4) When using:

(define msg (mu-message-create )
(mu-message-send msg)

I get problem:

ERROR: In procedure mu-message-send:
ERROR: In procedure module-lookup: Unbound variable: mu-mailer

so, how to set the mu-mailer?


Jean Louis
Sergey Poznyakoff
2016-12-15 10:06:52 UTC
Permalink
Post by Jean Louis
This is not really a bug, maybe it is.
1) I am trying to set From field, would this be correct?
Yes,
Post by Jean Louis
2) How do I set or configure: mu-username->email in the system?
mu-username->email is a function, how do you want to "configure" it?
Post by Jean Louis
then I can see there is missing time zone, it should be there, just
It should not. See my previous mail.
Post by Jean Louis
(mu-message-send msg)
ERROR: In procedure module-lookup: Unbound variable: mu-mailer
so, how to set the mu-mailer?
Looks like a bug: the variable was not exported. Please add the
following to the end of your mailutils.scm file:

(export mu-mailer)

Also, make sure to call (mu-register-format) prior to sending.
See its docstring for more info.

Regards,
Sergey
Jean Louis
2016-12-15 11:41:33 UTC
Permalink
Hello,

Thank you, I will export mu-mailer,
Post by Sergey Poznyakoff
Yes,
thank you, I will try that, as I was thinking maybe "From:" but "From"
is then to be tried again.
Post by Sergey Poznyakoff
Post by Jean Louis
2) How do I set or configure: mu-username->email in the system?
mu-username->email is a function, how do you want to "configure" it?
I was just thinking to the email address in the system, the function
is asking system for email address, and maybe there is a way to tell
the system what is the email address, so that function can give
different one. I would not like this system email address being held
or kept in the message that I am sending.
Post by Sergey Poznyakoff
Post by Jean Louis
then I can see there is missing time zone, it should be there, just
It should not. See my previous mail.
Thank you, that is clear fully, I have understand it.
Post by Sergey Poznyakoff
Post by Jean Louis
(mu-message-send msg)
ERROR: In procedure module-lookup: Unbound variable: mu-mailer
so, how to set the mu-mailer?
Looks like a bug: the variable was not exported. Please add the
(export mu-mailer)
Also, make sure to call (mu-register-format) prior to sending.
See its docstring for more info.
Thank you, will do that in the next attempt.

Jean Louis

Loading...