mlmmj.mlmmj.org archive mirror
 help / color / mirror / Atom feed
* [mlmmj] Mlmmj webarchiver
@ 2018-11-15 15:28 fsantiago
  2018-11-15 18:35 ` A. Schulze
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: fsantiago @ 2018-11-15 15:28 UTC (permalink / raw
  To: mlmmj

[-- Attachment #1: Type: text/plain, Size: 688 bytes --]

Hello,

I have an Ubuntu 18.04 lts server running mlmmj. I’ve tried implementing the mlmmj-webarchiver project from:

https://git.cryptomilk.org/projects/mlmmj-webarchiver.git/

And I’ve gotten it mostly working fine except the search link when clicked presents a blank page. 

I nginx with php-fpm to serve the site. The nginx error log complains about an unexpected ‘&’ somewhere around line 34 of the search.php file. 

Has anyone seen this?

Does anyone still use this project?

Are there better forks out there?

Any help would be greatly appreciated. Thank you. 

- Fabian S.

Open PGP:
0xE6826058E6ED7726DAA4C78303190CC0D1800E36

Sent from my mobile.

[-- Attachment #2: Type: text/html, Size: 1367 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [mlmmj] Mlmmj webarchiver
  2018-11-15 15:28 [mlmmj] Mlmmj webarchiver fsantiago
@ 2018-11-15 18:35 ` A. Schulze
  2018-11-15 18:47 ` Fabian Aldo Santiago
  2018-11-15 23:14 ` Fabian Aldo Santiago
  2 siblings, 0 replies; 4+ messages in thread
