diff options
author | Eric Wong <e@80x24.org> | 2016-06-15 00:14:21 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-06-15 00:15:04 +0000 |
commit | 4d254238299f950c4a7f94ffd2e0c1fba28c74a4 (patch) | |
tree | 45c11daa4f5c0e1f7b0db1ff7045fb68dc3becc7 /script | |
parent | b6974dbc81665427413020414a668ddb742e68f9 (diff) | |
download | public-inbox-4d254238299f950c4a7f94ffd2e0c1fba28c74a4.tar.gz |
We still pull it in via Email::LocalDelivery, but that dependency will go away, soon.
Diffstat (limited to 'script')
-rwxr-xr-x | script/public-inbox-mda | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/script/public-inbox-mda b/script/public-inbox-mda index bb78c4e6..84219ac3 100755 --- a/script/public-inbox-mda +++ b/script/public-inbox-mda @@ -11,7 +11,6 @@ use Email::Filter; use Email::MIME; use Email::MIME::ContentType; $Email::MIME::ContentType::STRICT_PARAMS = 0; # user input is imperfect -use File::Path::Expand qw/expand_filename/; use IPC::Run qw(run); use PublicInbox::MDA; use PublicInbox::Filter; @@ -22,8 +21,7 @@ use PublicInbox::Git; # 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 $emergency = $ENV{PI_EMERGENCY} || '~/.public-inbox/emergency/'; -$emergency = expand_filename($emergency); +my $emergency = $ENV{PI_EMERGENCY} || "$ENV{HOME}/.public-inbox/emergency/"; # this reads the message from stdin my $filter = Email::Filter->new(emergency => $emergency); |