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