about summary refs log tree commit homepage
path: root/public-inbox-mda
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-04-18 22:18:17 +0000
committerEric Wong <e@80x24.org>2014-04-19 23:05:51 +0000
commit6dfb9311700d09fb019bee74d2b420c6cdea8b8f (patch)
tree0aab0183903135b85cd4e6caedfb599b23d0d970 /public-inbox-mda
parent93310d10f0d74554f36537639b2abd9903da3620 (diff)
downloadpublic-inbox-6dfb9311700d09fb019bee74d2b420c6cdea8b8f.tar.gz
The emergency destination may be Maildir.  A Maildir emergency
destination is better for volatile data which is written to
and deleted-from frequently.
Diffstat (limited to 'public-inbox-mda')
-rwxr-xr-xpublic-inbox-mda10
1 files changed, 5 insertions, 5 deletions
diff --git a/public-inbox-mda b/public-inbox-mda
index 2335cd3e..1f4d339f 100755
--- a/public-inbox-mda
+++ b/public-inbox-mda
@@ -16,14 +16,14 @@ use PublicInbox;
 use PublicInbox::Filter;
 use PublicInbox::Config;
 
-# n.b: hopefully we can setup the failbox path without bailing due to
+# n.b: hopefully we can setup the emergency path without bailing due to
 # user error, we really want to setup the emergency destination ASAP
 # in case there's bugs in our code or user error.
-my $failbox = $ENV{PI_FAILBOX} || '~/public-inbox-fail.mbox';
-$failbox = expand_filename($failbox);
+my $emergency = $ENV{PI_EMERGENCY} || '~/.public-inbox/emergency/';
+$emergency = expand_filename($emergency);
 
 # this reads the message from stdin
-my $filter = Email::Filter->new(emergency => $failbox);
+my $filter = Email::Filter->new(emergency => $emergency);
 my $config = PublicInbox::Config->new;
 
 my $recipient = $ENV{RECIPIENT};
@@ -64,7 +64,7 @@ if (PublicInbox->precheck($filter, $recipient) &&
                 }
         }
 }
-exit 0; # goes to failbox
+exit 0; # goes to emergency
 
 # we depend on "report_safe 0" in /etc/spamassassin/*.cf with --headers
 # not using Email::Filter->pipe here since we want the stdout of