diff options
Diffstat (limited to 'tests/test_mailto.c')
-rw-r--r-- | tests/test_mailto.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/test_mailto.c b/tests/test_mailto.c deleted file mode 100644 index 3c54e27..0000000 --- a/tests/test_mailto.c +++ /dev/null @@ -1,28 +0,0 @@ -#include <stdio.h> -#include <stdlib.h> - -#include <dapi/comm.h> -#include <dapi/calls.h> - -int main() - { - int ok; - stringarr attachments; - char* attachments_data[] = { "/tmp/mailtotest.txt" }; - DapiConnection* conn = dapi_connectAndInit(); - if( conn == NULL ) - { - fprintf( stderr, "Cannot connect!\n" ); - return 1; - } - if(system( "touch /tmp/mailtotest.txt" )) - return perror("system()"), 1; - attachments.count = 1; - attachments.data = attachments_data; - ok = dapi_MailTo_Window( conn, "Test mail", "Hi,\n\nthis is a test mail.\n", - "l.lunak@suse.cz, l.lunak@kde.org", NULL, "portland@lists.freedesktop.org", attachments, - 0 ); /* no mainwindow */ - printf( "Result: %s\n", ok == 1 ? "Ok" : "Failed" ); - dapi_close( conn ); - return 0; - } |