diff options
author | Eric Wong <e@80x24.org> | 2023-12-29 18:05:14 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-12-30 06:44:02 +0000 |
commit | 5aab49f319679cf7912f1abf4914272e5112e247 (patch) | |
tree | feb93cd9b7062e61dd547b96fce91b5231bade88 /lib/PublicInbox/LeiImportKw.pm | |
parent | cf977e706b07e80f394570a393eb2169b9b9a1a7 (diff) | |
download | public-inbox-5aab49f319679cf7912f1abf4914272e5112e247.tar.gz |
The MH format is widely-supported and used by various MUAs such as mutt and sylpheed, and a MH-like format is used by mlmmj for archives, as well. Locking implementations for writes are inconsistent, so this commit doesn't support writes, yet. inotify|EVFILT_VNODE watches aren't supported, yet, but that'll have to come since MH allows packing unused integers and renaming files.
Diffstat (limited to 'lib/PublicInbox/LeiImportKw.pm')
-rw-r--r-- | lib/PublicInbox/LeiImportKw.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiImportKw.pm b/lib/PublicInbox/LeiImportKw.pm index 4b8e69fb..765e23cd 100644 --- a/lib/PublicInbox/LeiImportKw.pm +++ b/lib/PublicInbox/LeiImportKw.pm @@ -36,7 +36,7 @@ sub ipc_atfork_child { sub ck_update_kw { # via wq_io_do my ($self, $url, $uid, $kw) = @_; my @oidbin = $self->{-lms_rw}->num_oidbin($url, $uid); - my $uid_url = "$url/;UID=$uid"; + my $uid_url = index($url, 'mh:') == 0 ? $url.$uid : "$url/;UID=$uid"; @oidbin > 1 and warn("W: $uid_url not unique:\n", map { "\t".unpack('H*', $_)."\n" } @oidbin); my @docids = sort { $a <=> $b } uniqstr |