Rev 3413 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3413 | Rev 4139 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | //Leency & SoUrcerer, LGPL |
1 | //Leency & SoUrcerer, LGPL |
Line 2... | Line 2... | ||
2 | 2 | ||
3 | void ParceMail() |
3 | void ParseMail() |
4 | { |
4 | { |
5 | dword line_off, new_buf; |
5 | dword line_off, new_buf; |
Line 6... | Line 6... | ||
6 | char tline[256]; |
6 | char tline[256]; |
7 | 7 | ||
- | 8 | if ( mailpointer-mailbuffer>9 ) if (strncmp(mailpointer-5,"\n.\n",5)==0) // note that c-- assembles "\n.\n" to 0x0d, 0x0a, 0x2e, 0x0d, 0x0a |
|
- | 9 | { |
|
- | 10 | debug("End of mail detected"); |
|
- | 11 | mailpointer = mailpointer - 5; |
|
8 | if ( mailpointer-mailbuffer>9 ) if ( (strncmp(mailpointer-5,"\r\n.\r\n",5)==0) || (strncmp(mailpointer-3,"\n.\n",3)==0) ) |
12 | *mailpointer='\0'; |
9 | { |
13 | |
10 | if (strstr(mailbuffer, "+OK")!=mailbuffer) |
14 | if (strstr(mailbuffer, "+OK")!=mailbuffer) |
11 | { |
15 | { |
12 | aim = GET_ANSWER_RETR; |
16 | aim = GET_ANSWER_RETR; |