about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-05-29 00:57:19 +0000
committerEric Wong <e@80x24.org>2021-05-29 07:13:03 +0000
commitec7db0fc50bb5bd926a26858ed28ee33ecfa1fd5 (patch)
treeb59e94cc0f452a164e71ab174d0373b6248592c7 /lib
parente3b920c4fdf4fb981306cc3fc832bdd367ccc922 (diff)
downloadpublic-inbox-ec7db0fc50bb5bd926a26858ed28ee33ecfa1fd5.tar.gz
lei->rel2abs doesn't resolve symlinks, which could cause
synchronization problems with export-kw or other commands.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/LeiToMail.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiToMail.pm b/lib/PublicInbox/LeiToMail.pm
index a7382169..078f2551 100644
--- a/lib/PublicInbox/LeiToMail.pm
+++ b/lib/PublicInbox/LeiToMail.pm
@@ -289,7 +289,7 @@ sub _maildir_write_cb ($$) {
         my $dst = $lei->{ovv}->{dst};
         my $lse = $lei->{lse}; # may be undef
         my $sto = $lei->{opt}->{'mail-sync'} ? $lei->{sto} : undef;
-        my $out = $sto ? 'maildir:'.$lei->rel2abs($dst) : undef;
+        my $out = $sto ? 'maildir:'.$lei->abs_path($dst) : undef;
 
         # Favor cur/ and only write to new/ when augmenting.  This
         # saves MUAs from having to do a mass rename when the initial