From: A. Schulze @ 2018-11-15 18:35 UTC (permalink / raw
  To: mlmmj



Am 15.11.18 um 16:28 schrieb fsantiago@gardenlan.com:
> https://git.cryptomilk.org/projects/mlmmj-webarchiver.git/
> And I’ve gotten it mostly working fine except the search link when clicked presents a blank page. 
> I nginx with php-fpm to serve the site. The nginx error log complains about an unexpected ‘&’ somewhere around line 34 of the search.php file. 

I've created a package for my installations. And - surprise - I wrote a patch years ago that looks similar to your problem.

--- mlmmj-webarchiver.orig/mlmmj-webarchiver/search.php.newlist
+++ mlmmj-webarchiver/mlmmj-webarchiver/search.php.newlist
@@ -31,13 +31,13 @@
                $html=array();
                $count=0;
                $maxresults=##MAX_RESULTS##;
-               exec("find -type f -name '0*.html' | xargs egrep -roi '$words' | perl -pe 's/:.*//' | sort | uniq",&$output);
+               exec("find -type f -name '0*.html' | xargs egrep -roi '$words' | perl -pe 's/:.*//' | sort | uniq",$output);
                while(isset($output[$count]) && $count<$maxresults)
                {
                        $file=$output[$count++];
                        $content=file_get_contents($file);
                        $matches=array();
-                       if (preg_match('/<em>Subject<\/em>: ([^<]*)<\/li>[\S\s]+From<\/em>: ([^<]*)<\/li>[\S\s]+Date<\/em>: ([^<]*)<\/li>/',$content,&$matches))
+                       if (preg_match('/<em>Subject<\/em>: ([^<]*)<\/li>[\S\s]+From<\/em>: ([^<]*)<\/li>[\S\s]+Date<\/em>: ([^<]*)<\/li>/',$content,$matches))
                        {
                                $html[]="<li><a href='$file'>$matches[1]</a>, $matches[2], $matches[3]</li>";
                        }

> Has anyone seen this?
obviously, because I wrote and forgot that patch :-)

> Does anyone still use this project?
yes - https://signing-milter.org/listarchive/ and https://mail.dnswl.org/ml-archive/

Andreas


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [mlmmj] Mlmmj webarchiver
  2018-11-15 15:28 [mlmmj] Mlmmj webarchiver fsantiago
  2018-11-15 18:35 ` A. Schulze
@ 2018-11-15 18:47 ` Fabian Aldo Santiago
  2018-11-15 23:14 ` Fabian Aldo Santiago
  2 siblings, 0 replies; 4+ messages in thread
From: Fabian Aldo Santiago @ 2018-11-15 18:47 UTC (permalink / raw
  To: mlmmj

On 2018-11-15 13:35, A. Schulze wrote:
> Am 15.11.18 um 16:28 schrieb fsantiago@gardenlan.com:
>> https://git.cryptomilk.org/projects/mlmmj-webarchiver.git/
>> And I’ve gotten it mostly working fine except the search link when 
>> clicked presents a blank page. 
>> I nginx with php-fpm to serve the site. The nginx error log complains 
>> about an unexpected ‘&’ somewhere around line 34 of the search.php 
>> file.
> 
> I've created a package for my installations. And - surprise - I wrote
> a patch years ago that looks similar to your problem.
> 
> --- mlmmj-webarchiver.orig/mlmmj-webarchiver/search.php.newlist
> +++ mlmmj-webarchiver/mlmmj-webarchiver/search.php.newlist
> @@ -31,13 +31,13 @@
>                 $html=array();
>                 $count=0;
>                 $maxresults=##MAX_RESULTS##;
> -               exec("find -type f -name '0*.html' | xargs egrep -roi
> '$words' | perl -pe 's/:.*//' | sort | uniq",&$output);
> +               exec("find -type f -name '0*.html' | xargs egrep -roi
> '$words' | perl -pe 's/:.*//' | sort | uniq",$output);
>                 while(isset($output[$count]) && $count<$maxresults)
>                 {
>                         $file=$output[$count++];
>                         $content=file_get_contents($file);
>                         $matches=array();
> -                       if (preg_match('/<em>Subject<\/em>:
> ([^<]*)<\/li>[\S\s]+From<\/em>: ([^<]*)<\/li>[\S\s]+Date<\/em>:
> ([^<]*)<\/li>/',$content,&$matches))
> +                       if (preg_match('/<em>Subject<\/em>:
> ([^<]*)<\/li>[\S\s]+From<\/em>: ([^<]*)<\/li>[\S\s]+Date<\/em>:
> ([^<]*)<\/li>/',$content,$matches))
>                         {
>                                 $html[]="<li><a
> href='$file'>$matches[1]</a>, $matches[2], $matches[3]</li>";
>                         }
> 
>> Has anyone seen this?
> obviously, because I wrote and forgot that patch :-)
> 
>> Does anyone still use this project?
> yes - https://signing-milter.org/listarchive/ and
> https://mail.dnswl.org/ml-archive/
> 
> Andreas

that's awesome! Thank you very much. I'll give this a whirl.

-- 
- Fabian S.

Open PGP:
0xE6826058E6ED7726DAA4C78303190CC0D1800E36


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [mlmmj] Mlmmj webarchiver
  2018-11-15 15:28 [mlmmj] Mlmmj webarchiver fsantiago
  2018-11-15 18:35 ` A. Schulze
  2018-11-15 18:47 ` Fabian Aldo Santiago
@ 2018-11-15 23:14 ` Fabian Aldo Santiago
  2 siblings, 0 replies; 4+ messages in thread
From: Fabian Aldo Santiago @ 2018-11-15 23:14 UTC (permalink / raw
  To: mlmmj

On 2018-11-15 13:47, Fabian Aldo Santiago wrote:
> On 2018-11-15 13:35, A. Schulze wrote:
>> Am 15.11.18 um 16:28 schrieb fsantiago@gardenlan.com:
>>> https://git.cryptomilk.org/projects/mlmmj-webarchiver.git/
>>> And I’ve gotten it mostly working fine except the search link when 
>>> clicked presents a blank page. 
>>> I nginx with php-fpm to serve the site. The nginx error log complains 
>>> about an unexpected ‘&’ somewhere around line 34 of the search.php 
>>> file.
>> 
>> I've created a package for my installations. And - surprise - I wrote
>> a patch years ago that looks similar to your problem.
>> 
>> --- mlmmj-webarchiver.orig/mlmmj-webarchiver/search.php.newlist
>> +++ mlmmj-webarchiver/mlmmj-webarchiver/search.php.newlist
>> @@ -31,13 +31,13 @@
>>                 $html=array();
>>                 $count=0;
>>                 $maxresults=##MAX_RESULTS##;
>> -               exec("find -type f -name '0*.html' | xargs egrep -roi
>> '$words' | perl -pe 's/:.*//' | sort | uniq",&$output);
>> +               exec("find -type f -name '0*.html' | xargs egrep -roi
>> '$words' | perl -pe 's/:.*//' | sort | uniq",$output);
>>                 while(isset($output[$count]) && $count<$maxresults)
>>                 {
>>                         $file=$output[$count++];
>>                         $content=file_get_contents($file);
>>                         $matches=array();
>> -                       if (preg_match('/<em>Subject<\/em>:
>> ([^<]*)<\/li>[\S\s]+From<\/em>: ([^<]*)<\/li>[\S\s]+Date<\/em>:
>> ([^<]*)<\/li>/',$content,&$matches))
>> +                       if (preg_match('/<em>Subject<\/em>:
>> ([^<]*)<\/li>[\S\s]+From<\/em>: ([^<]*)<\/li>[\S\s]+Date<\/em>:
>> ([^<]*)<\/li>/',$content,$matches))
>>                         {
>>                                 $html[]="<li><a
>> href='$file'>$matches[1]</a>, $matches[2], $matches[3]</li>";
>>                         }
>> 
>>> Has anyone seen this?
>> obviously, because I wrote and forgot that patch :-)
>> 
>>> Does anyone still use this project?
>> yes - https://signing-milter.org/listarchive/ and
>> https://mail.dnswl.org/ml-archive/
>> 
>> Andreas
> 
> that's awesome! Thank you very much. I'll give this a whirl.

worked fine. thank you.

-- 
- Fabian S.

Open PGP:
0xE6826058E6ED7726DAA4C78303190CC0D1800E36


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-11-15 23:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-15 15:28 [mlmmj] Mlmmj webarchiver fsantiago
2018-11-15 18:35 ` A. Schulze
2018-11-15 18:47 ` Fabian Aldo Santiago
2018-11-15 23:14 ` Fabian Aldo Santiago

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).