acme.sh icon indicating copy to clipboard operation
acme.sh copied to clipboard

Notify mail envelope and body from tweak

Open honzahommer opened this issue 4 years ago • 5 comments

See related issue Neilpang/acme.sh#2496.

https://github.com/Neilpang/acme.sh/blob/909441bc5770df6da1e986ec9cf9ceb11078f108/notify/mail.sh#L101

If $MAIL_FROM is matching pattern ^.*<\(.*\)>$ (Name <email@address>), then string between angle brackets is used as envelope.

honzahommer avatar Sep 26 '19 14:09 honzahommer

Is this only valid for sendmail ?

Neilpang avatar Oct 05 '19 03:10 Neilpang

Is this only valid for sendmail ?

No. It's a standard: https://tools.ietf.org/html/rfc5322#section-3.4

myelsukov avatar Oct 05 '19 04:10 myelsukov

please make sure you have tested all the supported MAIL_BIN, and then please update the usage here: https://github.com/Neilpang/acme.sh/wiki/notify

Neilpang avatar Oct 05 '19 04:10 Neilpang

Is this only valid for sendmail ?

Actually it is used only with sendmail command.

honzahommer avatar Oct 05 '19 18:10 honzahommer

@honzahommer

Can we support it for all the MAIL_BIN ?

We can have another new env variable, like: MAIN_FROM_NAME it's up to you.

Thanks.

Neilpang avatar Oct 06 '19 03:10 Neilpang