summaryrefslogtreecommitdiff
path: root/src/lib/email.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-07-01 20:23:19 +0200
committerCarl Hetherington <cth@carlh.net>2025-07-01 20:23:19 +0200
commit197a6288334e13c547d7a74bb47960345a6f4189 (patch)
tree359e682c0a98173bdfa9debd3b44502835e61af2 /src/lib/email.h
parentad27397a050b8ea43dad62b0b85be26166b56b7c (diff)
White space: email.{cc,h}
Diffstat (limited to 'src/lib/email.h')
-rw-r--r--src/lib/email.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/email.h b/src/lib/email.h
index 0ef68379b..4c438594b 100644
--- a/src/lib/email.h
+++ b/src/lib/email.h
@@ -29,23 +29,23 @@ class Email
public:
Email(std::string from, std::vector<std::string> to, std::string subject, std::string body);
- void add_cc (std::string cc);
- void add_bcc (std::string bcc);
+ void add_cc(std::string cc);
+ void add_bcc(std::string bcc);
/** Add attachment, copying the contents of the file into memory */
- void add_attachment (boost::filesystem::path file, std::string name, std::string mime_type);
+ void add_attachment(boost::filesystem::path file, std::string name, std::string mime_type);
- void send (std::string server, int port, EmailProtocol protocol, std::string user = "", std::string password = "");
+ void send(std::string server, int port, EmailProtocol protocol, std::string user = "", std::string password = "");
void send_with_retry(std::string server, int port, EmailProtocol protocol, int retries, std::string user = "", std::string password = "");
- std::string notes () const {
+ std::string notes() const {
return _notes;
}
- size_t get_data (void* ptr, size_t size, size_t nmemb);
- int debug (CURL* curl, curl_infotype type, char* data, size_t size);
+ size_t get_data(void* ptr, size_t size, size_t nmemb);
+ int debug(CURL* curl, curl_infotype type, char* data, size_t size);
/** @return full email, after send() has been called */
- std::string email () const {
+ std::string email() const {
return _email;
}
@@ -53,8 +53,8 @@ public:
private:
- std::string fix (std::string s) const;
- static std::string encode_rfc1342 (std::string subject);
+ std::string fix(std::string s) const;
+ static std::string encode_rfc1342(std::string subject);
std::string _from;
std::vector<std::string> _to;