diff options
author | Timothy Pearson <[email protected]> | 2013-01-27 01:02:02 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-27 01:02:02 -0600 |
commit | de7e5867a65e0a46f1388e3e50bc7eeddd1aecbf (patch) | |
tree | dbb3152c372f8620f9290137d461f3d9f9eba1cb /kioslave/smtp/test_headergeneration.cc | |
parent | 936d3cec490c13f2c5f7dd14f5e364fddaa6da71 (diff) | |
download | tdebase-de7e5867a65e0a46f1388e3e50bc7eeddd1aecbf.tar.gz tdebase-de7e5867a65e0a46f1388e3e50bc7eeddd1aecbf.zip |
Rename a number of libraries and executables to avoid conflicts with KDE4
Diffstat (limited to 'kioslave/smtp/test_headergeneration.cc')
-rw-r--r-- | kioslave/smtp/test_headergeneration.cc | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/kioslave/smtp/test_headergeneration.cc b/kioslave/smtp/test_headergeneration.cc deleted file mode 100644 index 83d999c4a..000000000 --- a/kioslave/smtp/test_headergeneration.cc +++ /dev/null @@ -1,86 +0,0 @@ -#include "request.h" - -//#include <iostream> - -//using std::cout; -//using std::endl; - -int main( int , char ** ) { - static TQCString expected = - "From: [email protected]\r\n" - "Subject: missing subject\r\n" - "To: [email protected],\r\n" - "\[email protected]\r\n" - "Cc: [email protected]\r\n" - "\n" - "From: Marc Mutz <[email protected]>\r\n" - "Subject: missing subject\r\n" - "To: [email protected],\r\n" - "\[email protected]\r\n" - "Cc: [email protected]\r\n" - "\n" - "From: \"Mutz, Marc\" <[email protected]>\r\n" - "Subject: missing subject\r\n" - "To: [email protected],\r\n" - "\[email protected]\r\n" - "Cc: [email protected]\r\n" - "\n" - "From: =?utf-8?b?TWFyYyBNw7Z0eg==?= <[email protected]>\r\n" - "Subject: missing subject\r\n" - "To: [email protected],\r\n" - "\[email protected]\r\n" - "Cc: [email protected]\r\n" - "\n" - "From: [email protected]\r\n" - "Subject: =?utf-8?b?QmzDtmRlcyBTdWJqZWN0?=\r\n" - "To: [email protected],\r\n" - "\[email protected]\r\n" - "Cc: [email protected]\r\n" - "\n" - "From: Marc Mutz <[email protected]>\r\n" - "Subject: =?utf-8?b?QmzDtmRlcyBTdWJqZWN0?=\r\n" - "To: [email protected],\r\n" - "\[email protected]\r\n" - "Cc: [email protected]\r\n" - "\n" - "From: \"Mutz, Marc\" <[email protected]>\r\n" - "Subject: =?utf-8?b?QmzDtmRlcyBTdWJqZWN0?=\r\n" - "To: [email protected],\r\n" - "\[email protected]\r\n" - "Cc: [email protected]\r\n" - "\n" - "From: =?utf-8?b?TWFyYyBNw7Z0eg==?= <[email protected]>\r\n" - "Subject: =?utf-8?b?QmzDtmRlcyBTdWJqZWN0?=\r\n" - "To: [email protected],\r\n" - "\[email protected]\r\n" - "Cc: [email protected]\r\n" - "\n"; - - KioSMTP::Request request; - TQCString result; - - request.setEmitHeaders( true ); - request.setFromAddress( "[email protected]" ); - request.addTo( "[email protected]" ); - request.addTo( "[email protected]" ); - request.addCc( "[email protected]" ); - - result += request.headerFields() + '\n'; - result += request.headerFields( "Marc Mutz" ) + '\n'; - result += request.headerFields( "Mutz, Marc" ) + '\n'; - result += request.headerFields( "Marc M�tz" ) + '\n'; - - request.setSubject( "Bl�des Subject" ); - - result += request.headerFields() + '\n'; - result += request.headerFields( "Marc Mutz" ) + '\n'; - result += request.headerFields( "Mutz, Marc" ) + '\n'; - result += request.headerFields( "Marc M�tz" ) + '\n'; - - //cout << "Result:\n" << result.data() << endl; - - return result == expected ? 0 : 1 ; -} - -#include "request.cc" - |