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/operator-fetch.cc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'src/operator-fetch.cc') diff --git a/src/operator-fetch.cc b/src/operator-fetch.cc index 4fcdf1a..d0e2e6a 100644 --- a/src/operator-fetch.cc +++ b/src/operator-fetch.cc @@ -257,7 +257,9 @@ Operator::ProcessResult FetchOperator::process(Depot &depot, Request &request) } else { unsigned int size; if ((fatt.sectiontext == "" || fatt.sectiontext == "TEXT") && fatt.section == "") - size = message.getDocSize(fatt.offsetstart, fatt.offsetlength, fatt.sectiontext == "TEXT"); + size = message.getDocSize(fatt.offsetstart, + fatt.offsetlength, + fatt.sectiontext == "TEXT"); else size = message.getBodySize(fatt.section, fatt.offsetstart, fatt.offsetlength); @@ -271,7 +273,8 @@ Operator::ProcessResult FetchOperator::process(Depot &depot, Request &request) // set the \Seen flag if .PEEK is not used. if (!peek) { - if ((message.getStdFlags() & Message::F_SEEN) == 0) message.setStdFlag(Message::F_SEEN); + if ((message.getStdFlags() & Message::F_SEEN) == 0) + message.setStdFlag(Message::F_SEEN); } } else if (fatt.type == "RFC822") { bincClient << prefix; @@ -283,7 +286,8 @@ Operator::ProcessResult FetchOperator::process(Depot &depot, Request &request) message.printDoc(fatt.offsetstart, fatt.offsetlength); // set the \Seen flag - if ((message.getStdFlags() & Message::F_SEEN) == 0) message.setStdFlag(Message::F_SEEN); + if ((message.getStdFlags() & Message::F_SEEN) == 0) + message.setStdFlag(Message::F_SEEN); } else if (fatt.type == "RFC822.HEADER") { bincClient << prefix; @@ -291,7 +295,11 @@ Operator::ProcessResult FetchOperator::process(Depot &depot, Request &request) bincClient << fatt.toString(); vector v; string dummy; - unsigned int size = message.getHeaderSize("", v, true, fatt.offsetstart, fatt.offsetlength); + unsigned int size = message.getHeaderSize("", + v, + true, + fatt.offsetstart, + fatt.offsetlength); bincClient << " {" << size << "}\r\n"; message.printHeader("", v, true, fatt.offsetstart, fatt.offsetlength); } else if (fatt.type == "RFC822.TEXT") { @@ -319,7 +327,8 @@ Operator::ProcessResult FetchOperator::process(Depot &depot, Request &request) message.printBody(fatt.section, fatt.offsetstart, fatt.offsetlength); // set the \Seen flag - if ((message.getStdFlags() & Message::F_SEEN) == 0) message.setStdFlag(Message::F_SEEN); + if ((message.getStdFlags() & Message::F_SEEN) == 0) + message.setStdFlag(Message::F_SEEN); } else { // Unrecognized fetch_att, this is stopped by the parser -- cgit v1.2.3