Re: [Mailman-Users] List Admin sent to wrong domain--solved

2003-08-14 Thread John Locke
Hello,

I'm surprised nobody had an answer for this. Anyway, I just figured it
out. While checking top on the server, I noticed that a Python process
owned by mailman was taking up all the extra CPU, at a low priority,
with some 52 hours of processing time.

I used mailmanctl to stop and restart, but the process came right back
up to the top of the list. So I tried doing an strace on the process,
and it was quite active... it kept adding, renaming, and deleting a file
in qfiles/out. 

On Sat, 2003-08-09 at 13:11, John Locke wrote:

> I checked in the qfiles/ directories, couldn't find it there. I tried
> stopping and starting mailmanctl. I checked all of the Postfix queues,
> and it's nowhere to be found. Where do I find this message, and how do I
> get rid of it?

So I rechecked this directory, and found that mailman kept creating and
deleting two files, a .db and a .pck in this directory, each time with a
new name, a few times a second! I stopped mailmanctl, and this time the
files were there. I deleted them, restarted mailmanctl, and both
problems are solved--no more attempts to mail to the bad domain every
hour, and mailman is no longer hogging all the cpu time.

Cheers,
John Locke
Owner, Freelock, LLC
Small Business Computing with Open Source
http://www.freelock.com



--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] how can I get a list of all members of my maillist

2003-08-12 Thread John Locke
1. Use the command line:

list_members 

You can also use the shell to put this in a file for you:

list_members my_list >  my_list_members.txt

2. If your list is small, edit Mailman/mm_cfg.py, adding a line that 
sets the chunksize (the number of list members to show on that page) to 
a number bigger than the number of subscribers (this affects all lists 
on the Mailman installation):

DEFAULT_ADMIN_MEMBER_CHUNKSIZE = 200

Cheers,
John Locke
[EMAIL PROTECTED] wrote:

Folks,
I using mailman 2.1.2. How can I get a list of all members of my maillist?
I wnat to be able to cut and paste the list and put it in an email or another 
document. But I can only see it a few members at a time.
Thanks,
Ed Franckowiak
[EMAIL PROTECTED]
 



--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] List Admin sent to wrong domain--cancel?

2003-08-10 Thread John Locke
Hello,

I set up a new list yesterday on a MM 2.1 server with Postfix 2.0.6.
I've been running several lists on this machine, without problems, for
months.

The problem is, I mis-typed the domain name for the list administrator.
Today, I noticed in the Postfix logs that this message had been bounced
with a 450 temporary failure, domain not found.

I removed the list with rmlist, and then set it up again, using newlist
with the correct admin email address. 

The problem is, the message continues to bounce (in the logs) every hour
on the hour, and I can't seem to find it anywhere.

I checked in the qfiles/ directories, couldn't find it there. I tried
stopping and starting mailmanctl. I checked all of the Postfix queues,
and it's nowhere to be found. Where do I find this message, and how do I
get rid of it?

Thanks
John Locke


--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Keeping subscription info in sync acrossservers

2003-02-10 Thread John Locke
On Mon, 2003-02-10 at 08:53, Morgan Jones wrote:

> Attempting to keep mailman's backend text files synced between servers
> is sure to prove tricky..  I don't believe mailman has any built-in
> redundancy.
> 

I don't think it's all that tricky, especially for 1 way.
> 
> 
> On Mon, Feb 10, 2003 at 04:41:32PM +, Ian Chilton wrote:
> | 
> | I was wondering if there was an easy way to keep subscription info in
> | sync across multiple list servers.
> | 
> | What I want to do is setup a backup list server which will still
> | deliver list mail if the main box is down. So, I only need a single way
> | replication, i.e all changes are made on the main server and the 2nd
> | server just has to stay in sync.
> | 
> | I was thinking an easy way to do this would be to have a function in
> | mailman which made it automatically sent an e-mail or made a socket
> | connection to the other server when any options or subscriptions were
> | changed.
> | 

I'm sure you could dig around in Mailman to find a place to hook some
sort of trigger for a script, and the people on Mailman-Developers can
certainly help you find it.

Much easier is to write a simple script that runs from cron. Could be as
simple as:

