Re: [Mailman-Users] Configuring 'example.org' as virtual host on localhost

2016-06-14 Thread Mark Sapiro
On 06/14/2016 11:00 AM, John Poltorak wrote:
> Can someone explain what I need to do to properly set up Mailman and Apache
> so that I can browse to *http://example.org/mailman
> * ?
> 
> As far as Mailman is concerned I think I only need to edit mm_cfg.py
> 
> I'm not sure about Apache... Also I guess I need to include an entry in the
> hosts file to point exampl.org at localhost


In Apache, you need within the VirtualHost block for example.com or in a
global section

ScriptAlias /mailman/   /path/to/mailman/cgi-bin/


Options ExecCGI
Require all granted


RedirectMatch ^/mailman[/]*$   /mailman/listinfo

These are for Apache 2.4. For 2.2 and earlier, instead of

Require all granted

you need

Order allow,deny
Allow from all

See .

If you ereally mean literally 'example.org' you can't access that from
outside your local network. Putting an entry in /etc/hosts will work for
the local machine (only).

If example.org is an example, what you need is an A record in DNS for
the domain.

-- 
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
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] migrating current list links to mailman

2016-06-14 Thread Beu, Ed (DOA)
We've removed the redirect and created the jl.htm files where Apache can see 
them and display the HTML message. This works as planned.

Thx, Ed

-Original Message-
From: Mailman-Users [mailto:mailman-users-bounces+ed.beu=alaska@python.org] 
On Behalf Of Beu, Ed (DOA)
Sent: Tuesday, June 14, 2016 9:35 AM
To: Mark Sapiro ; mailman-users@python.org
Subject: Re: [Mailman-Users] migrating current list links to mailman

Thanks very much for the information. Good to know I was on the right track, 
but even with your verification and better code, the redirect still takes me to 
the new /listinfo/listname (subscribe) page rather than the new jl.htm page.

I have put the new jl.htm at /var/lib/mailman/lists/listname/jl.htm

And, the redirection code at /etc/httpd/conf.d/mailman.conf
# Uncomment the following line, to redirect queries to /mailman to the 
listinfo page (recommended).
RedirectMatch ^/soalists/(.*)/jl.htm /mailman/listinfo/$1
RedirectMatch ^/mailman[/]*$ /mailman/listinfo
RedirectMatch ^[/]*$ /mailman/listinfo

I suspected the last two lines of RedirectMatch were causing the issue, but I 
get the same result if I remark them out.

Thanks again!
~Ed


-Original Message-
From: Mailman-Users [mailto:mailman-users-bounces+ed.beu=alaska@python.org] 
On Behalf Of Mark Sapiro
Sent: Tuesday, June 14, 2016 9:05 AM
To: mailman-users@python.org
Subject: Re: [Mailman-Users] migrating current list links to mailman

On 06/13/2016 11:23 AM, Beu, Ed (DOA) wrote:
> 
> Example:http:/list.domain/lists/listname/jl.htm   
> 
>  http:/list.domain/mailman/listinfo/listname  
>  
> 
> We would like some type of redirect in place on the new mailman server that 
> would simply display the new link (so that it can be copied) when someone 
> uses an old bookmark or hyperlink on a different website.


There are various ways to do this depending on what you want the user to
see.

If I understand the URL scheme above something in Apache like

RedirectMatch ^/lists/(.*)/jl.htm  /mailman/listinfo/$1

would serve to redirect http:/list.domain/lists/listname/jl.htm to
http:/list.domain/mailman/listinfo/listname for any 'listname', but if
you actually want to display something to the user, you could create a
replacement lists/listname/jl.htm containing something like

--




List listname - page has moved




Page Moved

The page for the listname list has moved.
The new location is

http:/list.domain/mailman/listinfo/listname.
You will go there automatically in 5 seconds.




--

This will display the page and go to the new page after 5 seconds. You
would need one of these per list. If you want to change the delay,
change '5' to whatever you want in the

 content="5;

line and the

You will go there automatically in 5 seconds.

line. If you want the user to have to click, remove the



lines and the "You will go there automatically" line.


--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Importing archived msgs into a Mailman list

