]> gitweb.fluxo.info Git - firma.git/commitdiff
Fixed major bug: PGP/MIME handling would work only if variable
authorluis <luis>
Wed, 18 Oct 2006 01:44:40 +0000 (01:44 +0000)
committerluis <luis>
Wed, 18 Oct 2006 01:44:40 +0000 (01:44 +0000)
REMOVE_THESE_HEADERS_ON_ALL_LISTS was not empty.

firma

diff --git a/firma b/firma
index e7fbc8289aa13f802f2497254c21a129824a5d49..b561809120dd74f2982eb6b352526ec4258a83c9 100755 (executable)
--- a/firma
+++ b/firma
@@ -419,6 +419,8 @@ function EditListMessageHeaders {
   local header
   local sed_args
 
+  MESSAGE_HEADERS="$ORIG_MESSAGE_HEADERS"
+
   # remove headers as/if defined by firma configuration file
   if [[ -n "$REMOVE_THESE_HEADERS_ON_ALL_LISTS" ]]; then
     for header in $REMOVE_THESE_HEADERS_ON_ALL_LISTS; do
@@ -426,7 +428,7 @@ function EditListMessageHeaders {
     done
 
     MESSAGE_HEADERS="$(
-      echo "$ORIG_MESSAGE_HEADERS" | \
+      echo "$MESSAGE_HEADERS" | \
       sed $sed_args
     )"
   fi