summary refs log tree commit diff
path: root/mcom
diff options
context:
space:
mode:
authorIvy Foster <ivy.foster@gmail.com>2016-09-02 16:48:56 -0500
committerIvy Foster <ivy.foster@gmail.com>2016-09-02 16:48:56 -0500
commit81fbda6ff1a2bfe67ecef63c5ceb5990329767c1 (patch)
tree537c9ac30b77bb705a8dd13244b78d3f5db459a9 /mcom
parentca8cef1660ad89ab488a22dc50eeb7cd77222c6e (diff)
downloadmblaze-81fbda6ff1a2bfe67ecef63c5ceb5990329767c1.tar.gz
mblaze-81fbda6ff1a2bfe67ecef63c5ceb5990329767c1.tar.xz
mblaze-81fbda6ff1a2bfe67ecef63c5ceb5990329767c1.zip
Style cleanup on previous commit
Diffstat (limited to 'mcom')
-rwxr-xr-xmcom20
1 files changed, 9 insertions, 11 deletions
diff --git a/mcom b/mcom
index 1be4da0..e7d8b40 100755
--- a/mcom
+++ b/mcom
@@ -19,7 +19,7 @@ msgdate() {
 }
 
 MBLAZE=${MBLAZE:-$HOME/.mblaze}
-outbox=$(mhdr -h outbox $MBLAZE/profile)
+outbox=$(mhdr -h outbox "$MBLAZE/profile")
 if [ -z "$outbox" ]; then
 	i=0
 	while [ -f "snd.$i" ]; do
@@ -44,9 +44,9 @@ fi
 		echo "Cc: "
 		echo "Bcc: "
 		echo "Subject: "
-		from=$(mhdr -h local-mailbox $MBLAZE/profile)
+		from=$(mhdr -h local-mailbox "$MBLAZE/profile")
 		[ "$from" ] && echo "From: $from"
-		cat $MBLAZE/headers 2>/dev/null
+		cat "$MBLAZE/headers" 2>/dev/null
 		msgid
 		msgdate
 		echo
@@ -60,7 +60,7 @@ fi
 		echo "Cc: $(mhdr -d -A -h to:cc: "$1" | commajoin)"
 		echo "Bcc: "
 		echo "Subject: Re: $(mscan -f '%S' "$1")"
-		cat $MBLAZE/headers 2>/dev/null
+		cat "$MBLAZE/headers" 2>/dev/null
 		mid=$(mhdr -h message-id "$1")
 		if [ "$mid" ]; then
 			echo -n "References:"
@@ -78,17 +78,15 @@ fi
 		echo
 	esac
 
-	if [ -f $MBLAZE/signature ]; then
-		SIGNATURE=$MBLAZE/signature
-	elif [ -f $HOME/.mblaze/signature ]; then
-		SIGNATURE=$HOME/.mblaze/signature
+	if [ -f "$MBLAZE/signature" ]; then
+		SIGNATURE="$MBLAZE/signature"
 	elif [ -f ~/.signature ]; then
-		SIGNATURE=$HOME/.signature
+		SIGNATURE="$HOME/.signature"
 	fi
 
-	if [ ! -z $SIGNATURE ]; then
+	if [ -n "$SIGNATURE" ]; then
 		printf '%s\n' '-- '
-		cat $SIGNATURE
+		cat "$SIGNATURE"
 	fi
 } >$draft