Browse Source

Add missing arguments while invoking mutt with file attachments (see: https://bugs.debian.org/850963)

Emmanuel Bouthenot 2 years ago
parent
commit
770445ca61
1 changed files with 1 additions and 1 deletions
  1. 1 1
      autopostgresqlbackup

+ 1 - 1
autopostgresqlbackup

@@ -641,7 +641,7 @@ then
         elif which mutt >/dev/null 2>&1
         then
             BACKUPFILES=$(echo $BACKUPFILES | sed -e 's# # -a #g')
-            mutt -s "PostgreSQL Backup Log and SQL Files for $HOST - $DATE" $BACKUPFILES $MAILADDR < $LOGFILE
+            mutt -s "PostgreSQL Backup Log and SQL Files for $HOST - $DATE" -a $BACKUPFILES -- $MAILADDR < $LOGFILE
         else
             cat "$LOGFILE" | mail -s "WARNING! - Enable to send PostgreSQL Backup dumps, no suitable mail client found on $HOST - $DATE" $MAILADDR
         fi