summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2014-02-06 16:13:11 +0200
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2014-02-07 10:56:26 +0200
commitb115edbd7d6e25d3b286e70ba9e616cca7dabf98 (patch)
treebb5ffff645eec805c902649c24dcf11c7767a08d
parent8b5b4becacdbd9c1618ae2a356373e646a023499 (diff)
downloadaiaiai-b115edbd7d6e25d3b286e70ba9e616cca7dabf98.tar.gz
email-lda: fix copy-paste error
The 'reject_and_reply' function accepts the mbox to act upon as the parameter, and internally names it "file". However, in few places it actually uses "mbox" instead of "file", which happens to work fine, but is generally a bug. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
-rwxr-xr-xemail/aiaiai-email-lda4
1 files changed, 2 insertions, 2 deletions
diff --git a/email/aiaiai-email-lda b/email/aiaiai-email-lda
index 2a93aaf..2078379 100755
--- a/email/aiaiai-email-lda
+++ b/email/aiaiai-email-lda
@@ -89,8 +89,8 @@ reject_and_reply()
fetch_header_or_die reply_subj "Subject" < "$file"
fetch_header_or_die reply_id "Message-Id" < "$file"
- to="$(fetch_header "To" < "$mbox")"
- cc="$(fetch_header "Cc" < "$mbox")"
+ to="$(fetch_header "To" < "$file")"
+ cc="$(fetch_header "Cc" < "$file")"
reply_cc="$(merge_addresses "$to" "$cc")"