diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-10-07 22:33:50 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-10-08 11:35:51 +0200 |
commit | 1978c49bea5b439d993067c055cec47e70db8fd6 (patch) | |
tree | 255caea96a13f95564e6b631be9a4ac55ce33cd9 /src/mime-parseonlyheader.cc | |
parent | 3b1278f5459514a6d6364f068ff97b8a0432057b (diff) |
minor refactoring
Diffstat (limited to 'src/mime-parseonlyheader.cc')
-rw-r--r-- | src/mime-parseonlyheader.cc | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/mime-parseonlyheader.cc b/src/mime-parseonlyheader.cc index 5245aa5..36679b2 100644 --- a/src/mime-parseonlyheader.cc +++ b/src/mime-parseonlyheader.cc @@ -1,9 +1,10 @@ -/** -------------------------------------------------------------------- +/** * @file mime-parseonlyheader.cc * @brief Implementation of main mime parser components * @author Andreas Aardal Hanssen * @date 2002-2005 - * ----------------------------------------------------------------- **/ + */ + #include "convert.h" #include "mime-inputsource.h" #include "mime-utils.h" @@ -20,9 +21,6 @@ #include <stdio.h> #include <string.h> -using namespace ::std; - -//------------------------------------------------------------------------ void Binc::MimeDocument::parseOnlyHeader(int fd) const { if (allIsParsed || headerIsParsed) return; @@ -36,7 +34,6 @@ void Binc::MimeDocument::parseOnlyHeader(int fd) const mimeSource->reset(); } - headerstartoffsetcrlf = 0; headerlength = 0; bodystartoffsetcrlf = 0; @@ -50,11 +47,10 @@ void Binc::MimeDocument::parseOnlyHeader(int fd) const MimePart::parseOnlyHeader(""); } -//------------------------------------------------------------------------ -int Binc::MimePart::parseOnlyHeader(const string &toboundary) const +int Binc::MimePart::parseOnlyHeader(const std::string &toboundary) const { - string name; - string content; + std::string name; + std::string content; char cqueue[4]; memset(cqueue, 0, sizeof(cqueue)); |