mail.sh: allow size_limit to be configured
commit5e13c05f4b4a3695d6ed0a70bafd60c291c6d59d
authorKyle J. McKay <mackyle@gmail.com>
Sat, 24 Feb 2018 00:38:01 +0000 (23 16:38 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 24 Feb 2018 00:38:01 +0000 (23 16:38 -0800)
treef72874bad6d94da1f554cc8ec75427547809f351
parent74087df4665e27607c6f2f271f3a0986e4d065a3
mail.sh: allow size_limit to be configured

Previously mail.sh has had a hard-coded limit of 256K for each
e-mail message it sends out.

In the era of megapixel camera images being sent as attachments,
the limit of 256K may be overly conservative.

Make the limit more easily configurable with a new option in
Config.pm $mailsh_sizelimit that sets the limit as the maximum
size in K byte units.

At the same time double the default limit from 256 K to 512 K
to avoid unnecessarily constraining the output while allowing
individual installations to easily customize the value.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Girocco/Config.pm
taskd/mail.sh