]> the.earth.li Git - onak.git/commitdiff
Fix replyto email address bug.
authorJonathan McDowell <noodles@earth.li>
Sun, 18 Sep 2005 10:44:39 +0000 (10:44 +0000)
committerJonathan McDowell <noodles@earth.li>
Sun, 18 Sep 2005 10:44:39 +0000 (10:44 +0000)
If Reply-To wasn't set we wouldn't be able to send a reply email from
onak-mail.pl for ADD/(V)INDEX mails. Fix this so we'll use Reply-To or
From if that isn't set.

onak-mail.pl.in

index 5c1ce53f603b46fa0fb052881083f8cdd7e45630..c635dfba601e5490352c2ac17f0c040e70e54979 100644 (file)
@@ -257,7 +257,7 @@ while ($file = readdir(MAILDIR)) {
                        push @body, $_;
                }
        }
-       if (! defined($replyto)) {
+       if ($replyto eq '') {
                $replyto = $from;
        }
        close(FILE);