about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiImport.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-05-23 01:38:26 +0000
committerEric Wong <e@80x24.org>2021-05-23 19:35:05 +0000
commit22a88de70a33ab34b6dc52d8bf5fb8b4fa3ee66f (patch)
tree14856716f99f74f31c155bc4e10de2b874d8054b /lib/PublicInbox/LeiImport.pm
parent3b96b05a597d3037d2d9966b256679232bf0829c (diff)
downloadpublic-inbox-22a88de70a33ab34b6dc52d8bf5fb8b4fa3ee66f.tar.gz
This will give us more flexibility in the future w.r.t.
dealing with UIDVALIDITY and AUTH= info with IMAP.  The LoC
reduction is welcome, too.
Diffstat (limited to 'lib/PublicInbox/LeiImport.pm')
-rw-r--r--lib/PublicInbox/LeiImport.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiImport.pm b/lib/PublicInbox/LeiImport.pm
index 55925cc5..01e6c93c 100644
--- a/lib/PublicInbox/LeiImport.pm
+++ b/lib/PublicInbox/LeiImport.pm
@@ -42,9 +42,9 @@ sub input_maildir_cb { # maildir_each_eml cb
 }
 
 sub input_net_cb { # imap_each / nntp_each
-        my ($url, $uid, $kw, $eml, $self) = @_;
+        my ($uri, $uid, $kw, $eml, $self) = @_;
         my $vmd = $self->{-import_kw} ? { kw => $kw } : undef;
-        $vmd->{sync_info} = [ $url, $uid ] if $self->{-mail_sync};
+        $vmd->{sync_info} = [ $$uri, $uid ] if $self->{-mail_sync};
         $self->input_eml_cb($eml, $vmd);
 }