Update of /cvsroot/mahogany/M/src/modules/viewflt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28332/src/modules/viewflt

Modified Files:
        UUDecode.cpp 
Log Message:
use CR LF, not LF, in the string passed to MimePartVirtual (fixes uudecoding broken by 
previous check in)

Index: UUDecode.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/viewflt/UUDecode.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -b -u -2 -r1.14 -r1.15
--- UUDecode.cpp        13 Jul 2004 23:06:47 -0000      1.14
+++ UUDecode.cpp        14 Jul 2004 16:05:44 -0000      1.15
@@ -277,5 +277,6 @@
 
          // now create the header for the uuencoded part
-         String header(_T("Mime-Version: 1.0\nContent-Disposition: uuencoded\n"));
+         String header(_T("Mime-Version: 1.0\r\n")
+                       _T("Content-Disposition: uuencoded\r\n"));
 
          // get a mimeType from the extention
@@ -294,8 +295,8 @@
          if ( mimeType.empty() )
             mimeType = _T("APPLICATION/OCTET-STREAM");
-         header += _T("Content-Type: ") + mimeType + _T("\n");
+         header += _T("Content-Type: ") + mimeType + _T("\r\n");
 
          MimePartVirtual *
-            mimepart = new MimePartVirtual(header + _T('\n') + decodedFile);
+            mimepart = new MimePartVirtual(header + _T("\r\n") + decodedFile);
          m_msgView->AddVirtualMimePart(mimepart);
          m_msgView->ShowPart(mimepart);



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates

Reply via email to