Package: biabam / 0.9.7-7

05_accept_subject_in_first_position.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
27
--- a/biabam
+++ b/biabam
@@ -38,6 +38,14 @@
   exit 1
 fi
 
+# have they supplied a subject in first position
+SUBJECT="File delivery"
+if [ a"$1" = "a-s" ]; then
+  shift
+  SUBJECT="$1"
+  shift
+fi
+
 # Find out the number of files to attach
 TOTAL_ATTACHMENTS=`echo "$1" | awk -F$SP '{print NF}'`
 
@@ -85,8 +93,7 @@
 
 shift 		# skip over filename
 
-# have they supplied a subject
-SUBJECT="File delivery"
+# have they supplied a subject in second position
 if [ a"$1" = "a-s" ]; then
   shift
   SUBJECT="$1"