Commit 987afe17 authored by Per Cederqvist's avatar Per Cederqvist

Added tests for the syntax of the mx-date aux-item.

parent 00e9a013
......@@ -22,6 +22,7 @@
# Please mail bug reports to bug-lyskom@lysator.liu.se.
# Check the aux-items added in lyskomd 2.0.5 (31, 32, 10100-10104).
# Check the syntax of mx-date (21).
# We currently get aux-item-permission (49) instead of illegal-aux-item (48)
......@@ -313,14 +314,57 @@ extracting_expect "%1045 (48|49) 0" errorcode 1
want_illegal_aux_item "Correct error code for mx-mime-part-in on person"
#
# Test the syntax of mx-date (21).
#
send "1046 86 [holl "imported mail"] 1 { 0 $aconf } 1 { 21 11111111 99 [holl "2001-09-30 13:52:37"] }\n"
simple_expect "=1046 6"
send "1047 90 6\n"
simple_expect "=1047 $any_time 5 0 13 0 2 { 0 $aconf 6 6 } 1 { 1 21 5 $any_time 00111111 99 [holl "2001-09-30 13:52:37"] }"
send "1048 86 [holl "imported mail"] 1 { 0 $aconf } 1 { 21 11111111 99 [holl " 2001-09-30 13:52:37"] }\n"
simple_expect "%1048 48 0"
send "1049 86 [holl "imported mail"] 1 { 0 $aconf } 1 { 21 11111111 99 [holl "2001-09-30 13:52:37 "] }\n"
simple_expect "%1049 48 0"
send "1050 86 [holl "imported mail"] 1 { 0 $aconf } 1 { 21 00000000 1 [holl "2001-09-30 13:52:37 +0200"] }\n"
simple_expect "=1050 7"
send "1051 90 7\n"
simple_expect "=1051 $any_time 5 0 13 0 2 { 0 $aconf 6 7 } 1 { 1 21 5 $any_time 00000000 1 25H2001-09-30 13:52:37 \\+0200 }"
send "1052 86 [holl "imported mail"] 1 { 0 $aconf } 1 { 21 00000000 1 [holl "2001-09-30 13:52:37 -1150"] }\n"
simple_expect "=1052 8"
send "1053 90 8\n"
simple_expect "=1053 $any_time 5 0 13 0 2 { 0 $aconf 6 8 } 1 { 1 21 5 $any_time 00000000 1 [holl "2001-09-30 13:52:37 -1150"] }"
send "1054 86 [holl "imported mail"] 1 { 0 $aconf } 1 { 21 11111111 99 [holl "2001-09-30 13:52:37 GMT"] }\n"
simple_expect "%1054 48 0"
send "1055 86 [holl "imported mail"] 1 { 0 $aconf } 1 { 21 11111111 99 [holl "2001-09-30 13:52:37 +0200 "] }\n"
simple_expect "%1055 48 0"
send "1056 86 [holl "imported mail"] 1 { 0 $aconf } 1 { 21 11111111 99 [holl "2001-09-30 13:52:37 +0200"] }\n"
simple_expect "%1056 48 0"
send "1057 86 [holl "imported mail"] 1 { 0 $aconf } 1 { 21 11111111 99 [holl "2001-09-30 13:52 +0200"] }\n"
simple_expect "%1057 48 0"
send "1058 86 [holl "imported mail"] 1 { 0 $aconf } 1 { 21 11111111 99 [holl "2001-09-30 13:52"] }\n"
simple_expect "%1058 48 0"
#
# Shut down
#
enable
send "1046 44 0\n"
simple_expect "=1046"
send "1059 44 0\n"
simple_expect "=1059"
client_death 0
lyskomd_death
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment