Update of /cvsroot/mahogany/M/src/mail
In directory usw-pr-cvs1:/tmp/cvs-serv1310/src/mail

Modified Files:
        SendMessageCC.cpp 
Log Message:
When using X-Face, a '\r' char was left at the end of the header line, giving a blank 
line with my SMTP server.

Index: SendMessageCC.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/mail/SendMessageCC.cpp,v
retrieving revision 1.187
retrieving revision 1.188
diff -b -u -2 -r1.187 -r1.188
--- SendMessageCC.cpp   16 Apr 2002 02:45:53 -0000      1.187
+++ SendMessageCC.cpp   3 May 2002 13:10:59 -0000       1.188
@@ -1001,6 +1001,10 @@
          m_headerValues[h] = strutil_strdup(xface.GetHeaderLine());
          if(strlen(m_headerValues[h]))  // paranoid, I know.
-            ((char*) (m_headerValues[h]))[strlen(m_headerValues[h])-1] =
+         {
+            ASSERT_MSG( ((char*) (m_headerValues[h]))[strlen(m_headerValues[h])-2] == 
+'\r', "String should have been DOSified" );
+            ASSERT_MSG( ((char*) (m_headerValues[h]))[strlen(m_headerValues[h])-1] == 
+'\n', "String should have been DOSified" );
+            ((char*) (m_headerValues[h]))[strlen(m_headerValues[h])-2] =
                '\0'; // cut off \n
+         }
          h++;
       }


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to