summaryrefslogtreecommitdiff
path: root/noncore/net/mail/libmailwrapper/mailwrapper.cpp
Unidiff
Diffstat (limited to 'noncore/net/mail/libmailwrapper/mailwrapper.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/mailwrapper.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/noncore/net/mail/libmailwrapper/mailwrapper.cpp b/noncore/net/mail/libmailwrapper/mailwrapper.cpp
index 13a3fd9..ea9e7b2 100644
--- a/noncore/net/mail/libmailwrapper/mailwrapper.cpp
+++ b/noncore/net/mail/libmailwrapper/mailwrapper.cpp
@@ -1,33 +1,31 @@
1#include <qfileinfo.h>
2#include <stdlib.h> 1#include <stdlib.h>
3#include <sys/stat.h> 2#include <sys/stat.h>
4#include <sys/types.h> 3#include <sys/types.h>
5#include <unistd.h> 4#include <unistd.h>
6#include <fcntl.h> 5#include <fcntl.h>
7#include <string.h> 6#include <string.h>
8#include <qdir.h> 7#include <qdir.h>
9#include <qtextstream.h>
10 8
11#include "mailwrapper.h" 9#include "mailwrapper.h"
12#include "logindialog.h" 10#include "logindialog.h"
13//#include "mail.h" 11//#include "mail.h"
14#include "defines.h" 12#include "defines.h"
15 13
16Attachment::Attachment( DocLnk lnk ) 14Attachment::Attachment( DocLnk lnk )
17{ 15{
18 doc = lnk; 16 doc = lnk;
19 size = QFileInfo( doc.file() ).size(); 17 size = QFileInfo( doc.file() ).size();
20} 18}
21 19
22Folder::Folder(const QString&tmp_name ) 20Folder::Folder(const QString&tmp_name )
23{ 21{
24 name = tmp_name; 22 name = tmp_name;
25 nameDisplay = name; 23 nameDisplay = name;
26 24
27 for ( int pos = nameDisplay.find( '&' ); pos != -1; 25 for ( int pos = nameDisplay.find( '&' ); pos != -1;
28 pos = nameDisplay.find( '&' ) ) { 26 pos = nameDisplay.find( '&' ) ) {
29 int end = nameDisplay.find( '-' ); 27 int end = nameDisplay.find( '-' );
30 if ( end == -1 || end <= pos ) break; 28 if ( end == -1 || end <= pos ) break;
31 QString str64 = nameDisplay.mid( pos + 1, end - pos - 1 ); 29 QString str64 = nameDisplay.mid( pos + 1, end - pos - 1 );
32 // TODO: do real base64 decoding here ! 30 // TODO: do real base64 decoding here !
33 if ( str64.compare( "APw" ) == 0 ) { 31 if ( str64.compare( "APw" ) == 0 ) {