Package: rancid
Version: 3.14-1
Severity: wishlist
At Wikimedia we use rancid with Juniper hardware and we came across some
elements of the diff which became so large that Exim refused the mail due to
overlong lines with "message has lines too long for transport". One example I
could track down was for setting a TLS key in JunOS.
We've applied the attached patch to always wrap the generated diff.
Cheers,
Moritz
Some config items may be so large (e.g crypto keys) that
we run into size limits of what Exim accepts as maximum
line length of the mail body
--- rancid-3.14.orig/bin/control_rancid.in
+++ rancid-3.14/bin/control_rancid.in
@@ -723,7 +723,7 @@ if [ -s $TMP.diff ] ; then
diffstat $TMP.diff
fi
cat $TMP.diff
- ) | $SENDMAIL -t $MAILOPTS
+ ) | fold -w 80 | $SENDMAIL -t $MAILOPTS
else
CDIR=`pwd`
SDIR=${TMPDIR:=/tmp}/rancid.$GROUP.$$.mail