|
a/src/bincimapmime/mime-parseonlyheader.cc |
|
b/src/bincimapmime/mime-parseonlyheader.cc |
|
... |
|
... |
57 |
mimeSource = new MimeInputSource(fd);
|
57 |
mimeSource = new MimeInputSource(fd);
|
58 |
} else {
|
58 |
} else {
|
59 |
mimeSource->reset();
|
59 |
mimeSource->reset();
|
60 |
}
|
60 |
}
|
61 |
|
61 |
|
|
|
62 |
|
|
|
63 |
headerstartoffsetcrlf = 0;
|
|
|
64 |
headerlength = 0;
|
|
|
65 |
bodystartoffsetcrlf = 0;
|
|
|
66 |
bodylength = 0;
|
|
|
67 |
messagerfc822 = false;
|
|
|
68 |
multipart = false;
|
|
|
69 |
|
|
|
70 |
nlines = 0;
|
|
|
71 |
nbodylines = 0;
|
|
|
72 |
|
|
|
73 |
MimePart::parseOnlyHeader("");
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
void Binc::MimeDocument::parseOnlyHeader(istream& s) const
|
|
|
77 |
{
|
|
|
78 |
if (allIsParsed || headerIsParsed)
|
|
|
79 |
return;
|
|
|
80 |
|
|
|
81 |
headerIsParsed = true;
|
|
|
82 |
|
|
|
83 |
delete mimeSource;
|
|
|
84 |
mimeSource = new MimeInputSourceStream(s);
|
62 |
|
85 |
|
63 |
headerstartoffsetcrlf = 0;
|
86 |
headerstartoffsetcrlf = 0;
|
64 |
headerlength = 0;
|
87 |
headerlength = 0;
|
65 |
bodystartoffsetcrlf = 0;
|
88 |
bodystartoffsetcrlf = 0;
|
66 |
bodylength = 0;
|
89 |
bodylength = 0;
|