1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 00:43:14 +02:00

Improve sending email.

- Use consistent line endings as expected by the email spec.
- Don't require admins to escape . at the start of lines.
- Log the reason why sending email fails.
This commit is contained in:
Sadie Powell
2024-03-18 11:57:08 +00:00
parent 9ac4da0489
commit 60083834f8
3 changed files with 14 additions and 10 deletions
+1 -1
View File
@@ -26,6 +26,7 @@ namespace Mail
: public Thread
{
private:
Anope::string error;
Anope::string sendmail_path;
Anope::string send_from;
Anope::string mail_to;
@@ -35,7 +36,6 @@ namespace Mail
Anope::string content_type;
bool dont_quote_addresses;
bool success = false;
public:
/** Construct this message. Once constructed call Thread::Start to launch the mail sending.
* @param sf Config->SendFrom