summaryrefslogtreecommitdiff
path: root/src/mime-parseonlyheader.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mime-parseonlyheader.cc')
-rw-r--r--src/mime-parseonlyheader.cc16
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));