2016-06-14 Thread Mark Sapiro
On 06/14/2016 10:51 AM, John Poltorak wrote:
> I think each msg starts with *Return-Path:*
> so I guess I need to insert an extra line at the start of each msg...
> 
> A simple sed script should suffice to convert each msg. Do I just need
> to insert '*From *'  as the first line of each msg?

Ideally, you insert

'From address date`

where address is the address without the <> from the Return-Path: and
date is the string produced by the 'date' command.

The attached addfrom script is what I use. It's overly complex for your
purpose and converts one message in one file in place. You could
probably adapt it to your purpose.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
#! /bin/bash
#
# Convert a single saved email with a Return-Path: as its first line
# to a mailbox by adding a From_
#
if [ ! -w "$1" ]; then
  echo usage: addfrom file
  exit
fi
d=`date`
f1=`mktemp`
f2=`mktemp`
head -1 "$1" > $f1
if grep -q -i -e "^From " $f1 ; then
  echo File already has From_ line
  rm $f1 $f2
  exit
fi
if ! grep -q -i -e "^return-path:" $f1 ; then
  echo "Return-Path: " > $f1
fi
sed -e "s/^.*.*/  $d/" <$f1 >$f2
# strip any trailing s
sed -e 's/\r$//' < "$1" >> $f2
# make sure we have a trailing empty line
echo >$f1
cat $f2 $f1 $f1 > "$1"
rm $f1 $f2

--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

[Mailman-Users] Configuring 'example.org' as virtual host on localhost

2016-06-14 Thread John Poltorak
Can someone explain what I need to do to properly set up Mailman and Apache
so that I can browse to *http://example.org/mailman
* ?

As far as Mailman is concerned I think I only need to edit mm_cfg.py

I'm not sure about Apache... Also I guess I need to include an entry in the
hosts file to point exampl.org at localhost
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Importing archived msgs into a Mailman list

2016-06-14 Thread John Poltorak
I think each msg starts with *Return-Path:*
so I guess I need to insert an extra line at the start of each msg...

A simple sed script should suffice to convert each msg. Do I just need to
insert '*From *'  as the first line of each msg?

On Tue, Jun 14, 2016 at 5:06 PM, Mark Sapiro  wrote:

> On 06/14/2016 12:36 AM, John Poltorak wrote:
> > I have managed to obtain all the msgs as individual files. I'm not  sure
> > of the mbox format, but hopefully I can create it... Isn't it just a
> > concatenation of all the individual files as a single file? There's
> > probably more to it, but hopefully it is doable without too much
> difficulty.
>
>
> A .mbox is not quite the concatenation of the individual messages. I
> have attached an excerpt of a .mbox file with two messages. The key is
> that the first line of each message is a 'From_' separator that looks like
>
> 'From email@address date'
>
> It begins literally with 'From ' and no other lines in the mbox begin
> with these 5 characters - this is why you sometimes see lines in the
> body of an email that begin 'From ' escaped by inserting '>' as in
> '>From '. For the purposes of bin/arch, the actual contents after the
> leading 'From ' are not important, but in general, there should be an
> email address representing the envelope sender of the message and a date
> in the format of the example. See, e.g.,
> .
>
> --
> 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
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] problems unsubscribing from lists using email address?

2016-06-14 Thread Mark Sapiro
On 06/14/2016 07:59 AM, Adam McGreggor wrote:
> 
> I'm guessing this isn't as simple as the link not being
> "mailto:foo-unsubscribe…; (but wouldn't rule that out).


You can't put mailto: links or other HTML in a list's msg_footer and
have them rendered as HTML because the msg_footer is always in a
text/plain part. The best you can do is put something like
 and hope the user's MUA makes that a
clickable mailto.

-- 
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
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] problems unsubscribing from lists using email address?

2016-06-14 Thread Mark Sapiro
On 06/14/2016 03:45 AM, Adam Morris wrote:
> 
> in the footer of messages for lists I run I put a link for people to
> unsubscribe.
> 
> the link is
> 
> listname dash unsubscribe@domain.


If the user actually sends mail to 'listname-unsubscribe@domain' and
receives no response at all, something is wrong with delivery to that
address. There should be a "The results of your email commands" response
in any case, even if the From: address is not the subscribed address.

So as Adam McGregor suggests, check the logs of the MTA to see if the
mail is received and delivered properly to Mailman.

-- 
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
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] migrating current list links to mailman

