summaryrefslogtreecommitdiff
path: root/src/maildirmessage.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/maildirmessage.cc')
-rw-r--r--src/maildirmessage.cc16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/maildirmessage.cc b/src/maildirmessage.cc
index 56a75c4..a2ebb57 100644
--- a/src/maildirmessage.cc
+++ b/src/maildirmessage.cc
@@ -443,7 +443,8 @@ bool MaildirMessage::operator<(const MaildirMessage &a) const
void MaildirMessage::close(void)
{
if (fd != -1) {
- if ((internalFlags & WasWrittenTo) && fsync(fd) != 0 && errno != EINVAL && errno != EROFS) {
+ if ((internalFlags & WasWrittenTo) && fsync(fd) != 0 && errno != EINVAL && errno != EROFS)
+ {
// FIXME: report this error
}
@@ -758,7 +759,9 @@ unsigned int MaildirMessage::getHeaderSize(const std::string &section,
return 0;
}
- const MimePart *part = doc->getPart(section, "", mime ? MimePart::FetchMime : MimePart::FetchHeader);
+ const MimePart *part = doc->getPart(section,
+ "",
+ mime ? MimePart::FetchMime : MimePart::FetchHeader);
if (!part) {
storage = "";
return 0;
@@ -811,7 +814,9 @@ unsigned int MaildirMessage::getBodySize(const std::string &section,
return s < length ? s : length;
}
-bool MaildirMessage::printDoc(unsigned int startOffset, unsigned int length, bool onlyText) const
+bool MaildirMessage::printDoc(unsigned int startOffset,
+ unsigned int length,
+ bool onlyText) const
{
if (!parseFull()) return false;
@@ -967,7 +972,7 @@ MaildirMessageCache::ParseStatus MaildirMessageCache::getStatus(const MaildirMes
void MaildirMessageCache::clear(void)
{
for (std::deque<const MaildirMessage *>::iterator i = parsed.begin(); i != parsed.end(); ++i)
- parsed.clear();
+ parsed.clear();
}
void MaildirMessageCache::removeStatus(const MaildirMessage *m)
@@ -976,7 +981,8 @@ void MaildirMessageCache::removeStatus(const MaildirMessage *m)
statuses.erase(statuses.find(m));
- for (std::deque<const MaildirMessage *>::iterator i = parsed.begin(); i != parsed.end(); ++i) {
+ for (std::deque<const MaildirMessage *>::iterator i = parsed.begin(); i != parsed.end(); ++i)
+ {
if (*i == m) {
const_cast<MaildirMessage *>(*i)->close();
parsed.erase(i);