Package: biabam / 0.9.7-7

04_better_Message-ID_and_To.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Author: Thierry Randrianiriana <randrianiriana@gmail.com>
Description: see bug #399543
Index: biabam-0.9.7/biabam
===================================================================
--- biabam-0.9.7.orig/biabam	2010-04-03 07:11:59.000000000 +0300
+++ biabam-0.9.7/biabam	2010-04-03 07:14:24.000000000 +0300
@@ -106,15 +106,17 @@
 
 for i in `seq 1 $TOTAL_EMAILS`; do
   # write the 'To:' field with all recipients previously stored in the array
-  TO="$TO <${ARR_EMAILS[$i]}>,"
+  TO="$TO ${ARR_EMAILS[$i]},"
 done
 
 TO=${TO:0:${#TO}-1} # remove the last comma
 
+HOST=`hostname`
+
 echo $TO >> $TEMPFILE
 echo "Subject: $SUBJECT" >> $TEMPFILE
 echo "X-Mailer: BIABAM $VERSION" >> $TEMPFILE
-echo "Message-ID: <`date +%Y%m%d%H%M%S`.$BASETEMP@biabam>" >> $TEMPFILE
+echo "Message-ID: <`date +%Y%m%d%H%M%S`.$BASETEMP@$HOST>" >> $TEMPFILE
 echo "Mime-Version: 1.0" >> $TEMPFILE 
 echo "Content-Type: multipart/mixed; boundary=\"$BOUNDARY\"" >> $TEMPFILE
 echo "Content-Disposition: inline" >> $TEMPFILE