#!/bin/bash
/usr/local/mailman/bin/list_members listname | mail -s "listname update"
[EMAIL PROTECTED]

Then, on the other server, set up an email address that dumps the
message to another script. This script (in the language of your choice)
should parse the message to make sure it comes from the other server
(don't want people from anywhere else screwing with your membership
list!), extracts the body of the message, and pipes it to
/usr/local/mailman/bin/sync_members listname (or wherever your
environment is).

You can also set up a web service to do basically the same thing, though
the email route might be a little more reliable (because MTAs usually
manage to deliver the message, even if the connection is out for a
while.) If you're looking for a chance to learn about web services, it
would be a great sample project.

Lots of ways to make this more sophisticated, if you need to keep track
of who's on digest, etc.

Hope that helps...

Cheers
-- 
John Locke
Owner, Freelock, LLC
http://freelock.com
Just launched: http://teamcheckin.com


--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: archive@jab.org
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org



Re: [Mailman-Users] Mailman stat's

2003-02-07 Thread John Locke
Hello, Simon,

I've got other stuff going on right now, but I saved your message with
your scripts, and plan to evaluate them/convert them for PHP/MySQL when
I get a chance. (probably not this week!)

On Fri, 2003-02-07 at 01:31, Simon White wrote:
> 07-Feb-03 at 02:10, Jon Carnes ([EMAIL PROTECTED]) wrote :
> > Dang it!  I've got another script that does exactly that... I should have
> > included it.  I'll dump it on the list when I get done with this job
> > (sometime - hopefully - tomorrow).  It's a fairly simple script that I run
> > monthly - only it uses the log entries and isolates the entries that
> > indicate a user has been moved over to no-mail due to excessive bounces.
> 
> I look forward to it. That would solve my problem of re-synching back to
> the MSSQL database to eliminate those people who have been
> auto-unsubscribed. Chrs!
> 
> I didn't hear from anyone that my scripts I posted might be useful, so
> if they are to anyone, let me know, and I will post back the other half
> of the script to synchronise back to the SQL server (although it appears
> this may become redundant when SQL plugins for Mailman exist).
> 
Yes, I'd like to see the rest of your scripts... I have ideas on how to
do this, but a few other things that need to get done first.

I'll post back to the list PHP/MySQL versions of your scripts, if they
seem relevant to my needs (to synchronize mailman users/passwords with
my site users).

Cheers,
-- 
John Locke
Owner, Freelock, LLC
http://freelock.com
Just launched: http://teamcheckin.com


--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: archive@jab.org
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org



Re: [Mailman-Users] Per Virtual domain customizations

2003-02-04 Thread John Locke
On Tue, 2003-02-04 at 09:25, Todd wrote:

> I haven't seen anyone announce a MySQLMemberAdaptor yet either, but
> Martin
> Whinnery made an announcement here a few weeks ago for an
> LDAPMemberAdaptor.
> If you know some python, perhaps you want to look at the LDAP version
> and
> try and convert it for use with MySQL. You'd surely make a lot of
> friends if
> you did it. :)
> 
> The URL for the LDAPMemberAdaptor is
> http://webserver.offal.homelinux.org
> 
> You might also want to look at ~mailman/Mailman/MemberAdaptor.py if
> you're
> thinking of attempting this.

Thanks for the note. I don't know any Python, but maybe I'll take a
whack at it if I find the time...

> 
> You might already know this, but here's what the very helpful comments in
> Mailman.Utils.maketext say:
> 
> # When looking for a template in a specific language, there are 4 places
> # that are searched, in this order:
> #
> # 1. the list-specific language directory
> #lists//
> #
> # 2. the domain-specific language directory
> #templates//
> #
> # 3. the site-wide language directory
> #templates/site/
> #
> # 4. the global default language directory
> #templates/
> #
> # The first match found stops the search.  In this way, you can
> # specialize
> # templates at the desired level, or, if you use only the default
> # templates, you don't need to change anything.  You should never modify
> # files in the templates/ subdirectory, since Mailman will
> # overwrite these when you upgrade.  That's what the templates/site
> # language directories are for.
> 
> Perhaps the second option is what you're looking for?

Ah, that solves half of my problem! Thanks a lot. No, I hadn't found
this text, anywhere.

