On Mon, 9 Feb 2009, Bart Mortelmans wrote:
> Hi,
>
> I've been usingĀ
> tcpdump -X -q -s 2048 host XXX.XXX.XXX.XXX
> to check out what might be going on. I'm rather sure that the second
> linebreak to make the empty line between
> the headers and the body consists only of a LF, no CR. In Hex I'm seeing
> 0d0a0a instead of the expected
> 0d0a0d0a.
>
> I hope this helps you to solve this.
With this debugging you do, it's not hard to solve problems. Thanks.
Try the attached diff, on top of the one I sent you yesterday...
- Davide
diff --git a/SMAILUtils.cpp b/SMAILUtils.cpp
index 6deef5d..71e21e1 100644
--- a/SMAILUtils.cpp
+++ b/SMAILUtils.cpp
@@ -935,13 +935,13 @@ int USmlGetMsgFileSection(SPLF_HANDLE hFSpool, FileSection &FSect)
int USmlWriteMailFile(SPLF_HANDLE hFSpool, FILE *pMsgFile, bool bMBoxFile)
{
SpoolFileData *pSFD = (SpoolFileData *) hFSpool;
+ const char *pszLF = bMBoxFile ? SYS_EOL: "\r\n";
/* Dump message tags */
- if (USmlDumpHeaders(pMsgFile, pSFD->hTagList,
- bMBoxFile ? SYS_EOL: "\r\n") < 0)
+ if (USmlDumpHeaders(pMsgFile, pSFD->hTagList, pszLF) < 0)
return ErrGetErrorCode();
- fputs(SYS_EOL, pMsgFile);
+ fputs(pszLF, pMsgFile);
/* Dump message data */
FILE *pMessFile = fopen(pSFD->szMessFilePath, "rb");
_______________________________________________
xmail mailing list
[email protected]
http://xmailserver.org/mailman/listinfo/xmail