[Mailman-Users] Re: Scrubber: filename too long

2020-06-18 Thread Mark Sapiro
On 6/17/20 11:32 AM, tlhackque via Mailman-Users wrote:
>>From /usr/lib/mailman/cron/senddigests, I'm seeing this - which is the
> result of an annoying webbug URL in some (actually important) inbound
> messages.
> 
> I guess one approach would be for the filename name to be simply the
> sha-xxx of the generated name...not being a Python person, what's the
> best way to solve this?
> 
> 
> Traceback (most recent call last):
...
> IOError: [Errno 36] File name too long: 
> '/var/lib/mailman/archives/private/sb-notices/attachments/20200617/7bfd746c/openupnuTyAIB5RnlGqcUYpxASzOCjK0U2XEEfdN09lb80k8EAccOT3iskue1a45bqJenPWT4XeDAj9c-2FnJ-2F1UfxwtikwjXfVn4FKSvPvMQ4-2F-2BnoeZraMSMf1dLwio-2FiUT1wYNZx4eF1A5j8DF1-2FMAhxu72-2BX1pzdJx1CWDywpoyPVWKwluqE4AyFhrreaxc8kYpHZaUFUlP3MPFmNEDQ5Tr-2Bg-2BJRAhSYLdif3kj8rKn-2FDEhbw-3D.gif'


The easiest thing is to set

SCRUBBER_DONT_USE_ATTACHMENT_FILENAME = Yes

in mm_cfg.py, but this is the default, so you must be overriding it, and
if that's for good reason, you could apply the attached patch after
changing 'MAX' to an integer equal to about 10 less than the longest
filename you want to allow. The -10 is to allow for the extension and a
possible '-' that will be added.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
=== modified file 'Mailman/Handlers/Scrubber.py'
--- Mailman/Handlers/Scrubber.py2018-11-10 18:57:54 +
+++ Mailman/Handlers/Scrubber.py2020-06-18 16:15:39 +
@@ -471,7 +471,7 @@
 # guessed so attachments can't lie about their type.  Also, if the
 # filename /has/ no extension, then tack on the one we guessed.
 # The extension was removed from the name above.
-filebase = filename
+filebase = filename[:MAX]
 # Now we're looking for a unique name for this file on the file
 # system.  If msgdir/filebase.ext isn't unique, we'll add a counter
 # after filebase, e.g. msgdir/filebase-cnt.ext

--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] searchable private mailing lists in Mailman 2.1.20

2020-06-18 Thread Anatoly Oreshkin
Hello,

I've installed Mailman 2.1.20 on my server. I would like to have the
possibility
to search private mailing lists. As mailing lists contain russian letters
so I need
as a search tool Mnogosearch search engine. How to  include Mnogosearch
in Mailman 2.1.20 ?
Has anybody done this task ? Or has the information how to do this task ?

Thanks.
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: searchable private mailing lists in Mailman 2.1.20

2020-06-18 Thread Carl Zwanzig

On 6/18/2020 2:46 AM, Anatoly Oreshkin wrote:
I've installed Mailman 2.1.20 on my server. 


That is rather old now, you'll do better installing the current version 
unless there's a strong reason not to.




I would like to have the possibility to search private mailing lists. As
mailing lists contain russian letters so I need as a search tool
Mnogosearch search engine. How to  include Mnogosearch in Mailman 2.1.20?
List archives are local (to the server) files and directories, so if 
Mnogosearch can search a directory tree, it should be able to search them. I 
do see that Mnogosearch hasn't been updates since 2015, is that the best 
choice of tool?


z!
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
   https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: searchable private mailing lists in Mailman 2.1.20

2020-06-18 Thread Mark J Bradakis

On 6/18/20 10:42 AM, Carl Zwanzig wrote:
 I do see that Mnogosearch hasn't been updates since 2015, is that the 
best choice of tool?


Gosh!  For autox.team.net/archive I'm using MHonArc and Namazu. Compared 
to these, Mnogosearch seems cutting edge!


And yes, I am considering newer, better search engines for the Team Net 
mail archives.


mjb.

--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
   https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] error installing Mailman 2.1.12