Any suggestions for the last part--having different default options for
different domains in mm_cfg.py? It would be great if I could just have a
different mm_cfg.py for each domain. Alternatively, is there code I
could put into mm_cfg.py that would recognize what domain we're in, and
set different defaults accordingly?

Thanks,
John


--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: archive@jab.org
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org



Re: [Mailman-Users] Per Virtual domain customizations

2003-02-04 Thread John Locke
On Tue, 2003-02-04 at 00:40, Simon White wrote:
> 03-Feb-03 at 20:00, John Locke ([EMAIL PROTECTED]) wrote :
> > 
> > 1. Is there any support for storing member information in a SQL
> > database, with MM 2.1?
> > 
> 
> I do this via synchronisation. A script that calls
> add_member/remove_member called from the code that does the
> INSERT/DELETE query in SQL. It's not particularly robust but it works.
> 
Yes, this is what I was thinking I would have to do. I had just found
some references to a SQL "member adapter" for Mailman, during a web
search, but was unable to find anything about implementing it.

The biggest issue is that my web server is separate from my mail server
(both are running MySQL, but for reliability, I'm having the web site
hosted). So I'm gonna have to develop some sort of replication
/synchronization scheme to handle connection outages...


> > 2. Is there any way to customize lists on a per-virtual-domain basis?
> > Something as simple as having a different mm_cfg.py, and a different
> > templates/ directory for each domain would be what I'm looking for--but
> > can't quite get it to work. 
> 
> I don't know if this is fully possible, but I know each list can have
> it's own language preference so I guess there are other parameters each
> list can have uniquely.

So far I've been able to set per-list configurations, using config_list
after the list is created. I found if I create an "en/" directory inside
the directory for the list, any templates I put in there are used before
the ones in the main template directory. But this doesn't help for the
initial list-creation email sent to the list admin (because the list
isn't created beforehand), or for the ADMIN_CATEGORIES variable (because
it seems to be site-wide).

Any other ideas?

Thanks,
-- 
John Locke
http://freelock.com
Just launched: http://teamcheckin.com



--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: archive@jab.org
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org



Re: [Mailman-Users] Per Virtual domain customizations

2003-02-03 Thread John Locke
Nothing but silence... Let me simplify & rephrase my questions:

1. Is there any support for storing member information in a SQL
database, with MM 2.1?


2. Is there any way to customize lists on a per-virtual-domain basis?
Something as simple as having a different mm_cfg.py, and a different
templates/ directory for each domain would be what I'm looking for--but
can't quite get it to work. 


Thanks,
-- 
John Locke
http://freelock.com
Just launched: http://teamcheckin.com



On Sun, 2003-02-02 at 17:47, John Locke wrote:

> 1. I've seen some references to a way of managing users in a SQL
> database. Is this implemented yet? I haven't been able to find anything
> explaining how to go about doing it. Since my users are already going to
> have an entry in a SQL database, I thought it would be great to combine
> the site password for a user with the mailman password, and make the
> whole thing less confusing.
> 

