summaryrefslogtreecommitdiffstats
path: root/libkmime/tests/test_mdn.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkmime/tests/test_mdn.cpp')
-rw-r--r--libkmime/tests/test_mdn.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/libkmime/tests/test_mdn.cpp b/libkmime/tests/test_mdn.cpp
index fa9290f20..dd1702bb1 100644
--- a/libkmime/tests/test_mdn.cpp
+++ b/libkmime/tests/test_mdn.cpp
@@ -52,31 +52,31 @@ int main( int argc, char * argv[] ) {
long_options, &option_index );
if ( c == -1 ) break;
-#define EQUALS(x) !qstricmp( optarg, x )
+#define ETQUALS(x) !qstricmp( optarg, x )
switch ( c ) {
case 'a': // --action-mode
- if ( EQUALS( "manual-action" ) )
+ if ( ETQUALS( "manual-action" ) )
actionMode = ManualAction;
- else if ( EQUALS( "automatic-action" ) )
+ else if ( ETQUALS( "automatic-action" ) )
actionMode = AutomaticAction;
else
usage( "unknown action mode!" );
break;
case 'd': // --disposition-type
- if ( EQUALS( "displayed" ) )
+ if ( ETQUALS( "displayed" ) )
dispositionType = Displayed;
- else if ( EQUALS( "deleted" ) )
+ else if ( ETQUALS( "deleted" ) )
dispositionType = Deleted;
- else if ( EQUALS( "dispatched" ) )
+ else if ( ETQUALS( "dispatched" ) )
dispositionType = Dispatched;
- else if ( EQUALS( "processed" ) )
+ else if ( ETQUALS( "processed" ) )
dispositionType = Processed;
- else if ( EQUALS( "denied" ) )
+ else if ( ETQUALS( "denied" ) )
dispositionType = Denied;
- else if ( EQUALS( "failed" ) )
+ else if ( ETQUALS( "failed" ) )
dispositionType = Failed;
else
usage( "unknown disposition type!" );
@@ -97,15 +97,15 @@ int main( int argc, char * argv[] ) {
break;
case 'm': // --disposition-modifier
- if ( EQUALS( "error" ) )
+ if ( ETQUALS( "error" ) )
dispositionModifiers << Error;
- else if ( EQUALS( "warning" ) )
+ else if ( ETQUALS( "warning" ) )
dispositionModifiers << Warning;
- else if ( EQUALS( "superseded" ) )
+ else if ( ETQUALS( "superseded" ) )
dispositionModifiers << Superseded;
- else if ( EQUALS( "expired" ) )
+ else if ( ETQUALS( "expired" ) )
dispositionModifiers << Expired;
- else if ( EQUALS( "mailbox-terminated" ) )
+ else if ( ETQUALS( "mailbox-terminated" ) )
dispositionModifiers << MailboxTerminated;
else
usage( "unknwon disposition modifier!" );
@@ -119,9 +119,9 @@ int main( int argc, char * argv[] ) {
break;
case 's': // --sending-mode
- if ( EQUALS( "MDN-sent-manually" ) )
+ if ( ETQUALS( "MDN-sent-manually" ) )
sendingMode = SentManually;
- else if ( EQUALS( "MDN-sent-automatically" ) )
+ else if ( ETQUALS( "MDN-sent-automatically" ) )
sendingMode = SentAutomatically;
else
usage( "unknown sending mode" );