diff options
author | Eric Wong <e@80x24.org> | 2021-01-23 10:27:47 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-01-23 23:45:25 +0000 |
commit | a4fa97d8ecd32927f0f3d6580c474059b59dabd2 (patch) | |
tree | 8149edd611e36e47b1387beed5ab8863ec165f63 /lib/PublicInbox/LeiOverview.pm | |
parent | d44073df16b9ae461ec445bea45a3c48451ae1e4 (diff) | |
download | public-inbox-a4fa97d8ecd32927f0f3d6580c474059b59dabd2.tar.gz |
Via curl(1), since that lets us easily use tor on a per-connection basis via LD_PRELOAD (torsocks) or proxy. We'll eventually support more curl options which can allow users to get past firewalls and deal with other odd network configurations.
Diffstat (limited to 'lib/PublicInbox/LeiOverview.pm')
-rw-r--r-- | lib/PublicInbox/LeiOverview.pm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/PublicInbox/LeiOverview.pm b/lib/PublicInbox/LeiOverview.pm index 7a4fa857..49538a60 100644 --- a/lib/PublicInbox/LeiOverview.pm +++ b/lib/PublicInbox/LeiOverview.pm @@ -209,7 +209,15 @@ sub ovv_each_smsg_cb { # runs in wq worker usually $json->ascii(1) if $lei->{opt}->{ascii}; } my $l2m = $lei->{l2m}; - if ($l2m && $l2m->{-wq_s1}) { + if ($l2m && $ibxish->can('scheme')) { # remote https?:// mboxrd + delete $l2m->{-wq_s1}; + my $g2m = $l2m->can('git_to_mail'); + my $wcb = $l2m->write_cb($lei); + sub { + my ($smsg, undef, $eml) = @_; # no mitem in $_[1] + $wcb->(undef, $smsg, $eml); + }; + } elsif ($l2m && $l2m->{-wq_s1}) { my ($lei_ipc, @io) = $lei->atfork_parent_wq($l2m); # n.b. $io[0] = qry_status_wr, $io[1] = mbox|stdout, # $io[4] becomes a notification pipe that triggers EOF |