Browse Source

Support neomutt as MUA while sending database backups by email

Emmanuel Bouthenot 2 years ago
parent
commit
7afd85a65e
1 changed files with 4 additions and 0 deletions
  1. 4 0
      autopostgresqlbackup

+ 4 - 0
autopostgresqlbackup

@@ -638,6 +638,10 @@ then
         then
             BACKUPFILES=$(echo $BACKUPFILES | sed -e 's# # -a #g')
             heirloom-mailx -s "PostgreSQL Backup Log and SQL Files for $HOST - $DATE" $BACKUPFILES $MAILADDR < $LOGFILE
+        elif which neomutt >/dev/null 2>&1
+        then
+            BACKUPFILES=$(echo $BACKUPFILES | sed -e 's# # -a #g')
+            neomutt -s "PostgreSQL Backup Log and SQL Files for $HOST - $DATE" -a $BACKUPFILES -- $MAILADDR < $LOGFILE
         elif which mutt >/dev/null 2>&1
         then
             BACKUPFILES=$(echo $BACKUPFILES | sed -e 's# # -a #g')