> 
> I have a few other ideas for web sites that might use different default
> configurations of Mailman. So here's a few questions related to this: 
> 
> 3. Can you customize default information/templates for a single virtual
> domain? It appears that changing the Mailman/templates/* affects the
> entire site. Is there a way to have different default templates, based
> on the virtual host? Probably simpler--what Python syntax would I use to
> add custom default variables to the mm_cfg.py file, and where would I
> start to dig to find where the templates are loaded, so I could hack in
> some conditional path changes?
> 




--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: archive@jab.org
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org



[Mailman-Users] Per Virtual domain customizations

2003-02-02 Thread John Locke
Hello,

I've been using Mailman for a while now for a single, low-traffic,
low-membership list. I'm now launching a service that's going to use
mailman for quite a few more low-traffic, low-membership lists, and I'm
trying to set up some customizations for the membership and
administrative interfaces. This is going to be fairly tightly integrated
with a web site that uses a MySQL database to store a bunch of
membership information. So now I've done a bit of digging, and figured
out how to modify the templates and mailing list defaults, but there's 
a couple of things I'm still trying to figure out:

1. I've seen some references to a way of managing users in a SQL
database. Is this implemented yet? I haven't been able to find anything
explaining how to go about doing it. Since my users are already going to
have an entry in a SQL database, I thought it would be great to combine
the site password for a user with the mailman password, and make the
whole thing less confusing.

2. I can't figure out how to get default text that uses a variable into
the list at creation time. I'd like the description to have a specific
short sentence that includes the %(real_name)s variable, but I don't
know much about Python, and it doesn't seem to work. Can I put this
variable in the description text, and have it expand correctly?


I have a few other ideas for web sites that might use different default
configurations of Mailman. So here's a few questions related to this: 

3. Can you customize default information/templates for a single virtual
domain? It appears that changing the Mailman/templates/* affects the
entire site. Is there a way to have different default templates, based
on the virtual host? Probably simpler--what Python syntax would I use to
add custom default variables to the mm_cfg.py file, and where would I
start to dig to find where the templates are loaded, so I could hack in
some conditional path changes?

4. I'm confused about the ADMIN_CATEGORIES variable. I redefined it in
mm_cfg.py (to remove some of the categories for list admins--I'm trying
to make this whole thing very simple for my users), and it changed the
menu site-wide. I'm thinking, if I knew the basic conditional construct
for Python, I could just redefine it for specific domains. Is there any
function set up to do this already, or something else I should consider
before doing so?

Guess I'm answering some of my own questions here. I know nothing about
Python--maybe I'll go read up on it a bit first. But if somebody could
give me an answer for #1, I'd appreciate it, and if there's any short
cuts I should look at for the others, it'd be great!

I do have virtual domains working just fine, otherwise...

Thanks,
John Locke
http://www.freelock.com
Just launched: http://teamcheckin.com






--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: archive@jab.org
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org



Re: [Mailman-Users] single sign-on

2002-11-21 Thread John Locke
Wow. Storing user info in a SQL database is exactly a feature I need. I
was about to write a script to synchronize member data with a SQL
database--if I could store the member data there in the first place, I
won't need to write the script!

Where can I learn the details?

Cheers,
John


On Wed, 2002-11-20 at 15:48, Ajay Sharma wrote:
> On 20 Nov 2002, Jon Carnes wrote:
> 
> > If you move up to the 2.1B5 version of mailman then you can use an SQL
> > database to store the list information and membership information.  
> > Then with some judicious use of SQL commands you can set the users to
> > all use the same passwords.
> 
> Are there any docs, howto's, examples of this??  I looked about a month 
> ago to convert my lists to the latest beta but I couldn't find any 
> information about the SQL stuff.  When I searched the mailing lists I 
> only found people talking about it and not actually doing it.


--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: archive@jab.org
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org



Re: [Mailman-Users] Still can't locate the place to change a virtual domain name's base URL for MM2.1b3

2002-10-17 Thread John Locke
Fuzzy said:
>

> I reran with the same script, I'd posted before.
> its still failing. I don't know python, I looked
> and line 271 is just
>
> mail()
>
>
> Script started on Thu Oct 17 19:31:09 2002
> pooh /usr/local/mailman> bin/withlist -l -r fix_url_mt mt
> Importing fix_url_mt...
> Running fix_url_mt.fix_url_mt()...
> Traceback (most recent call last):
>   File "bin/withlist", line 271, in ?
> main()
>   File "bin/withlist", line 246, in main
> func = getattr(mod, callable)
> AttributeError: 'module' object has no attribute 'fix_url_mt'
> pooh /usr/local/mailman> exit
> Script done on Thu Oct 17 19:31:15 2002
>

Ah, I see the problem...

I don't know Python, either, but I just hacked that script when I needed
to run it. Looks like there's one other thing I changed:

def fix_url(mlist):

needs to be changed to the same name as the script:

def fix_url_mt(mlist):

This is the line before the web_page_url that you had to change.

Cheers,
John




--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/



Re: [Mailman-Users] Still can't locate the place to change a virtual domain name's base URL for MM2.1b3

2002-10-17 Thread John Locke
Hey fuzzy, fix your MTA!


Responding via the list, because your MTA is bouncing mail from me...
because, according to your MTA, my mail's coming from a spam-friendly
domain...

I'm relaying my mail through my ISP, AT&T Broadband (attbi.com), and
you're bouncing all mail from there. Hate to think how many legitimate
messages you're bouncing... and if you're taking a stand against the
biggest cable operator for spam, I'm not sure how you can expect anybody
to help you, when they can't even email you!


Okay, sorry 'bout the flame. Back to your question:


Fuzzy said:



> I just tried that I have a bunch of lists that are now virtually
> hosted, (they were on the main domain qhen created).
>
>   mt - Multiple Treasures
>mt-bj - Multiple Treasures - Beginning of Journey
>   mt-littles - Multiple Treasures Littles
>mt-rr - MT's Reading Room
>mt-so - Multiple Treasures SO's
> mt-staff - Multiple Treasures Staff
>  mt2 - Multiple Treasures Two
>
> I copied fix_url.py and changed the line as shown...
>
> #! /usr/local/bin/python
>
> """Reset a list's web_page_url attribute to
> http://www.multipletreasures.org/mailman
>
> This script is intended to be run as a bin/withlist script, i.e.
>
> % bin/withlist -l -r fix_url_mt 
> """
>
> import paths
> from Mailman import mm_cfg
> from Mailman.i18n import _
>
>
>
> def fix_url(mlist):
> mlist.web_page_url = 'http://www.multipletreasures.org/mailman'
> print _('Saving list')
> mlist.Save()
> mlist.Unlock()
>
>
>
> if __name__ == '__main__':
> print _(__doc__.replace('%', '%%'))
>
> Then I ran bin/withlist fix_url_mt.py mt
> and got the following traceback?
>
> Importing fix_url_mt...
> Running fix_url_mt.py()...
> Traceback (most recent call last):
>   File "bin/withlist", line 271, in ?
> main()
>   File "bin/withlist", line 246, in main
> func = getattr(mod, callable)
> AttributeError: 'module' object has no attribute 'py'
>
> I also tried without the .py and got 'has no attriubute fix_url_mt'?
>



bin/withlist -l -r fix_url_mt mt

You forgot the flags...

Type

bin/withlist

for command line help...

-l locks the list while the change is being made...
-r indicates the next arg is a script to execute...

You don't need the .py.

Cheers,
John




--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/



Re: [Mailman-Users] Still can't locate the place to change a virtual domain name's base URL for MM2.1b3

2002-10-17 Thread John Locke
I had this problem initially, too, until I figured out that when you use
newlist to create your list, you need to put the domain name of the web
host, not the email host.

For example, if you're in the mailman home directory, type:

bin/newlist [EMAIL PROTECTED]

instead of

bin/newlist [EMAIL PROTECTED]

The former sets the web host to "www.domain.com", and, if you have that in
your mm_cfg.py, sets the email host to "domain.com".

So how do you change the web host for existing lists? The setting was
available from the web page in 2.0.x, but it's no longer there in 2.1b.

I'm no Python person, but I was able to change my existing lists directly,
using the bin/fix_url.py script and bin/withlist. I created a copy of
fix_url.py (in this example, fix_domain.py), and changed the line:

mlist.web_page_url = mm_cfg.DEFAULT_URL_PATTERN % mm_cfg.DEFAULT_URL_HOST

to:

mlist.web_page_url = 'http://www.domain.com/mailman'


Then ran the script with:

bin/withlist -l -r fix_domain 


Hope this helps,


-- 
John Locke
Owner, Freelock, LLC
http://www.freelock.com



Fuzzy said:
>
> Mailman 2.1b3
> FreeBSD 4.7rc
> Python 2.2.1
> Sendmail 8.12.6
>
> I looked at the Mailman Administration Guide V2,
> http://staff.imsa.edu/~ckolar/mailman/mailman-administration-v2.html.
>
> The guide tells me that the "Base URL Mailman web interface" is an
> option of the General Options admin page, but it does not appear on our
> Admin General Options pages. Has it moved to some other page / location
> for MM2.1b3? My main page has "Host name this list prefers for email" vs
> "Host name this list prefers". I ran ~mailman/bin/config_list and
> searched the result for the value "web_page_url" variable. The result
> was only a comment and the text for the footer. Do I need to substitute
> the literal Base URL for the variable in the input to config_list to get
> mailman to put the correct, (changed to virtual domain name after list
> creation), base URL in the footer and the RFC-2369 headers? I've already
> added the code to mm_cfg.py to define the virtual domains as well as the
> real domain.
>
> 
>




--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/



[Mailman-Users] Accessing commands from PHP

2002-06-24 Thread John Locke

Hello,

I'm doing some web application development using PHP/MySQL, and am looking
for a programmatic way of checking to see if a user is already subscribed
to a Mailman list.

I'm using a hosting company that has Mailman 2.1 installed in a Virtual
Hosting environment, and they pointed me to the list.org pages.

I'd like to use the find_member command, but am having trouble. I've
located it on the file system, and when I execute it using backticks, I
can get the help message, but I can't actually get any results when I run
it against a username.

Here's my command:

$output = `cd /usr/local/cpanel/3rdparty/mailman/bin; ls -l; ./find_member
--help; ./find_member [EMAIL PROTECTED]`;   echo "$output";


 and here's the output:


total 144
-rwxr-xr-x1 mailman  mailman  6620 Jun 21 01:09 add_members
-rwxr-xr-x1 mailman  mailman  3838 Jun 21 01:09 arch
-rwxr-xr-x1 mailman  mailman  2462 Jun 21 01:09 check_db
-rwxr-xr-x1 mailman  mailman  8964 Jun 21 01:09 check_perms
-rwxr-xr-x1 mailman  mailman  7123 Jun 21 01:09 clone_member
-rwxr-xr-x1 mailman  mailman  8090 Jun 21 01:09 config_list
-rwxr-xr-x1 mailman  mailman  4474 Jun 21 01:09 digest_arch
-rwxr-xr-x1 mailman  mailman  1282 Jun 21 01:09 dumpdb
-rwxr-xr-x1 mailman  mailman  4915 Jun 21 01:09 find_member
-rwxr-xr-x1 mailman  mailman  2957 Jun 21 01:09 list_lists
-rwxr-xr-x1 mailman  mailman  3519 Jun 21 01:09 list_members
-rwxr-xr-x1 mailman  mailman  2386 Jun 21 01:09 mmsitepass
-rwxr-xr-x1 mailman  mailman  2440 Jun 21 01:09 move_list
-rwxr-xr-x1 mailman  mailman  6983 Jun 21 01:09 newlist
-rw-r--r--1 mailman  mailman  1552 Jun 21 01:09 paths.py
-rw-r--r--1 mailman  mailman   276 Jun 21 01:09 paths.pyc
-rwxr-xr-x1 mailman  mailman  3051 Jun 21 01:09 remove_members
-rwxr-xr-x1 mailman  mailman  2952 Jun 21 01:09 rmlist
-rwxr-xr-x1 mailman  mailman  8234 Jun 21 01:09 sync_members
-rwxr-xr-x1 mailman  mailman 12809 Jun 21 01:09 update
-rwxr-xr-x1 mailman  mailman   925 Jun 21 01:09 version
-rwxr-xr-x1 mailman  mailman  6245 Jun 21 01:09 withlist
Find all lists that a member's address is on.

Usage:
find_member [options] regex [regex [...]]

Where:
--listname=listname
-l listname
Include only the named list in the search.

--exclude=listname
-x listname
Exclude the named list from the search.

--owners
-w
Search list owners as well as members.

--help
-h
Print this help message and exit.

regex
A Python regular expression to match against.

The interaction between -l and -x is as follows.  If any -l option is given
then only the named list will be included in the search.  If any -x option is
given but no -l option is given, then all lists will be search except those
specifically excluded.

Regular expression syntax is Perl5-like, using the Python re module. 
Completespecifications are at:

http://www.python.org/doc/current/lib/module-re.html

Address matches are case-insensitive, but case-preserved addresses are
displayed.





[EMAIL PROTECTED] is subscribed to lists, but whatever I run, I get no
response (list_lists, list_members ).

I'm sure the command is being run as the web server (nobody:nobody). I'm
guessing this is a permissions issue. What permissions do I need/how can I
get responses to these commands, in this environment?

Thanks,
John Locke
http://www.freelock.com






--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py