diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-10-07 23:30:49 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-10-08 11:35:51 +0200 |
commit | 40ee1fcfb77731f3cd7385882f41630af6aedb33 (patch) | |
tree | 6b13dd75ca9cfbac7daef4f0d5dc2e342ee9ef7d /src/maildirmessage.cc | |
parent | 1978c49bea5b439d993067c055cec47e70db8fd6 (diff) |
reduce line limit to 95
Diffstat (limited to 'src/maildirmessage.cc')
-rw-r--r-- | src/maildirmessage.cc | 16 |
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 §ion, 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 §ion, 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); |