mail.sh: fix longstanding size_limit function bug
commit292ed7f4d74de5094110a6939330d89831c0cb6e
authorKyle J. McKay <mackyle@gmail.com>
Thu, 5 Mar 2015 04:06:05 +0000 (4 20:06 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Thu, 5 Mar 2015 04:06:05 +0000 (4 20:06 -0800)
treee825a6ac0f9b143a8c83aeafeb5be5c4a75b2ed3
parent2ad6e1a4df9996ffcc69ca3abbd9d154a894233a
mail.sh: fix longstanding size_limit function bug

The size_limit function uses IFS= read to get the next input
line when computing message size.  If the line contained a '\'
character then read would interpret that as an escape and mangle
the input line.

Fix this by adding the '-r' option to the read command to preserve
any backslashes in the input line without change.
taskd/mail.sh