Re: [Mailman-Users] Mailman-Users Digest, Vol 124, Issue 8
2014-06-09 13:00 GMT+03:00 mailman-users-request@python.org:
Message: 3 Date: Sun, 8 Jun 2014 16:40:35 -0400 From: Rich Kulawiec rsk@gsp.org To: mailman-users@python.org Subject: Re: [Mailman-Users] Export all subsribers Message-ID: 20140608204035.GA29177@gsp.org Content-Type: text/plain; charset=us-ascii
On Sun, Jun 08, 2014 at 08:11:54PM +0300, EyeLand wrote:
Hello, on mailing list I have many emails on "Membership Management...
- [Membership List]", how I can export all on txt file? Thank you.
From the shell:
~mailman/bin/list_members name-of-mailing-list
will put the list on stdout, so you could redirect it to a file if you wish:
~mailman/bin/list_members name-of-mailing-list > roster
If you have a number of mailing lists and want to dump them all, you could use something along the lines of:
#!/bin/csh set filelist = `~mailman/bin/list_lists -b` foreach i ($filelist) ~mailman/bin/list_members $i > $i.roster end
which will create a series of files whose names consist of the name of each mailing list suffixed with ".roster".
---rsk
root@vps1:~# ~mailman/bin/list_members mailman -bash: ~mailman/bin/list_members: No such file or directory
OR
root@vps1:~# ~mailman/bin/list_members mailman@host -bash: ~mailman/bin/list_members: No such file or directory
where I can read right name of my mailing list?
On 06/09/2014 11:32 AM, EyeLand wrote:
root@vps1:~# ~mailman/bin/list_members mailman -bash: ~mailman/bin/list_members: No such file or directory
OR
root@vps1:~# ~mailman/bin/list_members mailman@host -bash: ~mailman/bin/list_members: No such file or directory
where I can read right name of my mailing list?
If this is cPanel, You need to use the cPanel list name of the form mailman_host. I.e., it's usually the list's posting address with the '@' replaced by '_'. In any case, it's the same name as used in URLs like http://HOST/mailman/listinfo/LIST_HOST.
(and please don't post with digest subjects.)
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
2014-06-09 22:51 GMT+03:00 Mark Sapiro mark@msapiro.net:
If this is cPanel, You need to use the cPanel list name of the form mailman_host. I.e., it's usually the list's posting address with the '@' replaced by '_'. In any case, it's the same name as used in URLs like http://HOST/mailman/listinfo/LIST_HOST.
(and please don't post with digest subjects.)
url http://vps1.ournet.biz/cgi-bin/mailman/listinfo/mailman email mailman@vps1.ournet.biz control panel ISPConfig https://vps1.ournet.biz:8080/
now I want only to export all emails (10 000) to txt file from that mailman list
Since whatever packaged Mailman this is has put (copies of? links to?) mailman's bin commands in /usr/sbin, as root you can probably just do
list_members mailman
or you can always do
/usr/lib/mailman/bin/list_ members mailman
(apparently ~mailman doesn't resolve to /usr/lib/mailman)
yes I open putty as root
On 06/09/2014 01:16 PM, EyeLand wrote:
url http://vps1.ournet.biz/cgi-bin/mailman/listinfo/mailman email mailman@vps1.ournet.biz control panel ISPConfig https://vps1.ournet.biz:8080/
now I want only to export all emails (10 000) to txt file from that mailman list
First, do
list_members --help
to see what all the options are, or based on your earlier reported 'locate' results you could do
man list_members
Then you may want something like
list_members mailman > /path/to/output/file
if you only want email addresses or maybe
list_members mailman -f > /path/to/output/file
if you want the member's names if available.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 06/09/2014 01:16 PM, EyeLand wrote:
urlhttp://vps1.ournet.biz/cgi-bin/mailman/listinfo/mailman emailmailman@vps1.ournet.biz control panel ISPConfighttps://vps1.ournet.biz:8080/
now I want only to export all emails (10 000) to txt file from that mailman list
If I interpret the poster's request, EyeLand wants all of the messages that have been posted to the list in a .txt file. If this is the case, then the list archives in
$listname.mbox/$listname.mbox
has all of the posted mail messages in mbox format. That is essentially a .txt file with a
"From email address date"
line beginning in column 1 at the start of each message in the file.
--Barry Finkel
participants (3)
-
Barry S. Finkel
-
EyeLand
-
Mark Sapiro