summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/argparser.h5
-rw-r--r--src/include/convert.h8
-rw-r--r--src/include/mailbox.h5
-rw-r--r--src/include/mime.h10
-rw-r--r--src/include/operators.h11
-rw-r--r--src/include/session.h7
6 files changed, 36 insertions, 10 deletions
diff --git a/src/include/argparser.h b/src/include/argparser.h
index 0e9b060..c3caf10 100644
--- a/src/include/argparser.h
+++ b/src/include/argparser.h
@@ -50,7 +50,10 @@ namespace Binc {
const std::vector<std::string> &getUnqualifiedArgs(void) const;
private:
- void registerArg(const std::string &arg, const std::string &desc, bool boolean, bool optional);
+ void registerArg(const std::string &arg,
+ const std::string &desc,
+ bool boolean,
+ bool optional);
std::string errString;
std::map<std::string, ArgOpts> reg;
diff --git a/src/include/convert.h b/src/include/convert.h
index 2342a70..cfd4747 100644
--- a/src/include/convert.h
+++ b/src/include/convert.h
@@ -179,7 +179,9 @@ namespace Binc {
if (token != "") dest.push_back(token);
}
- inline void splitAddr(const std::string &s_in, std::vector<std::string> &dest, bool skipempty = true)
+ inline void splitAddr(const std::string &s_in,
+ std::vector<std::string> &dest,
+ bool skipempty = true)
{
static const std::string delim = ",";
std::string token;
@@ -217,8 +219,8 @@ namespace Binc {
{
std::string regex = "^";
for (const char i : s_in) {
- if (i == '.' || i == '[' || i == ']' || i == '{' || i == '}' || i == '(' || i == ')' || i == '^'
- || i == '$' || i == '?' || i == '+' || i == '\\')
+ if (i == '.' || i == '[' || i == ']' || i == '{' || i == '}' || i == '(' || i == ')'
+ || i == '^' || i == '$' || i == '?' || i == '+' || i == '\\')
{
regex += "\\";
regex += i;
diff --git a/src/include/mailbox.h b/src/include/mailbox.h
index d8c9592..6d07282 100644
--- a/src/include/mailbox.h
+++ b/src/include/mailbox.h
@@ -90,7 +90,10 @@ namespace Binc {
virtual unsigned int getUidNext(void) const = 0;
virtual unsigned int getUidValidity(void) const = 0;
- virtual bool getUpdates(bool scan, unsigned int type, PendingUpdates &updates, bool forceScan) = 0;
+ virtual bool getUpdates(bool scan,
+ unsigned int type,
+ PendingUpdates &updates,
+ bool forceScan) = 0;
virtual void updateFlags(void) = 0;
virtual void expungeMailbox(void) = 0;
diff --git a/src/include/mime.h b/src/include/mime.h
index a8050af..ecf02a9 100644
--- a/src/include/mime.h
+++ b/src/include/mime.h
@@ -116,7 +116,10 @@ namespace Binc {
return bodystartoffsetcrlf;
}
- void printBody(int fd, Binc::IODevice &output, unsigned int startoffset, unsigned int length) const;
+ void printBody(int fd,
+ Binc::IODevice &output,
+ unsigned int startoffset,
+ unsigned int length) const;
void printHeader(int fd,
Binc::IODevice &output,
std::vector<std::string> headers,
@@ -124,7 +127,10 @@ namespace Binc {
unsigned int startoffset,
unsigned int length,
std::string &storage) const;
- void printDoc(int fd, Binc::IODevice &output, unsigned int startoffset, unsigned int length) const;
+ void printDoc(int fd,
+ Binc::IODevice &output,
+ unsigned int startoffset,
+ unsigned int length) const;
virtual void clear(void) const;
const MimePart *getPart(const std::string &findpart,
diff --git a/src/include/operators.h b/src/include/operators.h
index 66c7e2b..f6bb987 100644
--- a/src/include/operators.h
+++ b/src/include/operators.h
@@ -198,7 +198,12 @@ namespace Binc {
class ListOperator : public Operator {
protected:
- enum MailboxFlags { DIR_SELECT = 0x01, DIR_MARKED = 0x02, DIR_NOINFERIORS = 0x04, DIR_LEAF = 0x08 };
+ enum MailboxFlags {
+ DIR_SELECT = 0x01,
+ DIR_MARKED = 0x02,
+ DIR_NOINFERIORS = 0x04,
+ DIR_LEAF = 0x08
+ };
std::map<std::string, unsigned int> cache;
time_t cacheTimeout;
@@ -351,7 +356,9 @@ namespace Binc {
S_AND
};
- static bool convertDate(const std::string &date, time_t &t, const std::string &delim = "-");
+ static bool convertDate(const std::string &date,
+ time_t &t,
+ const std::string &delim = "-");
static bool convertDateHeader(const std::string &d_in, time_t &t);
void order(void);
diff --git a/src/include/session.h b/src/include/session.h
index a329183..b02abaa 100644
--- a/src/include/session.h
+++ b/src/include/session.h
@@ -34,7 +34,12 @@ namespace Binc {
bool mailboxchanges;
- enum State { NONAUTHENTICATED = 0x01, AUTHENTICATED = 0x02, SELECTED = 0x04, LOGOUT = 0x00 };
+ enum State {
+ NONAUTHENTICATED = 0x01,
+ AUTHENTICATED = 0x02,
+ SELECTED = 0x04,
+ LOGOUT = 0x00
+ };
CommandLineArgs args;