diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
commit | 78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch) | |
tree | 8512c50df70b8dd80c919e88ade3419207c95956 /plugins/YAMN/mails/mime.cpp | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/YAMN/mails/mime.cpp')
-rw-r--r-- | plugins/YAMN/mails/mime.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/YAMN/mails/mime.cpp b/plugins/YAMN/mails/mime.cpp index d1e1dd7db2..2a66b80e2b 100644 --- a/plugins/YAMN/mails/mime.cpp +++ b/plugins/YAMN/mails/mime.cpp @@ -222,7 +222,7 @@ char *ExtractFromContentType(char *ContentType,char *value) while(*temp!=0 && *temp!=';') temp++; //jump to the end of setting (to the next ;)
temp--;
while(WS(temp)) temp--; //remove whitespaces from the end
- if (*finder=='\"'){ //remove heading and tailing quotes
+ if (*finder=='\"') { //remove heading and tailing quotes
finder++;
if (*temp=='\"') temp--;
}
@@ -540,7 +540,7 @@ void ParseAPart(APartDataType *data) prev1=finder;
while(*finder!=':' && !EOS(finder) && !ENDLINE(finder)) finder++;
- if (ENDLINE(finder)||EOS(finder)){
+ if (ENDLINE(finder)||EOS(finder)) {
// no ":" in the line? here the body begins;
data->body = prev1;
break;
@@ -559,9 +559,9 @@ void ParseAPart(APartDataType *data) while(!ENDLINE(finder) && !EOS(finder)) finder++;
}while(ENDLINEWS(finder));
- if (!_strnicmp(prev1,"Content-type",prev2-prev1)){
+ if (!_strnicmp(prev1,"Content-type",prev2-prev1)) {
data->ContType = prev3;
- } else if (!_strnicmp(prev1,"Content-Transfer-Encoding",prev2-prev1)){
+ } else if (!_strnicmp(prev1,"Content-Transfer-Encoding",prev2-prev1)) {
data->TransEnc = prev3;
}
@@ -622,7 +622,7 @@ WCHAR *ParseMultipartBody(char *src, char *bond) while (ENDLINE(partData[i].Src)) partData[i].Src++;
}
size_t resultSize=0;
- for (i=0;i<numparts;i++){
+ for (i=0;i<numparts;i++) {
ParseAPart(&partData[i]);
if (partData[i].body){
if (partData[i].TransEnc){
@@ -655,7 +655,7 @@ WCHAR *ParseMultipartBody(char *src, char *bond) }
ConvertStringToUnicode(localBody?localBody:partData[i].body,partData[i].CodePage,&partData[i].wBody);
if (localBody) delete[] localBody;
- } else if (partData[i].ContType && !_strnicmp(partData[i].ContType,"multipart/",10)){
+ } else if (partData[i].ContType && !_strnicmp(partData[i].ContType,"multipart/",10)) {
//Multipart in mulitipart recursive? should be SPAM. Ah well
char *bondary=NULL;
if (NULL!=(bondary=ExtractFromContentType(partData[i].ContType,"boundary=")))
@@ -673,7 +673,7 @@ FailBackRaw: }
dest = new WCHAR[resultSize+1];
size_t destpos = 0;
- for (i=0;i<numparts;i++){
+ for (i=0;i<numparts;i++) {
if (i){ // part before first boudary should not have headers
char infoline[104]; size_t linesize = 0;
_snprintf(infoline,100,"%s %d",Translate("Part"),i);
|