2016-06-14 Thread Mark Sapiro
On 06/13/2016 11:23 AM, Beu, Ed (DOA) wrote:
> 
> Example:http:/list.domain/lists/listname/jl.htm   
> 
>  http:/list.domain/mailman/listinfo/listname  
>  
> 
> We would like some type of redirect in place on the new mailman server that 
> would simply display the new link (so that it can be copied) when someone 
> uses an old bookmark or hyperlink on a different website.


There are various ways to do this depending on what you want the user to
see.

If I understand the URL scheme above something in Apache like

RedirectMatch ^/lists/(.*)/jl.htm  /mailman/listinfo/$1

would serve to redirect http:/list.domain/lists/listname/jl.htm to
http:/list.domain/mailman/listinfo/listname for any 'listname', but if
you actually want to display something to the user, you could create a
replacement lists/listname/jl.htm containing something like

--




List listname - page has moved




Page Moved

The page for the listname list has moved.
The new location is

http:/list.domain/mailman/listinfo/listname.
You will go there automatically in 5 seconds.




--

This will display the page and go to the new page after 5 seconds. You
would need one of these per list. If you want to change the delay,
change '5' to whatever you want in the

 content="5;

line and the

You will go there automatically in 5 seconds.

line. If you want the user to have to click, remove the



lines and the "You will go there automatically" line.

-- 
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
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] migrating current list links to mailman

2016-06-14 Thread Beu, Ed (DOA)
Hello,

This may not be the correct forum for this question, but in hopes that it is, I 
have an HTML type question.

We are planning to replace our current listserv software with Mailman 2.x. Our 
root URL will not be changing, but each lists subscription pages will be 
different.

Example:http:/list.domain/lists/listname/jl.htm   

 http:/list.domain/mailman/listinfo/listname   


We would like some type of redirect in place on the new mailman server that 
would simply display the new link (so that it can be copied) when someone uses 
an old bookmark or hyperlink on a different website.

Our Mailman version is 2.1.20 from Yum, on CentOS 6.7, running Apache & Postfix 
& Mimedefang.

Note: I'm an HTML greenie, so any assistance is greatly appreciated.

Thx, Ed

Ed Beu , Systems Programmer
Enterprise Technology Services
Department of Administration
619 E Shipcreek Ave., Ste 232
Anchorage, AK 99501-1677
[ETSLogo]
*Desk:(907)269-6790
?Fax: (907)269-6719
* ed@alaska.gov
" http://www.doa.alaska.gov/ets/



--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Importing archived msgs into a Mailman list

2016-06-14 Thread Mark Sapiro
On 06/14/2016 12:36 AM, John Poltorak wrote:
> I have managed to obtain all the msgs as individual files. I'm not  sure
> of the mbox format, but hopefully I can create it... Isn't it just a
> concatenation of all the individual files as a single file? There's
> probably more to it, but hopefully it is doable without too much difficulty.


A .mbox is not quite the concatenation of the individual messages. I
have attached an excerpt of a .mbox file with two messages. The key is
that the first line of each message is a 'From_' separator that looks like

'From email@address date'

It begins literally with 'From ' and no other lines in the mbox begin
with these 5 characters - this is why you sometimes see lines in the
body of an email that begin 'From ' escaped by inserting '>' as in
'>From '. For the purposes of bin/arch, the actual contents after the
leading 'From ' are not important, but in general, there should be an
email address representing the envelope sender of the message and a date
in the format of the example. See, e.g.,
.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan
From m...@msapiro.net  Wed Jun 19 14:35:45 2013
Return-Path: 
X-Original-To: li...@msapiro.net
Delivered-To: li...@msapiro.net
Received: by msapiro.net (Postfix, from userid 1000)
 id 918F54C0E07; Wed, 19 Jun 2013 14:35:45 -0700 (PDT)
Date: Wed, 19 Jun 2013 14:35:45 -0700
From: Mark Sapiro 
To: li...@msapiro.net
Message-ID: <20130619213545.ga3...@msapiro.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
Subject: [List1] Test 3
X-BeenThere: li...@msapiro.net
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: 
List-Unsubscribe: ,
 
List-Archive: 
List-Post: 
List-Help: 
List-Subscribe: ,
 
