From: martin f. krafft <madduck@madduck.net>
Date: Sun, 23 Sep 2007 21:08:48 +0000 (+0200)
Subject: eval formail variable
X-Git-Url: https://git.madduck.net/etc/mailfilter.git/commitdiff_plain/20ed176efc99132a724682c2b29e16756fe40c38?hp=bd97a33d177754d4260fd21c5f6751a486eb3eed

eval formail variable
---

diff --git a/bin/resubmit b/bin/resubmit
index 2e4896d..17888f9 100755
--- a/bin/resubmit
+++ b/bin/resubmit
@@ -5,7 +5,7 @@ PROCMAIL=$HOME/.etc/mailfilter/procmail/procmailrc
 FORMAIL="/usr/bin/formail -I'X-Resubmitted: $(date -R)'"
 
 if [ -z "${1:-}" ]; then
-  $FORMAIL | exec $PROCMAIL
+  eval $FORMAIL | exec $PROCMAIL
 else
   if [ ! -f "$1" ]; then
     echo "E: no such file: $1" >&2