Package: automysqlbackup Version: 2.6+debian.2-2 Severity: normal Tags: patch
Dear Maintainer, There is a minor bug in automysqlbackup when the mail content is set to 'files', IE it's trying to send the MySQL backups as email attchments. The mutt command line is incorrect and as such it fails to send any email when mail contents is set to 'files' It's line 675 of /usr/sbin/automysqlbackup which causes the issue: mutt -s "$ERRORNOTE MySQL Backup Log and SQL Files for $HOST - $DATE" $BACKUPFILES $MAILADDR < $LOGFILE #send via mutt it works perfectly when changed to: mutt -s "$ERRORNOTE MySQL Backup Log and SQL Files for $HOST - $DATE" $BACKUPFILES -- $MAILADDR < $LOGFILE #send via mutt The 2 hyphens terminate the list of attached files. -- System Information: Debian Release: 7.0 Architecture: armhf (armv6l) Kernel: Linux 3.6.11+ (PREEMPT) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages automysqlbackup depends on: ii mysql-client 5.5.28+dfsg-1 ii mysql-client-5.5 [mysql-client] 5.5.28+dfsg-1 Versions of packages automysqlbackup recommends: ii mutt 1.5.21-6.2 automysqlbackup suggests no packages. -- Configuration Files: /etc/default/automysqlbackup changed [not included] -- no debconf information
*** automysqlbackup.orig 2013-02-26 21:19:36.265505513 +0100 --- automysqlbackup 2013-02-26 21:19:13.966198068 +0100 *************** *** 672,678 **** if [ $MAXATTSIZE -ge $ATTSIZE ] then BACKUPFILES=`echo "$BACKUPFILES" | sed -e "s# # -a #g"` #enable multiple attachments ! mutt -s "$ERRORNOTE MySQL Backup Log and SQL Files for $HOST - $DATE" $BACKUPFILES $MAILADDR < $LOGFILE #send via mutt else cat "$LOGFILE" | mail -s "WARNING! - MySQL Backup exceeds set maximum attachment size on $HOST - $DATE" $MAILADDR fi --- 672,678 ---- if [ $MAXATTSIZE -ge $ATTSIZE ] then BACKUPFILES=`echo "$BACKUPFILES" | sed -e "s# # -a #g"` #enable multiple attachments ! mutt -s "$ERRORNOTE MySQL Backup Log and SQL Files for $HOST - $DATE" $BACKUPFILES -- $MAILADDR < $LOGFILE #send via mutt else cat "$LOGFILE" | mail -s "WARNING! - MySQL Backup exceeds set maximum attachment size on $HOST - $DATE" $MAILADDR fi
*** automysqlbackup.orig 2013-02-26 21:19:36.265505513 +0100 --- automysqlbackup 2013-02-26 21:19:13.966198068 +0100 *************** *** 672,678 **** if [ $MAXATTSIZE -ge $ATTSIZE ] then BACKUPFILES=`echo "$BACKUPFILES" | sed -e "s# # -a #g"` #enable multiple attachments ! mutt -s "$ERRORNOTE MySQL Backup Log and SQL Files for $HOST - $DATE" $BACKUPFILES $MAILADDR < $LOGFILE #send via mutt else cat "$LOGFILE" | mail -s "WARNING! - MySQL Backup exceeds set maximum attachment size on $HOST - $DATE" $MAILADDR fi --- 672,678 ---- if [ $MAXATTSIZE -ge $ATTSIZE ] then BACKUPFILES=`echo "$BACKUPFILES" | sed -e "s# # -a #g"` #enable multiple attachments ! mutt -s "$ERRORNOTE MySQL Backup Log and SQL Files for $HOST - $DATE" $BACKUPFILES -- $MAILADDR < $LOGFILE #send via mutt else cat "$LOGFILE" | mail -s "WARNING! - MySQL Backup exceeds set maximum attachment size on $HOST - $DATE" $MAILADDR fi

