[Mailman-Users] Re: How to wrap text in archived messages

2022-05-25 Thread Mark Sapiro

On 5/25/22 19:32, Mark Dale via Mailman-Users wrote:


That got me Googling for How-to's on integrating MHonArc with Mailman. There's 
a fair bit of conversation around this from days long ago, and a patch for 
using MHonArc written by Mark S. back in 2014.



I didn't write that patch. It's from Richard Barrett who also created a 
patch for HtDig integration for archive searches. There are three 
branches at https://code.launchpad.net/~msapiro/mailman/mhonarc, 
https://code.launchpad.net/~msapiro/mailman/htdig and 
https://code.launchpad.net/~msapiro/mailman/htdig_mhonarc which are up 
to date with https://code.launchpad.net/~mailman-coders/mailman/2.1 with 
the mhonarc, htdig and both patches applied respectively. I never used 
the mhonarc or htdig_mhonarc branches, but I did use the htdig branch 
for a production Mailman 2.1 installation.




Before I go down this rabbit hole: was there any particular reason (back in the 
day) that Pipermail was favoured (and implemented) over MHonArc.



Mailman was initially implemented by John Viega in the mid 1990s to 
manage a mailing list for fans of the Dave Mathews Band. I don't know 
why pipermail was chosen, but MHonArc was fairly new at that time and 
pipermail was probably more mature.



--
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: How to wrap text in archived messages

2022-05-25 Thread Mark Dale via Mailman-Users


> Mark Dale via Mailman-Users writes:
> 
>  > And of course, any such "nl2br" equivalent will do exactly the same
>  > as wrapping with P tags -- with everything left aligned.


>  From: Stephen J. Turnbull [mailto:stephenjturnb...@gmail.com]
> Right.
> 
> I'm not sure that we couldn't do better nowadays with libraries that
> will handle the same DOM that browsers do, but it certainly wasn't
> possible in 1994.  And even with those libraries it would require a
> complete rearchitecture of the archiver.
> 
> Steve
> 


I did some tests with Sympa (v6.2.88) which uses MHonArc (v2.6.19): it does a 
pretty good job of rendering archived HTML messages with things like lists, 
code, etc -- and eliminating the need for the horizontal scrolling.

That got me Googling for How-to's on integrating MHonArc with Mailman. There's 
a fair bit of conversation around this from days long ago, and a patch for 
using MHonArc written by Mark S. back in 2014.

Before I go down this rabbit hole: was there any particular reason (back in the 
day) that Pipermail was favoured (and implemented) over MHonArc.  

--
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] Mailman3 - from Whoosh to Xapian

2022-05-25 Thread Stephen J. Turnbull
Kimmo L. writes:

 > import xapian
 > ModuleNotFoundError: No module named 'xapian'

I'm pretty sure this occurs when the Xapian application and its
libraries are not installed.  xapian-haystack is an adapter from C++
(or maybe C) to Python, it is not a complete installation of the
Xapian package.  See Requirements at

https://pypi.org/project/xapian-haystack/

Have you installed Xapian itself?  If you have and still no luck, let
us know.  I know that many sites have successfully installed Xapian as
the indexer for their Mailman instance.

Steve

--
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: Problem with outlook.com

2022-05-25 Thread Stephen J. Turnbull
saran...@intracom-telecom.com writes:

 > /usr/lib/python2.7/encodings/iso8859_7.py, in def getregentry(),
 > there is a line: name='iso8859-7' which if it is changed to:
 > name='iso-8859-7' then the encoding is sent correctly and the
 > emails are received by the Exchange server. Nevertheless, i'm
 > wondering if there is a better solution than changing the python's
 > file, so any further thoughts are welcome.

No, there is no better solution for Mailman 2.  The handling of email
headers is done by a library supplied by Python, and that form of the
charset name is in all of the ISO 8859 unibyte encodings.  In Python
3/Mailman 3 we may be able to change this, but both Python 2 and
Mailman 2 are end-of-life so this change won't be made there.

In theory you could also change it in Mailman, but it's risky because
you'd need to check for it and then substitute this form for the
original everywhere it needs to be done, and I can imagine several
pathways where it might be present.  If you're lucky it might be
abstracted into a single function that only needs to be changed in one
place, but what if not?

"iso-8859-7" with the dash is the preferred form (see
https://www.iana.org/assignments/character-sets/character-sets.xhtml)
so it "should not" cause problems to make this change locally.  But
that's not something we'd want to bet on for other folks' installations.

Steve
--
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: How to wrap text in archived messages

2022-05-25 Thread Stephen J. Turnbull
Mark Dale via Mailman-Users writes:

 > And of course, any such "nl2br" equivalent will do exactly the same
 > as wrapping with P tags -- with everything left aligned.

Right.

I'm not sure that we couldn't do better nowadays with libraries that
will handle the same DOM that browsers do, but it certainly wasn't
possible in 1994.  And even with those libraries it would require a
complete rearchitecture of the archiver.

Steve
--
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/