- Avoid depending on the exact format of output from system (non-nmh)
programs.
+
+checkbashisms, available at http://sourceforge.net/projects/checkbaskisms/,
+might help some catch problems. Though it misses all of the troublesome
+constructs, except for assignment in an export statement, listed above.
Date:
Resent-Date:
-please resend this message, #1
+please resend this message, 1
.
QUIT
EOF
From: sender@localhost
Date: Sat Jun 16 18:35:15 -0500
-please resend this message, #1'
+please resend this message, 1'
[ ${failed:-0} -eq 0 ] || exit ${failed:-0}
Resent-From: orig_recipient@example.com
Resent-Date:
-please resend this message, #2
+please resend this message, 2
.
QUIT
EOF
From: sender@localhost
Date: Sat Jun 16 18:35:15 -0500
-please resend this message, #2'
+please resend this message, 2'
[ ${failed:-0} -eq 0 ] || exit ${failed:-0}
Resent-From: orig_recipient@example.com
Resent-Date:
-please resend this message, #3
+please resend this message, 3
.
QUIT
EOF
From: sender@localhost
Date: Sat Jun 16 18:35:15 -0500
-please resend this message, #3'
+please resend this message, 3'
[ ${failed:-0} -eq 0 ] || exit ${failed:-0}