summaryrefslogtreecommitdiff
path: root/src/mail.h
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-21 23:09:57 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-21 23:09:57 +0200
commit8350815a8c6987b288551848eda1c678739c8d4a (patch)
tree04ef3c56e10fa8b06768465910d10a57779e8731 /src/mail.h
parentbf9012dad7ef34bbbfb073bc0f37b0161f0496f3 (diff)
downloadbokf-73fe67e0b8fab3b86134ead14a3b77aa607acfcc.tar.gz
bokf-73fe67e0b8fab3b86134ead14a3b77aa607acfcc.zip
invoices: text rows, duplicate and payment link (schema v12); smtp address checksv0.1.62
Diffstat (limited to 'src/mail.h')
-rw-r--r--src/mail.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mail.h b/src/mail.h
index 5efade5..2c5da2f 100644
--- a/src/mail.h
+++ b/src/mail.h
@@ -14,6 +14,10 @@ struct mail_message {
size_t attach_len;
};
+/* True for an address the SMTP client can send to: one @, no spaces or
+ control characters, not empty. */
+int mail_addr_valid(const char *addr);
+
/* Checks the org's SMTP settings (including decrypting the stored
smtp_password) without sending. 0 configured, -1 not configured. */
int mail_config_check(sqlite3 *db, int64_t org_id, char *err, size_t errlen);