1diff --git a/duplicity-backup.sh b/duplicity-backup.sh
2index 0bf880b73d049d984e1b9f20096424a054ee95f0..851128f62bd992a0c85b1fe77ffca840f31189ad 100755
3--- a/duplicity-backup.sh
4+++ b/duplicity-backup.sh
5@@ -136,8 +136,8 @@ EMAIL_TO=
6 EMAIL_FROM=
7 EMAIL_SUBJECT=
8 9-# command to use to send mail (uncomment to activate functionnality)
10-#MAIL="mailx"
11+# command to use to send mail
12+MAIL="mailx"
13 #MAIL="ssmtp"
1415 # TROUBLESHOOTING: If you are having any problems running this script it is
16@@ -333,16 +333,18 @@ include_exclude()
17 IFS=$(echo -en "\t\n")
1819 for include in ${INCLIST[@]}
20- do
21- TMP=" --include=""'"$include"'"
22- INCLUDE=$INCLUDE$TMP
23+ do
24+ TMP=" --include=""'"$include"'"
25+ INCLUDE=$INCLUDE$TMP
26 done
27+
28 for exclude in ${EXCLIST[@]}
29- do
30- TMP=" --exclude "$exclude
31- EXCLUDE=$EXCLUDE$TMP
32- done
33- EXCLUDEROOT="--exclude=**"
34+ do
35+ TMP=" --exclude ""'"$exclude"'"
36+ EXCLUDE=$EXCLUDE$TMP
37+ done
38+
39+ EXCLUDEROOT="--exclude=**"
4041 # Restore IFS
42 IFS=$OLDIFS