2020-06-18 Thread Anatoly Oreshkin
I'm trying to install Mailman 2.1.12 on Centos 7.7.
I've done  the following steps
1. tar zxvf mailman-2.1.12.tgz
2. applied  patches
cd mailman-2.1.12
patch -p1 < ../indexing-2.1.12-0.1.patch
patch -p1 < ../htdig-2.1.12-0.1.patch
patch -p1 < ../exitstatus-2.1.12-0.1.patch
patch -p1 < ../modinc-2.1.12-0.1.patch
patch -p1 < ../mhonarc-2.1.12-0.1.patch

3.  ./configure  --prefix=/usr/local/mailman --with-var-prefix=/var/mailman
\
 --with-mail-gid=mail --with-cgi-gid=apache
make
make install
On this step, make install,  I've received a lot of warnings like these:

src/_koco_ksc5601.h:3337:3: warning: (near initialization for
‘ksc5601_encode_page3[11104]’) [-Wpointer-sign]
src/_koco_ksc5601.h:3337:3: warning: pointer targets in initialization
differ in signedness [-Wpointer-sign]
src/_koco_ksc5601.h:3337:3: warning: (near initialization for
‘ksc5601_encode_page3[11109]’) [-Wpointer-sign]
src/_koco_ksc5601.h:3338:3: warning: pointer targets in initialization
differ in signedness [-Wpointer-sign]
   "\xf8\xf9", 0, 0, 0, 0, "\xf0\xae", 0, 0,
   ^
src/_koco_ksc5601.h:3338:3: warning: (near initialization for
‘ksc5601_encode_page3[2]’) [-Wpointer-sign]
src/_koco_ksc5601.h:3338:3: warning: pointer targets in initialization
differ in signedness [-Wpointer-sign]
src/_koco_ksc5601.h:3338:3: warning: (near initialization for
‘ksc5601_encode_page3[7]’) [-Wpointer-sign]
src/_koco_ksc5601.h:3340:3: warning: pointer targets in initialization
differ in signedness [-Wpointer-sign]
   0, 0, "\xd1\xb8", 0, 0, 0, 0, "\xd6\xdf",
   ^
.
Listing /usr/local/mailman/Mailman/Queue ...
Compiling /usr/local/mailman/Mailman/Queue/ArchRunner.py ...
Compiling /usr/local/mailman/Mailman/Queue/BounceRunner.py ...
Compiling /usr/local/mailman/Mailman/Queue/CommandRunner.py ...
Compiling /usr/local/mailman/Mailman/Queue/IncomingRunner.py ...

Compiling /usr/local/mailman/Mailman/versions.py ...
Downgrade detected, from version 0x20114f0 to version 0x2010cf0
This is probably not safe.
Exiting.
make: *** [update] Error 1

What is the cause of these  errors ?
How to solve this problem ?

Thanks.
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: searchable private mailing lists in Mailman 2.1.20

2020-06-18 Thread Carl Zwanzig

Please keep this on-list

On 6/18/2020 12:23 PM, Anatoly Oreshkin wrote:

My private list archives are local files and directories. Mnogosearch can
search my list archives but
how to integrate Mailman and Mnogosearch ?
I need a mnogosearch search   string to be on Mailman archive TOC page


I think those pages are generated by code in ./mailman/Mailman/Archiver, but 
you'll have to look for where the archive index.html page is generated and 
add the HTML code for the search. I can not help with that.



I choose Mnogosearch because of its ability to support russian character
encoding


OK, any decent search engine should support UTF, which will pretty much 
include all encodings.


z!
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
   https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: error installing Mailman 2.1.12

2020-06-18 Thread Carl Zwanzig

On 6/18/2020 12:42 PM, Anatoly Oreshkin wrote:

Compiling /usr/local/mailman/Mailman/versions.py ...
Downgrade detected, from version 0x20114f0 to version 0x2010cf0
This is probably not safe.
Exiting.
make: *** [update] Error 1

What is the cause of these  errors ?
How to solve this problem ?