X-List-Received-Date: Wed, 19 Jun 2013 21:35:45 -

Wow

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

From m...@msapiro.net  Wed Jun 19 14:36:25 2013
Return-Path: 
X-Original-To: li...@msapiro.net
Delivered-To: li...@msapiro.net
Received: by msapiro.net (Postfix, from userid 1000)
 id D095C4C0E07; Wed, 19 Jun 2013 14:36:25 -0700 (PDT)
Date: Wed, 19 Jun 2013 14:36:25 -0700
From: Mark Sapiro 
To: li...@msapiro.net
Message-ID: <20130619213625.gb3...@msapiro.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
Subject: [List1] Test4
X-BeenThere: li...@msapiro.net
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: 
List-Unsubscribe: ,
 
List-Archive: 
List-Post: 
List-Help: 
List-Subscribe: ,
 
X-List-Received-Date: Wed, 19 Jun 2013 21:36:25 -

abcdef

-- 
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
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Re: [Mailman-Users] problems unsubscribing from lists using email address?

2016-06-14 Thread Adam McGreggor
On Tue, Jun 14, 2016 at 08:45:11PM +1000, Adam Morris wrote:
> in the footer of messages for lists I run I put a link for people to
> unsubscribe.
> 
> the link is
> 
> listname dash unsubscribe@domain.
> 
> If someone clicks on this link and sends a message there is no confirmation
> and they stay subscribed.
> 
> If i go to the members interface and untick the box they get unsubscribed.
> 
> 
> If someone tries to subscribe using the same method it works fine.
> 
> Assistance appreciated.

Do you have the "-unsubscribe" suffix set-up in your MTA? Either globally, or
for that/those list(s)?

For exim, something like `exim -bt foo-unsubscr...@lists.example.net` should
help you.

It's possibly worth checking the logs of your MTA to see what happens, as well
as the Mailman 'subscribe' log.

I'm guessing this isn't as simple as the link not being
"mailto:foo-unsubscribe…; (but wouldn't rule that out).


-- 
—
"The Minister's office rang back saying that he would be delighted
 to see me for tea. That evening I went home, very excited, and
 told my partner, 'I'm going to see the Minister for tea.' He
 replied, 'There's a Minister for Tea?'"
— Chris Bryant, MP
  (http://www.theyworkforyou.com/whall/?gid=2008-10-23a.149.1)
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

[Mailman-Users] problems unsubscribing from lists using email address?

2016-06-14 Thread Adam Morris

Hi all,


in the footer of messages for lists I run I put a link for people to 
unsubscribe.


the link is

listname dash unsubscribe@domain.

If someone clicks on this link and sends a message there is no 
confirmation and they stay subscribed.


If i go to the members interface and untick the box they get unsubscribed.


If someone tries to subscribe using the same method it works fine.

Assistance appreciated.




--


Adam Morris

email:
a...@damorris.com




--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Importing archived msgs into a Mailman list

2016-06-14 Thread John Poltorak
I have managed to obtain all the msgs as individual files. I'm not  sure of
the mbox format, but hopefully I can create it... Isn't it just a
concatenation of all the individual files as a single file? There's
probably more to it, but hopefully it is doable without too much difficulty.

On Wed, Jun 8, 2016 at 3:22 PM, Mark Sapiro  wrote:

> On 06/08/2016 01:01 AM, John Poltorak wrote:
> > Is it possible to import archived msgs which are in a digest form,
> > originally from a Mailman mailing list, into a new mailing list?
>
>
> Maybe, but that's not the best way. The tool is Mailman's bin/arch. Run
> it with --help to see it's doc.
>
> The input must be in *nix mbox format. You can convert a digest, but the
> best way is if you still have access to the old list, the
> archives/private/LIST.mbox/LIST.mbox file already has the messages with
> all headers which a digest doesn't have.
>
> --
> 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
> https://mail.python.org/mailman/listinfo/mailman-users
> Mailman FAQ: http://wiki.list.org/x/AgA3
> Security Policy: http://wiki.list.org/x/QIA9
> Searchable Archives:
> http://www.mail-archive.com/mailman-users%40python.org/
> Unsubscribe:
> https://mail.python.org/mailman/options/mailman-users/karotlopj%40gmail.com
>
--
Mailman-Users mailing list Mailman-Users@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org