From 40ee1fcfb77731f3cd7385882f41630af6aedb33 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Sat, 7 Oct 2023 23:30:49 +0200 Subject: reduce line limit to 95 --- src/maildirmessage.cc | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'src/maildirmessage.cc') 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::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::iterator i = parsed.begin(); i != parsed.end(); ++i) { + for (std::deque::iterator i = parsed.begin(); i != parsed.end(); ++i) + { if (*i == m) { const_cast(*i)->close(); parsed.erase(i); -- cgit v1.2.3