Looks like you already have 2.1.14 installed in /usr/local/mailman, why 
downgrade to .12? Some downgrades are safe (no data/format changes), some 
are not (I don't know about 14->12). Either way, a full backup of the 
mailman hierarchy is in order before changing anything.


That said, you really ought to go with the latest, which is 2.1.33, unless 
there's a really good reason not to.


z!
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
   https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: searchable private mailing lists in Mailman 2.1.20

2020-06-18 Thread Mark Sapiro
On 6/18/20 12:46 PM, Carl Zwanzig wrote:
> Please keep this on-list
> 
> On 6/18/2020 12:23 PM, Anatoly Oreshkin wrote:
>> My private list archives are local files and directories. Mnogosearch can
>> search my list archives but
>> how to integrate Mailman and Mnogosearch ?
>> I need a mnogosearch search   string to be on Mailman archive TOC page


There is a fork of the current Mailman 2.1 branch at
. This integrates the
HtDig search engine with Mailman's archive pages. You might be able to
adapt that. The patch on which it is based is at
.

There is also a FAQ article at  that
discusses adding Namazu as a search engine for Mailman list archives.
That doesn't cover adding a search function to the archive index pages,
but it may provide ideas.

There's also a lot of discussion in the archives of this list.

returns 2957 hits. There might be something useful among them. Narrowing
it down,

returns 25.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/


[Mailman-Users] Re: error installing Mailman 2.1.12

2020-06-18 Thread Mark Sapiro
On 6/18/20 12:42 PM, Anatoly Oreshkin wrote:
> I'm trying to install Mailman 2.1.12 on Centos 7.7.
> I've done  the following steps
> 1. tar zxvf mailman-2.1.12.tgz
> 2. applied  patches
> cd mailman-2.1.12
> patch -p1 < ../indexing-2.1.12-0.1.patch
> patch -p1 < ../htdig-2.1.12-0.1.patch
> patch -p1 < ../exitstatus-2.1.12-0.1.patch
> patch -p1 < ../modinc-2.1.12-0.1.patch
> patch -p1 < ../mhonarc-2.1.12-0.1.patch


I don't know what the exitstatus and modinc patches, but there is a
branch at 
that includes Richard Barrett's indexing, htdig and mhonarc patches and
is up to date with the head of the Mailman 2.1.33+ branch.


> 3.  ./configure  --prefix=/usr/local/mailman --with-var-prefix=/var/mailman
> \
>  --with-mail-gid=mail --with-cgi-gid=apache
> make
> make install
> On this step, make install,  I've received a lot of warnings like these:
> 
> src/_koco_ksc5601.h:3337:3: warning: (near initialization for
> ‘ksc5601_encode_page3[11104]’) [-Wpointer-sign]
> src/_koco_ksc5601.h:3337:3: warning: pointer targets in initialization
> differ in signedness [-Wpointer-sign]
> src/_koco_ksc5601.h:3337:3: warning: (near initialization for
> ‘ksc5601_encode_page3[11109]’) [-Wpointer-sign]
> src/_koco_ksc5601.h:3338:3: warning: pointer targets in initialization
> differ in signedness [-Wpointer-sign]
>"\xf8\xf9", 0, 0, 0, 0, "\xf0\xae", 0, 0,
>^
> src/_koco_ksc5601.h:3338:3: warning: (near initialization for
> ‘ksc5601_encode_page3[2]’) [-Wpointer-sign]
> src/_koco_ksc5601.h:3338:3: warning: pointer targets in initialization
> differ in signedness [-Wpointer-sign]
> src/_koco_ksc5601.h:3338:3: warning: (near initialization for
> ‘ksc5601_encode_page3[7]’) [-Wpointer-sign]
> src/_koco_ksc5601.h:3340:3: warning: pointer targets in initialization
> differ in signedness [-Wpointer-sign]
>0, 0, "\xd1\xb8", 0, 0, 0, 0, "\xd6\xdf",


It appears that these errors come from compiling the Korean codecs
package. Since Mailman 2.1.13, configure/make install no longer tries to
compile and install the Japanese and Korean codecs if they are already
included in Python which they almost certainly are in your case since
they have been since at least Python 2.4.

And as Carl points out, Mailman 2.1.12 represents a downgrade for you.
You should be upgrading to at least 2.1.33 or to
 which
includes 3 of the above 5 patches and the others can probably be easily
updated.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
--
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
https://mail.python.org/archives/list/mailman-users@python.org/