From: Eric Wong Date: Sat, 29 May 2021 00:57:19 +0000 (+0000) Subject: lei_to_mail: use abs_path for Maildir in mail_sync.sqlite3 X-Git-Tag: v1.7.0~625 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=ec7db0fc50bb5bd926a26858ed28ee33ecfa1fd5;p=public-inbox.git lei_to_mail: use abs_path for Maildir in mail_sync.sqlite3 lei->rel2abs doesn't resolve symlinks, which could cause synchronization problems with export-kw or other commands. --- 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