Re: [Mailman-Users] is it possible to moderate E-mail without webpanel ? using only e-mail commands ?

2017-04-04 Thread Mark Sapiro
On 04/04/2017 07:32 AM, Zalezny Niezalezny wrote:
> 
> is it possible to moderate Mailman newsletter E-mails without Mailman
> Webpanel ?
> 
> So, user (administrator) sending newsletter e-mail to
> 
> l...@example.com


Set the list so all posters are moderated so all posts are held.

Set the list's admin_immed_notify (under Notifications on the General
Options page) to Yes.

Then a post to the list will be held and a notice sent to the owners and
moderators.

The notice will contain 3 MIME parts. The first part is a notice about
the held message. The second part is the message itself. The third part
is a message that says:

If you reply to this message, keeping the Subject: header intact,
Mailman will discard the held message.  Do this if the message is spam.
If you reply to this message and include an Approved: header with the
list password in it, the message will be approved for posting to the
list.  The Approved: header can also appear in the first line of the
body of the reply.

There are two things to note about this. The message in the second MIME
part is the message as received my the list. It has not been content
filtered or decorated with header and/or footer, so it is not exactly
what a list member will see.

The other thing is "If you reply to this message" in the 3rd MIME part
refers to the message which is the 3rd part, not the whole notice. It's
not critical that you actually "reply", but that message part is From:
the list-request address with Subject: confirm xx where xx is a
specific confirmation token for the held message, so to approve the held
message by email, you need to send a "reply" To: the list-request
address with Subject: confirm xx and with the first line of the body
being

Approved: 

where  is the list admin or moderator password.

-- 
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] is it possible to hide email addresses...

2011-05-30 Thread Mark Sapiro
On 5/30/11 3:14 PM, marci Boskie's Mama =^..^= wrote:
>   My question is ... is there a way to set the system so that the email
> addresses of  the people writing in dont show up on the digest ?
[...]
> I d love to be able find a way to hide the email addresses
> from being displayed. ... so that just the name would show ( as in my
> case, the marci Boskie's Mama" part .. but not the email address in the
> brackets  ...


You can easily do the first by setting your list anonymous by setting
anonymous_list to Yes on the list admin General Options page. However,
anonymous lists replace the From: address with the list's address so
there will be no header left in the mail that identifies the poster's
name or address.

This may or may not be a solution for you.

-- 
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
http://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: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Is it possible to use html in footer for all emailssent to list?

2011-04-07 Thread Mark Sapiro
Nick Putman wrote:
>
>I am trying to set up mailman for the first time and would like to add 
>an html image link into the footer of each email that is sent to the 
>list.  At the moment all I am seeing is the raw html.
>
>So far I have changed the following settings:
>
>1. Should Mailman convert text/html parts to plain text? This conversion 
>happens after MIME attachments have been stripped. - set to "no"
>
>2. Made sure all users have 'plain' unchecked


This has no effect on individual messages. It only affects the format
of the digest for digest subscribers.


>3. Added 'text/html' to pass mime types
>
>But still I am just getting the html and not the image link.


Because msg_footer is always either appended to the body of a simple
text/plain message or added as a separate text/plain part. Thus any
HTML in the footer is displayed as text rather than rendered as HTML.

Without modifying the code that adds the footer to the message, there's
nothing you can do about this.

-- 
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
http://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: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Is it possible to configure Mailman to receive/sendOutlook encrypted email messages?

2010-07-19 Thread Mark Sapiro
Wang, Mary Y wrote:

>Is it possible to configure Mailman to receive/send Outlook encrypted email 
>messages?


If you mean to decrypt an incoming message encrypted with a list's key
and then to re-encrypt each outgoing message with the recipient's key,
no such capability exists in the standard distribution, but there is a
patch at  which may be
of interest to you.

-- 
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
http://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: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] Is it possible to delay messages?

2009-02-24 Thread Mark Sapiro
James Reid wrote:
>
>What I would like to now do is move to a sort of half-way ground of
>permitting many members to send messages out un-moderated again.  However,
>I'd like to give the impression that the list is still fully moderated by
>creating an automated delay for all un-moderated subscribers (possibly even
>2-3 hours, though a random interval would be even better) between when their
>messages are received and when they are sent out to the list.
>
>I'm using a combination of postfix and mailman... can anyone give me a
>suggestion of how I could create a delay somewhere?


You'd have to do it in Postfix. Mailman has no facility for this. You
might for example be able to use header_checks to identify a message
to, but not from the list and HOLD it, and then run some periodic cron
that would release messages from the HOLD queue.

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

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] Is it possible that a list loses its members?

2008-05-20 Thread Mark Sapiro

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sebastian Hagedorn wrote:
| -- Mark Sapiro <[EMAIL PROTECTED]> is rumored to have mumbled on 20. Mai
| 2008 10:52:34 -0700 regarding Re: [Mailman-Users] Is it possible that a
| list loses its members?:
|
|> | I'm at a loss to explain what might have happened. Any ideas?
|>
|>
|> I can't explain what happened, but the only way I can see something like
|> this happening is if there was a failure in list locking.
|
| Right, that's what we thought ourselves. The member adding is logged and
| we verifed that the notification mails got sent, but it appears that
| both those actions occur *before* the members are actually added.


Actually, no. The members are added before the log is written and the
notices sent. See the ApprovedAddMember method in Mailman/MailList.py.
What has to happen is after the members are added and the config.pck is
saved, some other process has to overwrite the config.pck with one that
doesn't have the added members (at least assuming you don't have a
custom member adaptor that keeps membership elsewhere).


|> I.e. if some
|> other process was updating the list at the same time that add_members
|> was running and the other process locked the list first, then
|> add_members locked the list, added the members and saved and unlocked
|> the list, and finally the other process saved the list without the
|> members.
|
| The other process would probably(?) be the config_list command. Some
| more detail. We found the following just before the list was created:
|
| May 09 14:54:25 2008 (10586) admin.py access for non-existent list:
| listname
| May 09 14:54:25 2008 (11122) admin.py access for non-existent list:
| listname


These are apparently from attempted web access to the admin interface
for the list before it is created.


| The member adding happened just two minutes later:
|
| May 09 14:56:29 2008 (13495) listname: new [EMAIL PROTECTED],


Two minutes is forever in terms of what we're talking about. Even two
seconds is a long time.


| Now the script we use to create new lists does this:
|
| new_list();
| write_config_file();
| config_list();
| add_members();
| demod_members();
| send_mail();
|
| new_list() calls newlist, config_list() calls config_list, and
| add_members() calls add_members - not much of a surprise, I guess.


Are these synchronous calls?  What would have to happen is something
like the following:

config_list is called. It instantiates the list with a lock. It then
reads its input and updates its in memory copy of the list.

While this is going on, add_members is called. It instantiates the list
with a lock., but somehow this fails to wait for config_list to
relinquish its lock. add_members adds the members and saves and unlocks
the updated list.

Then config_list finishes processing and saves its updated list which
doesn't have the members.

This scenario is hypothetical. It depends on list locking to fail
somehow at a low level. It can't result from a coding error in one of
the processes as long as they use standard list methods because a
process can't lock a list without obtaining/refreshing the latest list
data, and a process can't save a list that isn't locked.

Another possible cause is if there was a temporary read error on
config.pck by the process immediately following add_members causing it
to fall back to config.pck.last, but this would be logged in Mailman's
error log.

What do demod_members() and send_mail() do. Is there anything there that
manipulates config.pck other than by standard MailList.MailList methods?


|> I don't think this can result from a simple failure of some process to
|> lock the list since an unlocked list cannot be saved, and locking a list
|> refreshes the data. If there is an issue, it has to be in the locking
|> mechanism itself, but this seems sound and there are no known issues
|> with this, although coincidentally (and I'm sure it's just a rare and
|> strange coincidence) I saw an apparent locking failure last week. See
|> <http://mail.python.org/pipermail/mailman-developers/2008-May/020190.html
|> >.
|>
|> So now we have two reports of possible locking failures. We'll have to
|> keep watching.
|
| There were instances before where listowner talked of strange phenomena,
| but there never was any proof. I admit I never believed them ...

- --
Mark Sapiro <[EMAIL PROTECTED]>The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFIMzoeVVuXXpU7hpMRAmGPAJ9gBdnMFqUsIxqre3iIkEZR9UaykwCgr5Xb
cNC/t7HWoeRzG777k5kGmyM=
=s98Q
-END PGP SIGNATURE-
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo

Re: [Mailman-Users] Is it possible that a list loses its members?

2008-05-20 Thread Sebastian Hagedorn
-- Mark Sapiro <[EMAIL PROTECTED]> is rumored to have mumbled on 20. Mai 
2008 10:52:34 -0700 regarding Re: [Mailman-Users] Is it possible that a 
list loses its members?:



| I'm at a loss to explain what might have happened. Any ideas?


I can't explain what happened, but the only way I can see something like
this happening is if there was a failure in list locking.


Right, that's what we thought ourselves. The member adding is logged and we 
verifed that the notification mails got sent, but it appears that both 
those actions occur *before* the members are actually added.



I.e. if some
other process was updating the list at the same time that add_members
was running and the other process locked the list first, then
add_members locked the list, added the members and saved and unlocked
the list, and finally the other process saved the list without the
members.


The other process would probably(?) be the config_list command. Some more 
detail. We found the following just before the list was created:


May 09 14:54:25 2008 (10586) admin.py access for non-existent list: listname
May 09 14:54:25 2008 (11122) admin.py access for non-existent list: listname

The member adding happened just two minutes later:

May 09 14:56:29 2008 (13495) listname: new [EMAIL PROTECTED],

Now the script we use to create new lists does this:

new_list();
write_config_file();
config_list();
add_members();
demod_members();
send_mail();

new_list() calls newlist, config_list() calls config_list, and 
add_members() calls add_members - not much of a surprise, I guess.



I don't think this can result from a simple failure of some process to
lock the list since an unlocked list cannot be saved, and locking a list
refreshes the data. If there is an issue, it has to be in the locking
mechanism itself, but this seems sound and there are no known issues
with this, although coincidentally (and I'm sure it's just a rare and
strange coincidence) I saw an apparent locking failure last week. See
<http://mail.python.org/pipermail/mailman-developers/2008-May/020190.html
>.

So now we have two reports of possible locking failures. We'll have to
keep watching.


There were instances before where listowner talked of strange phenomena, 
but there never was any proof. I admit I never believed them ...

--
Sebastian Hagedorn - Listmaster - RZKR-R1 (Flachbau), Zimmer 18
Zentrum für angewandte Informatik - Universitätsweiter Service RRZK
Universität zu Köln / Cologne University - Tel. +49-221-478-5587
--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible that a list loses its members?

2008-05-20 Thread Sebastian Hagedorn
-- Brad Knowles <[EMAIL PROTECTED]> is rumored to have mumbled on 20. Mai 
2008 12:32:50 -0500 regarding Re: [Mailman-Users] Is it possible that a 
list loses its members?:



I'm at a loss to explain what might have happened. Any ideas?


What is in the "bounce" log?


Nothing.


The automatic bounce processing could have
unsubscribed them, although I would have thought that the results of that
would show up in the "subscribe" log.


Yup. But see my next reply.
--
Sebastian Hagedorn - Listmaster - RZKR-R1 (Flachbau), Zimmer 18
Zentrum für angewandte Informatik - Universitätsweiter Service RRZK
Universität zu Köln / Cologne University - Tel. +49-221-478-5587
--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible that a list loses its members?

2008-05-20 Thread Mark Sapiro

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sebastian Hagedorn wrote:
|
| we're running Mailman 2.1.9. Today I encountered something that's a
| mystery to me. A few weeks ago we created a list using our custom
| list-creation script that we always use. The list was apparently created
| correctly, like they always are. There were three initial list members
| and I can see them being added in /var/log/mailman/subscribe. Our script
| adds members using the add_members tool.
|
| Every Saturday we run a cronjob that looks for empty lists, i.e. lists
| with no members. The list in question popped up. So I wrote to the list
| owner to ask him why the list was empty. He was completely unaware of
| that. He had received the notifications about the new list members when
| the list was created and nothing since. That's corroborated by the fact
| that there are no unsubscribe lines in any of the log files. Still the
| list was empty.
|
| I'm at a loss to explain what might have happened. Any ideas?


I can't explain what happened, but the only way I can see something like
this happening is if there was a failure in list locking. I.e. if some
other process was updating the list at the same time that add_members
was running and the other process locked the list first, then
add_members locked the list, added the members and saved and unlocked
the list, and finally the other process saved the list without the members.

I don't think this can result from a simple failure of some process to
lock the list since an unlocked list cannot be saved, and locking a list
refreshes the data. If there is an issue, it has to be in the locking
mechanism itself, but this seems sound and there are no known issues
with this, although coincidentally (and I'm sure it's just a rare and
strange coincidence) I saw an apparent locking failure last week. See
.

So now we have two reports of possible locking failures. We'll have to
keep watching.


Brad Knowles wrote:
| What is in the "bounce" log?  The automatic bounce processing could have
| unsubscribed them, although I would have thought that the results of that
| would show up in the "subscribe" log.

Yes - unsubscribes by bounce processing are logged in the "subscribe"
log as is every other removal of a member except for low level
manipulation by a withlist or other script.

- --
Mark Sapiro <[EMAIL PROTECTED]>The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)

iD8DBQFIMw/iVVuXXpU7hpMRAgktAKCmQr16ny6TXLZGz49CcTSh4ci1UQCeIZ6J
bPhKdEIUlw1QEdhAY4Gn09c=
=x1g5
-END PGP SIGNATURE-
--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible that a list loses its members?

2008-05-20 Thread Brad Knowles

Sebastian Hagedorn wrote:


I'm at a loss to explain what might have happened. Any ideas?


What is in the "bounce" log?  The automatic bounce processing could have 
unsubscribed them, although I would have thought that the results of that 
would show up in the "subscribe" log.


--
Brad Knowles <[EMAIL PROTECTED]>
Member of the Python.org Postmaster Team, & Co-moderator of the
mailman-users and mailman-developers mailing lists
--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] is it possible to edit the html for the archivepage?

2008-03-14 Thread Mark Sapiro
Robin Lougee-Heimer wrote:

>A mailman archive was inadvertently made public for a list I own (!) and 
>I'm trying to clean up any pages that were cached by search engines. 
>
>The way to flush the cache created by search engines is easy - just add an 
>html tag in the header section of the webpage pages.  But I can't figure 
>out how to access the html pages for the archive pages generated by 
>mailman.  Is there a way?   (I didn't see this addressed in the faqs or in 
>a quick scan of the documentation.)



Whether your list archives are public or private, the static HTML pages
are all in the archives/private/listname/ directories and can be
edited as you desire, but some pages such as the TOC and index pages
are rewritten as messages are added.

But, this won't do any good. When your archive was public, it was
accessed via the 'pipermail' alias. I.e. it was accessed via a URL of
the form http://www.example.com/pipermail/listname/ which accessed the
archive itself via a symlink in archives/public/. Now that the archive
is private, the symlink is gone, and that 'pipermail' URL no longer
works.

In any case, you need to just wait for the search engine to crawl your
site again, find that the URL now returns a 'not found' and drop its
cached page.

-- 
Mark Sapiro <[EMAIL PROTECTED]>The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to have subscribers in msg_footer?

2007-12-07 Thread Mark Sapiro
Eduardo Ellery wrote:
>
>We run a few lists with less than 20 subscribers and everyone need to know
>who is on the list.


No, you can't list all the subscribers in the footer, but you could
include something like

Membership List: %(web_page_url)sroster/$(list_name)s

in the footer to provide a link to the roster page.

-- 
Mark Sapiro <[EMAIL PROTECTED]>The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to have subscribers in msg_footer?

2007-12-07 Thread Brad Knowles
On 12/7/07, Eduardo Ellery wrote:

>  We run a few lists with less than 20 subscribers and everyone need to know
>  who is on the list.

So far as I know, you cannot achieve this without making changes to 
the source code.

I didn't respond to your message the first time you posted it to the 
list (about two hours ago), because I didn't have a good answer for 
you.  I am responding now in the hopes that you will wait for answers 
from others who might have better answers, instead of just sending 
another copy of your message.

-- 
Brad Knowles <[EMAIL PROTECTED]>
LinkedIn Profile: 
--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] is it possible to set up mailman on a hostwithouta MTA?

2007-11-07 Thread Mark Sapiro
Tomasz Chmielewski wrote:
>
>But I don't want or need any MTA here ;)
>
>So I guess it's just a matter of simple scripting: fetching correct 
>email using fetchmail, and passing it to mail/mailman program in a 
>correct way. Anyone has it documented?


You can fetch the mail from the remote mailbox with fetchmail and pass
it from fetchmail to procmail. Then in your .procmailrc you can set
recipes to deliver to the Mailman mail wrapper with appropriate
options.

Here's an example of procmail recipes used in a somewhat different
context:

# LISTNAME mailman list
:0
* EnvelopeTo ?? ^LISTNAME$
|sudo -u mailman /var/mailman/mail/mailman post LISTNAME
:E
* EnvelopeTo ?? ^LISTNAME-admin$
|sudo -u mailman /var/mailman/mail/mailman admin LISTNAME
:E
* EnvelopeTo ?? ^LISTNAME-bounces$
|sudo -u mailman /var/mailman/mail/mailman bounces LISTNAME
:E
* EnvelopeTo ?? ^LISTNAME-confirm$
|sudo -u mailman /var/mailman/mail/mailman confirm LISTNAME
:E
* EnvelopeTo ?? ^LISTNAME-join$
|sudo -u mailman /var/mailman/mail/mailman join LISTNAME
:E
* EnvelopeTo ?? ^LISTNAME-leave$
|sudo -u mailman /var/mailman/mail/mailman leave LISTNAME
:E
* EnvelopeTo ?? ^LISTNAME-owner$
|sudo -u mailman /var/mailman/mail/mailman owner LISTNAME
:E
* EnvelopeTo ?? ^LISTNAME-request$
|sudo -u mailman /var/mailman/mail/mailman request LISTNAME
:E
* EnvelopeTo ?? ^LISTNAME-subscribe$
|sudo -u mailman /var/mailman/mail/mailman subscribe LISTNAME
:E
* EnvelopeTo ?? ^LISTNAME-unsubscribe$
|sudo -u mailman /var/mailman/mail/mailman unsubscribe LISTNAME


In this case, EnvelopeTo is set to an argument passed to procmail, but
in your case with fetchmail from a single mailbox, the actual envelope
recipient probably isn't available, so you may need to look at To: and
Cc: headers instead which isn't as reliable.

The alternative as Dennis Putnam suggests is to create 10 mailboxes per
list at the remote. Then you can use fetchmail to fetch from a
specific mailbox and pipe to the wrapper with the appropriate
arguments.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] is it possible to set up mailman on a hostwithout a MTA?

2007-11-07 Thread Tomasz Chmielewski
Brad Knowles schrieb:
> On 11/7/07, Tomasz Chmielewski wrote:
> 
>>  So, considering no MTA is running on a machine which runs mailman - how
>>  do I go through this part:
> 
> The way fetchmail works, you download e-mail from the remote server and 
> pass it on to the local MTA.  Therefore, you have to have a local MTA on 
> the recipient machine.  For Mailman, you need something to read those 
> aliases and do the right thing with the messages being processed.

No, fetchmail can also work without a local MTA.
It can pass fetched emails to a local programs or scripts, like:

# cat /tmp/deliver.sh
#!/bin/bash

cat >> /tmp/text



# fetchmail -u user -m /tmp/deliver.sh mail.server
Enter password for [EMAIL PROTECTED]:
1 message for user at mail.server.
reading message [EMAIL PROTECTED]:1 of 1 (1631 header octets). (5 body 
octets) flushed


And we have a mail written to /tmp/text.


> This local MTA doesn't have to be listening to any external ports or 
> anything, but you do need something on that system to fill that role of 
> taking the mail handed to it by fetchmail and then feeding that to the 
> right program with the right command-line options.  The easiest way to 
> do that is to run a real MTA on that server.

But I don't want or need any MTA here ;)

So I guess it's just a matter of simple scripting: fetching correct 
email using fetchmail, and passing it to mail/mailman program in a 
correct way. Anyone has it documented?


-- 
Tomasz Chmielewski
http://wpkg.org
--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] is it possible to set up mailman on a hostwithout a MTA?

2007-11-07 Thread Brad Knowles
On 11/7/07, Tomasz Chmielewski wrote:

>  So, considering no MTA is running on a machine which runs mailman - how
>  do I go through this part:

The way fetchmail works, you download e-mail from the remote server 
and pass it on to the local MTA.  Therefore, you have to have a local 
MTA on the recipient machine.  For Mailman, you need something to 
read those aliases and do the right thing with the messages being 
processed.

This local MTA doesn't have to be listening to any external ports or 
anything, but you do need something on that system to fill that role 
of taking the mail handed to it by fetchmail and then feeding that to 
the right program with the right command-line options.  The easiest 
way to do that is to run a real MTA on that server.

-- 
Brad Knowles <[EMAIL PROTECTED]>
LinkedIn Profile: 
--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] is it possible to set up mailman on a hostwithout a MTA?

2007-11-07 Thread Dennis Putnam

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

At 11:56 AM 11/7/2007, you wrote:

>So, I started to put the things together. As you said, outgoing mail 
>is easy, and incoming mail is harder (but can be done with fetchmail).
>
>So, considering no MTA is running on a machine which runs mailman - 
>how do I go through this part:
>
>http://www.gnu.org/software/mailman/mailman-install/node13.html
>
>
>Putting this into aliases file on a mail server surely wouldn't make 
>any sense:
>
>
># bin/genaliases
>To finish creating your mailing list, you must edit your /etc/aliases (or
>equivalent) file by adding the following lines, and possibly running the
>`newaliases' program:
>
>## some-list mailing list
>some-list:  "|/path/mailman/mail/mailman post some-list"
>some-list-admin:"|/path/mailman/mail/mailman admin some-list"
>some-list-bounces:  "|/path/mailman/mail/mailman bounces some-list"
>some-list-confirm:  "|/path/mailman/mail/mailman confirm some-list"
>some-list-join: "|/path/mailman/mail/mailman join some-list"
>some-list-leave:"|/path/mailman/mail/mailman leave some-list"
>some-list-owner:"|/path/mailman/mail/mailman owner some-list"
>some-list-request:  "|/path/mailman/mail/mailman request some-list"
>some-list-subscribe:"|/path/mailman/mail/mailman subscribe some-list"
>some-list-unsubscribe:  "|/path/mailman/mail/mailman unsubscribe some-list"
>
>
>
>Should I just deliver all emails to one mailbox ([EMAIL PROTECTED], 
>[EMAIL PROTECTED], [EMAIL PROTECTED] etc.), and 
>fetchmail should fetch it to:
>
>/path/mailman/archives/private/some-list.mbox/
>
>?

That won't work. You need to create each one of those aliases as a 
mailbox at your ISP. Then do a fetchmail on each one.

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.8 for non-commercial use 

iQA/AwUBRzIwJf34lmKmdrVUEQJaGQCeLO0s9sWQX4Qs//b2Ux1wXdOdpAwAn1Yr
m92Mxi3gtysyEqWIjtehdQ3T
=1HqL
-END PGP SIGNATURE-


--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] is it possible to set up mailman on a hostwithout a MTA?

2007-11-07 Thread Tomasz Chmielewski
Mark Sapiro schrieb:

> Incoming mail is harder, but it can be done using something like
> fetchmail to retrieve mail from a remote server. It can then be
> delivered to Mailman via someththing like procmail or by using
> Mailman's Maildir delivery.

So, I started to put the things together. As you said, outgoing mail is 
easy, and incoming mail is harder (but can be done with fetchmail).

So, considering no MTA is running on a machine which runs mailman - how 
do I go through this part:

http://www.gnu.org/software/mailman/mailman-install/node13.html


Putting this into aliases file on a mail server surely wouldn't make any 
sense:


# bin/genaliases
To finish creating your mailing list, you must edit your /etc/aliases (or
equivalent) file by adding the following lines, and possibly running the
`newaliases' program:

## some-list mailing list
some-list:  "|/path/mailman/mail/mailman post some-list"
some-list-admin:"|/path/mailman/mail/mailman admin some-list"
some-list-bounces:  "|/path/mailman/mail/mailman bounces some-list"
some-list-confirm:  "|/path/mailman/mail/mailman confirm some-list"
some-list-join: "|/path/mailman/mail/mailman join some-list"
some-list-leave:"|/path/mailman/mail/mailman leave some-list"
some-list-owner:"|/path/mailman/mail/mailman owner some-list"
some-list-request:  "|/path/mailman/mail/mailman request some-list"
some-list-subscribe:"|/path/mailman/mail/mailman subscribe some-list"
some-list-unsubscribe:  "|/path/mailman/mail/mailman unsubscribe some-list"



Should I just deliver all emails to one mailbox ([EMAIL PROTECTED], 
[EMAIL PROTECTED], [EMAIL PROTECTED] etc.), and 
fetchmail should fetch it to:

/path/mailman/archives/private/some-list.mbox/

?


-- 
Tomasz Chmielewski
http://wpkg.org


--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] is it possible to set up mailman on a host without a MTA?

2007-10-20 Thread Dennis Putnam

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

At 02:32 PM 10/20/2007, you wrote:


>All right, I forgot about fetchmail.
>
>Was something non-standard needed to make mailman work with fetchmail/cron?
>
>
>--
>Tomasz Chmielewski
>http://wpkg.org

No. It was a little tricky to set things up so my ISP would accept 
mail from my SMTP server. The main problem was getting it configured 
so my ISP could recognize it as a legitimate customer sending mail. 
The 'fetchmail' part was cake.



-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.8 for non-commercial use 

iQA/AwUBRxpsmP34lmKmdrVUEQKyTQCfXmtDGOIr/TarRTAG84tUtQnE3m0AoJ4o
YKWdPqgicH+S23dEj+d7UIEs
=vQ+v
-END PGP SIGNATURE-


--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] is it possible to set up mailman on a host without a MTA?

2007-10-20 Thread Tomasz Chmielewski
Dennis Putnam schrieb:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> At 06:36 AM 10/20/2007, you wrote:
>> Is it possible to set up mailman on a host without a MTA?
>>
>> I imagine mailman could easily send emails through an external MTA, and
>> receive email using externam pop3 or imap account - however, I didn't
>> find many hints about such setup in the fine documentation.
>>
>> Any clues?
> 
> I'm not exactly sure what you are asking for but I have a Mandrake 
> system on my DSL connected line without a static IP address. I have a 
> couple of mailing lists running and use 'fetchmail'. I have mail 
> boxes set up with my ISP and run 'fetchmail'  via 'cron' to get the 
> incoming messages. My SMTP sever is configured to use my ISPs mail 
> server for the outgoing messages.
> 
> If this is the kind of thing you are looking for let me know and we 
> can discuss it further.

All right, I forgot about fetchmail.

Was something non-standard needed to make mailman work with fetchmail/cron?


-- 
Tomasz Chmielewski
http://wpkg.org


--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] is it possible to set up mailman on a hostwithout a MTA?

2007-10-20 Thread Mark Sapiro
Dennis Carr wrote:

>On Sat, 20 Oct 2007 12:36:18 +0200
>Tomasz Chmielewski <[EMAIL PROTECTED]> wrote:
>
>> Is it possible to set up mailman on a host without a MTA?
>> 
>> I imagine mailman could easily send emails through an external MTA,
>> and receive email using externam pop3 or imap account - however, I
>> didn't find many hints about such setup in the fine documentation.
>
>Not as near as I can tell (I could be wrong), but you can easily set up,
>say, Postfix to just route everything through your ISP and not receive
>mail.


Actually, it is possible to run Mailman without a local MTA. Outgoing
mail is easy.  Just set SMTPHOST and, if necessary, SMTPPORT in
mm_cfg.py to the appropriate values for the server you want to use. If
the server requires authentication and possibly TLS, see

for a patch.

Incoming mail is harder, but it can be done using something like
fetchmail to retrieve mail from a remote server. It can then be
delivered to Mailman via someththing like procmail or by using
Mailman's Maildir delivery.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] is it possible to set up mailman on a host without a MTA?

2007-10-20 Thread Dennis Carr
On Sat, 20 Oct 2007 12:36:18 +0200
Tomasz Chmielewski <[EMAIL PROTECTED]> wrote:

> Is it possible to set up mailman on a host without a MTA?
> 
> I imagine mailman could easily send emails through an external MTA,
> and receive email using externam pop3 or imap account - however, I
> didn't find many hints about such setup in the fine documentation.

Not as near as I can tell (I could be wrong), but you can easily set up,
say, Postfix to just route everything through your ISP and not receive
mail.

-Dennis Carr
--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] is it possible to set up mailman on a host without a MTA?

2007-10-20 Thread Dennis Putnam

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

At 06:36 AM 10/20/2007, you wrote:
>Is it possible to set up mailman on a host without a MTA?
>
>I imagine mailman could easily send emails through an external MTA, and
>receive email using externam pop3 or imap account - however, I didn't
>find many hints about such setup in the fine documentation.
>
>Any clues?

I'm not exactly sure what you are asking for but I have a Mandrake 
system on my DSL connected line without a static IP address. I have a 
couple of mailing lists running and use 'fetchmail'. I have mail 
boxes set up with my ISP and run 'fetchmail'  via 'cron' to get the 
incoming messages. My SMTP sever is configured to use my ISPs mail 
server for the outgoing messages.

If this is the kind of thing you are looking for let me know and we 
can discuss it further.

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.8 for non-commercial use 

iQA/AwUBRxoTD/34lmKmdrVUEQLX+ACeP8z/0SPS3mozbIS2GkKhYERiSD8An2AY
D3re3u6cgNnnFVAK3xujtqsA
=XgTZ
-END PGP SIGNATURE-


--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to filter what is archived?

2007-08-20 Thread Mike Peachey
Mark Sapiro wrote:
> Mike Peachey wrote:
> 
>> Mark Sapiro wrote:
>>> The above is a bit too simple. Something like
>>>
>>> def process(mlist, msg, msgdata):
>>> if mlist.umbrella_list:
>>> del msg['x-no-archive']
>>> msg['X-No-Archive'] = 'Yes'
>>>
>>> is probably better to avoid creating multiple X-No-Archive: headers.
>>>
>>> Also, if you insert the handler prior to 'ToArchive', the message (any
>>> message to an umbrella list) will not be archived at all. If you
>>> insert the handler after 'ToArchive' but prior to 'ToOutgoing', the
>>> message will be archived in the archive of the first umbrella list it
>>> hits, but won't be archived in any subsequent lists which is probably
>>> more like what you want.
>>>
>>
>> This is just what I need, thank you!
>>
>> However it seems that the "if mlist.umbrella_list:" statement is 
>> superfluous. On the assumption that the handler is being inserted AFTER 
>> the first archiving, then surely it's safe to assume that no message 
>> should be archived a second time and so ALL messages should get an 
>> X-No-Archive as soon as they've been archived once.
>>
>> Let me know if I'm off base here.
> 
> 
> Sorry for the long delay in replying. I have been away with no online
> access.
> 
> You are correct for what you want to accomplish. I.e. if you only want
> any message to be archived once in the archive of the first list it
> hits, then it is safe to add the X-No-Archive header to all messages
> after ToArchive and before ToOutging. However, there may be other
> cases where one might have a list (e.g. mailman-users@python.org)
> which is not an umbrella list and which has, e.g. a mail-archive.com
> or some other external archive address as a member to provide a
> searchable archive or some other archiving benefit, and in this case,
> one wouldn't want to send the message to the external archiver with an
> X-No-Archive header.
> 

Thanks for the reply. Since all our lists are archived, this is the way 
we're dealing with it and it has been working well so far.
-- 
Kind Regards,

__

Mike Peachey, IT
Tel: +44 114 281 2655
Fax: +44 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
Comp Reg No: 3191371 - Registered In England
http://www.jennic.com
__
--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to filter what is archived?

2007-08-18 Thread Mark Sapiro
Mike Peachey wrote:

>Mark Sapiro wrote:
>> 
>> The above is a bit too simple. Something like
>> 
>> def process(mlist, msg, msgdata):
>> if mlist.umbrella_list:
>> del msg['x-no-archive']
>> msg['X-No-Archive'] = 'Yes'
>> 
>> is probably better to avoid creating multiple X-No-Archive: headers.
>> 
>> Also, if you insert the handler prior to 'ToArchive', the message (any
>> message to an umbrella list) will not be archived at all. If you
>> insert the handler after 'ToArchive' but prior to 'ToOutgoing', the
>> message will be archived in the archive of the first umbrella list it
>> hits, but won't be archived in any subsequent lists which is probably
>> more like what you want.
>> 
>
>
>This is just what I need, thank you!
>
>However it seems that the "if mlist.umbrella_list:" statement is 
>superfluous. On the assumption that the handler is being inserted AFTER 
>the first archiving, then surely it's safe to assume that no message 
>should be archived a second time and so ALL messages should get an 
>X-No-Archive as soon as they've been archived once.
>
>Let me know if I'm off base here.


Sorry for the long delay in replying. I have been away with no online
access.

You are correct for what you want to accomplish. I.e. if you only want
any message to be archived once in the archive of the first list it
hits, then it is safe to add the X-No-Archive header to all messages
after ToArchive and before ToOutging. However, there may be other
cases where one might have a list (e.g. mailman-users@python.org)
which is not an umbrella list and which has, e.g. a mail-archive.com
or some other external archive address as a member to provide a
searchable archive or some other archiving benefit, and in this case,
one wouldn't want to send the message to the external archiver with an
X-No-Archive header.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to filter what is archived?

2007-08-06 Thread Mike Peachey
Mark Sapiro wrote:
> Mark Sapiro wrote:
>> Make a custom handler (see
>> )
>> that checks mlist.umbrella_list, and if true add an X-No-Archive:
>> header to the message. E.g.
>>
>> def process(mlist, msg, msgdata):
>>if mlist.umbrella_list:
>>msg['X-No-Archive'] = 'Yes'
>>
>> The handler has to be in the pipeline prior to 'ToArchive'.
> 
> 
> I should know better than to post code when I'm in a hurry, but ...
> 
> The above is a bit too simple. Something like
> 
> def process(mlist, msg, msgdata):
> if mlist.umbrella_list:
> del msg['x-no-archive']
> msg['X-No-Archive'] = 'Yes'
> 
> is probably better to avoid creating multiple X-No-Archive: headers.
> 
> Also, if you insert the handler prior to 'ToArchive', the message (any
> message to an umbrella list) will not be archived at all. If you
> insert the handler after 'ToArchive' but prior to 'ToOutgoing', the
> message will be archived in the archive of the first umbrella list it
> hits, but won't be archived in any subsequent lists which is probably
> more like what you want.
> 


This is just what I need, thank you!

However it seems that the "if mlist.umbrella_list:" statement is 
superfluous. On the assumption that the handler is being inserted AFTER 
the first archiving, then surely it's safe to assume that no message 
should be archived a second time and so ALL messages should get an 
X-No-Archive as soon as they've been archived once.

Let me know if I'm off base here.

-- 
Kind Regards,

__

Mike Peachey, IT
Tel: +44 114 281 2655
Fax: +44 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
Comp Reg No: 3191371 - Registered In England
http://www.jennic.com
__
--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to filter what is archived?

2007-08-02 Thread Mark Sapiro
Mark Sapiro wrote:
>
>Make a custom handler (see
>)
>that checks mlist.umbrella_list, and if true add an X-No-Archive:
>header to the message. E.g.
>
>def process(mlist, msg, msgdata):
>if mlist.umbrella_list:
>msg['X-No-Archive'] = 'Yes'
>
>The handler has to be in the pipeline prior to 'ToArchive'.


I should know better than to post code when I'm in a hurry, but ...

The above is a bit too simple. Something like

def process(mlist, msg, msgdata):
if mlist.umbrella_list:
del msg['x-no-archive']
msg['X-No-Archive'] = 'Yes'

is probably better to avoid creating multiple X-No-Archive: headers.

Also, if you insert the handler prior to 'ToArchive', the message (any
message to an umbrella list) will not be archived at all. If you
insert the handler after 'ToArchive' but prior to 'ToOutgoing', the
message will be archived in the archive of the first umbrella list it
hits, but won't be archived in any subsequent lists which is probably
more like what you want.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to filter what is archived?

2007-08-02 Thread Mark Sapiro
Mike Peachey wrote:
>
>If only it were that easy, the problem I have is that I have list admins 
>complaining to me (and my boss' boss) that their archive is polluted 
>with messages from top-level lists and they want their archive to just 
>contain messages sent directly to their list.



Make a custom handler (see
)
that checks mlist.umbrella_list, and if true add an X-No-Archive:
header to the message. E.g.

def process(mlist, msg, msgdata):
if mlist.umbrella_list:
msg['X-No-Archive'] = 'Yes'

The handler has to be in the pipeline prior to 'ToArchive'.


The header

X-Archive: No

also works.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to filter what is archived?

2007-08-02 Thread Mike Peachey
Mark Sapiro wrote:
> Mike Peachey wrote:
>> What I would like to do is filter what gets archived so that if a 
>> message originates in mailman (ie from an umbrella list) it doesn't get 
>> archived.
> 
> 
> I'm pretty sure this isn't what you're asking for, but you could just
> turn off archiving on all the umbrella lists so the posts are only
> archived in the 'final' lists.
> 
> I know this results in duplicate archived messages for different
> 'final' lists, but if I'm a member of listx, I want to see listx posts
> in listx's archive regardless of whether they came directly or via one
> or more umbrellas.
> 

If only it were that easy, the problem I have is that I have list admins 
complaining to me (and my boss' boss) that their archive is polluted 
with messages from top-level lists and they want their archive to just 
contain messages sent directly to their list.
-- 
Kind Regards,

__

Mike Peachey, IT
Tel: +44 114 281 2655
Fax: +44 114 281 2951
Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
Comp Reg No: 3191371 - Registered In England
http://www.jennic.com
__
--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to filter what is archived?

2007-08-01 Thread Mark Sapiro
Mike Peachey wrote:
>
>What I would like to do is filter what gets archived so that if a 
>message originates in mailman (ie from an umbrella list) it doesn't get 
>archived.


I'm pretty sure this isn't what you're asking for, but you could just
turn off archiving on all the umbrella lists so the posts are only
archived in the 'final' lists.

I know this results in duplicate archived messages for different
'final' lists, but if I'm a member of listx, I want to see listx posts
in listx's archive regardless of whether they came directly or via one
or more umbrellas.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to filter what is archived?

2007-08-01 Thread Brad Knowles
On 8/1/07, Mike Peachey wrote:

>  What I would like to do is filter what gets archived so that if a
>  message originates in mailman (ie from an umbrella list) it doesn't get
>  archived.

If you write some custom code and put that into the appropriate 
handler, or you write your own custom handler, it should not be 
difficult to achieve what you're looking for.  Check the Mailman 
patches page at SourceForge, just in case someone has already done 
the same sort of thing.

Other than that, I am not personally aware of any obvious ways to 
achieve your goal.

-- 
Brad Knowles <[EMAIL PROTECTED]>, Consultant & Author
LinkedIn Profile: 
Slides from Invited Talks: 

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to reply to [EMAIL PROTECTED] not to [EMAIL PROTECTED]

2007-06-26 Thread Mark Sapiro
Brad Knowles wrote:

>On 6/26/07, TRON478 wrote:
>
>>  when i get a mail from my mail i can reply to the list via the adress
>>
>>  [EMAIL PROTECTED]
>>
>>  but i want to reply via
>>
>>  [EMAIL PROTECTED]
>>
>>  is this possible?
>
>This is a client problem.


Agreed.

See

for some more information on this.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to reply to [EMAIL PROTECTED] and not to [EMAIL PROTECTED]

2007-06-26 Thread Brad Knowles
On 6/26/07, TRON478 wrote:

>  when i get a mail from my mail i can reply to the list via the adress
>
>  [EMAIL PROTECTED]
>
>  but i want to reply via
>
>  [EMAIL PROTECTED]
>
>  is this possible?

This is a client problem.  There is nothing in Mailman that prevents 
you from replying to whatever address you want.  What your client 
allows you to do, or makes easy for you to do, that's a completely 
different matter.  If your client isn't letting you do what you want 
to do, you need to fix your client.

-- 
Brad Knowles <[EMAIL PROTECTED]>, Consultant & Author
LinkedIn Profile: 
Slides from Invited Talks: 

09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible only allow plain text intomessages?

2005-10-11 Thread Mark Sapiro
Sasa Stupar wrote:
>
>--On 11. oktober 2005 17:48 +0200 Hans Glomme <[EMAIL PROTECTED]> wrote:
>
>> Hi everybody!
>>
>> At first I want excuse my badly English.
>> Well does somenone know if it will be possible that it is only allowed
>> for  users to send mails to a list in plain text? Means that it is not
>> possible to send into an other format then text/plain?
>
>
>Yes. Login to admin page for the list and click on Content Filtering.

This is correct as far as it goes, but it is generally tricky because
the settings are not necessarily intuitive.

For example, simply putting text/plain in pass_mime_types would not
pass the message from Sasa to which I'm replying because that message
as sent to the mailman-users list was of type multipart/signed with
subparts of type text/plain and application/pgp-signature, and if
multipart or multipart/signed is not in pass_mime_types, the entire
message will be filtered.

See
http://mail.python.org/pipermail/mailman-users/2004-November/041009.html
for some further information.

--
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible only allow plain text into messages?

2005-10-11 Thread Sasa Stupar



--On 11. oktober 2005 17:48 +0200 Hans Glomme <[EMAIL PROTECTED]> wrote:


Hi everybody!

At first I want excuse my badly English.
Well does somenone know if it will be possible that it is only allowed
for  users to send mails to a list in plain text? Means that it is not
possible to send into an other format then text/plain?



Yes. Login to admin page for the list and click on Content Filtering.

Sasa

pgpPmxfrP72VG.pgp
Description: PGP signature
--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp

Re: [Mailman-Users] is it possible to have the admin get approval emailwhenever new email to list is sent or whenever a new usersubscribes?

2005-05-31 Thread Mark Sapiro
phil durning wrote:

>is it possible to have the admin get approval email whenever new email to list 
>is sent or whenever
>a new user subscribes?

For approval of all e-mail, go to Privacy options...->Sender filters
and set default_member_moderation to Yes and member_moderation_action
to Hold. Then go to Membership Management...->Membership List and set
everyone's moderation bit On.

For subscription approval, go to Privacy options...->Subscription rules
and set subscribe_policy to either Require approval or Confirm and
approve.

--
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to use mailman without apache?

2005-03-14 Thread Carfield Yim
On Sat, 12 Mar 2005 14:16:21 +0100, Brad Knowles
<[EMAIL PROTECTED]> wrote:
> At 3:27 PM +0800 2005-03-12, Carfield Yim wrote:
> 
> >  Actually I just want to approve a pending mail, can I do it with command
> >  line?
> 
> Yes.  The administrators of very large scale Mailman mailing
> lists are effectively required to do everything via the command line,
> because the web interface becomes virtually useless for them.
> 
> However, I do not know the exact sequence of commands that would
> be required.
> 
So... could anyone help me?
--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to use mailman without apache?

2005-03-14 Thread Carfield Yim
Thx, it work!

On Sat, 12 Mar 2005 07:15:55 -0800, Mark Sapiro <[EMAIL PROTECTED]> wrote:
> Carfield Yim wrote:
> 
> >Actually I just want to approve a pending mail, can I do it with command
> >line?
> 
> I'm not sure about command line, but you can do it by e-mail. If
> admin_immed_notify is set to Yes, the notification message that is
> sent contains a message/rfc822 part similar to the following:
> 
> --
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Subject: confirm 750c69674069227167abb400c93d75b58234d6f1
> Sender: [EMAIL PROTECTED]
> From: [EMAIL PROTECTED]
> 
> If you reply to this message, keeping the Subject: header intact,
> Mailman will discard the held message.  Do this if the message is
> spam.  If you reply to this message and include an Approved: header
> with the list password in it, the message will be approved for posting
> to the list.  The Approved: header can also appear in the first line
> of the body of the reply.
> ---
> 
> Thus, you can actually send any message to the -request
> address with the confirm  command in the subject with an
> 
> Approved: 
> 
> header or first body line to approve the message or without Approved:
> to discard it.
> 
> --
> Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
> San Francisco Bay Area, Californiabetter use your sense - B. Dylan
>
--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to use mailman without apache?

2005-03-12 Thread Mark Sapiro
Carfield Yim wrote:

>Actually I just want to approve a pending mail, can I do it with command
>line?

I'm not sure about command line, but you can do it by e-mail. If
admin_immed_notify is set to Yes, the notification message that is
sent contains a message/rfc822 part similar to the following:

--
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: confirm 750c69674069227167abb400c93d75b58234d6f1
Sender: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]

If you reply to this message, keeping the Subject: header intact,
Mailman will discard the held message.  Do this if the message is
spam.  If you reply to this message and include an Approved: header
with the list password in it, the message will be approved for posting
to the list.  The Approved: header can also appear in the first line
of the body of the reply.
---

Thus, you can actually send any message to the -request
address with the confirm  command in the subject with an

Approved: 

header or first body line to approve the message or without Approved:
to discard it.

--
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to use mailman without apache?

2005-03-12 Thread Brad Knowles
At 3:27 PM +0800 2005-03-12, Carfield Yim wrote:
 Actually I just want to approve a pending mail, can I do it with command
 line?
	Yes.  The administrators of very large scale Mailman mailing 
lists are effectively required to do everything via the command line, 
because the web interface becomes virtually useless for them.

	However, I do not know the exact sequence of commands that would 
be required.

--
Brad Knowles, <[EMAIL PROTECTED]>
"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin (1706-1790), reply of the Pennsylvania
Assembly to the Governor, November 11, 1755
  SAGE member since 1995.  See  for more info.
--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


RE: [Mailman-Users] Is it possible to add the Description field onthelist create web interface?

2005-02-24 Thread Brian Ensor
Worked perfectly.

Many Thanks!

-Brian

> -Original Message-
> From: Mark Sapiro [mailto:[EMAIL PROTECTED] 
> Sent: 24 February 2005 05:50
> To: [EMAIL PROTECTED]; mailman-users@python.org
> Subject: RE: [Mailman-Users] Is it possible to add the 
> Description field onthelist create web interface?
> 
> Brian Ensor wrote:
> >
> >I do want to make the description field mandatory on list 
> creation, so
> >modifying the Mailman/Cgi/create.py is most likely the route 
> I would like to
> >pursue.
> >
> >In viewing the config and determining the changes to be 
> made, I would be
> >editing as follows:
> >
> >def process_request(doc, cgidata):
> ># Lowercase the listname since this is treated as the 
> "internal" name.
> >listname = cgidata.getvalue('listname', '').strip().lower()
> >owner= cgidata.getvalue('owner', '').strip()
> ># Added following line to support description field
> >description = cgidata.getvalue('description', '').strip()
> 
> 
> Looks OK
> 
> 
> ># Sanity Check
> ># Added following line to support description field
> >if not description:
> >request_creation(doc, cgidata,
> > _('You forgot to specify the list 
> description'))
> >return
> 
> 
> The issue here is _() is an i18n method to substitute text in the
> appropriate language for the English text. As long as you're only
> dealing in English, this won't be a problem, but this message won't be
> available in other languages.
> 
> 
> ># And send the notice to the list owner.
> >   # Added description to mlist 
> >   text = Utils.maketext(
> >'newlist.txt',
> >{'listname': listname,
> > 'password': password,
> > 'admin_url'   : mlist.GetScriptURL('admin', absolute=1),
> > 'listinfo_url': mlist.GetScriptURL('listinfo', 
> absolute=1),
> > 'requestaddr' : mlist.GetRequestEmail(),
> > 'siteowner'   : siteadmin,
> > 'description' : description,
> > }, mlist=mlist)
> 
> 
> This only adds 'description' and it's value to the dictionary for
> interpolation into the template. You still need to edit the
> newlist.txt template (see
> http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.048.htp)
> to include appropriate text with '%(description)s' to receive the
> description.
> 
> 
> ># in Dummy section modify page text to indicate requirement 
> for description
> >You also need to enter the email address of the 
> initial list owner
> >and
> >a brief description of the list. Once the list is 
> created, the list
> >owner
> >will be given notification, along with the initial list 
> password.  The
> >list owner will then be able to modify the password and 
> add or remove
> >additional list owners.
> >
> ># Also in Dummy section
> >safedescription = 
> Utils.websafe(cgidata.getvalue('description', ''))
> >ftable.AddRow([Label(_('Brief description of list:')),
> >   TextBox('description', safedescription)])
> >ftable.AddCellInfo(ftable.GetCurrentRowIndex(), 0, bgcolor=GREY)
> >ftable.AddCellInfo(ftable.GetCurrentRowIndex(), 1, bgcolor=GREY)
> >
> >
> >I am not sure if the information above is 100% correct, but 
> I believe it is.
> >The part that is not addressed above is the actual list 
> creation.  This is
> >called by mlist.Create, which I believe is from the 
> /Mailman/MailList.py
> >file.  Here is how I believe the call should be done in create.py to
> >accomplish what I want:
> >
> ># Added description to this command line
> >mlist.Create(listname, owner, pw, langs, emailhost,
> >description)
> 
> 
> Do not change the mlist.Create() call.
> 
> 
> >Now that I am passing another parameter, how can I ensure it 
> is handled
> >correctly?  Will there be some changes required in 
> MailList.py or another
> >file to make sure the field is handled correctly?  Is description the
> >correct name to use?
> 
> 
> You don't pass the parameter in the Create() call.
> 
> You 'update' it after the list is created. Just before the last
> 'finally:

RE: [Mailman-Users] Is it possible to add the Description field onthelist create web interface?

2005-02-23 Thread Mark Sapiro
Brian Ensor wrote:
>
>I do want to make the description field mandatory on list creation, so
>modifying the Mailman/Cgi/create.py is most likely the route I would like to
>pursue.
>
>In viewing the config and determining the changes to be made, I would be
>editing as follows:
>
>def process_request(doc, cgidata):
># Lowercase the listname since this is treated as the "internal" name.
>listname = cgidata.getvalue('listname', '').strip().lower()
>owner= cgidata.getvalue('owner', '').strip()
># Added following line to support description field
>description = cgidata.getvalue('description', '').strip()


Looks OK


># Sanity Check
># Added following line to support description field
>if not description:
>request_creation(doc, cgidata,
> _('You forgot to specify the list description'))
>return


The issue here is _() is an i18n method to substitute text in the
appropriate language for the English text. As long as you're only
dealing in English, this won't be a problem, but this message won't be
available in other languages.


># And send the notice to the list owner.
>   # Added description to mlist 
>   text = Utils.maketext(
>'newlist.txt',
>{'listname': listname,
> 'password': password,
> 'admin_url'   : mlist.GetScriptURL('admin', absolute=1),
> 'listinfo_url': mlist.GetScriptURL('listinfo', absolute=1),
> 'requestaddr' : mlist.GetRequestEmail(),
> 'siteowner'   : siteadmin,
> 'description' : description,
> }, mlist=mlist)


This only adds 'description' and it's value to the dictionary for
interpolation into the template. You still need to edit the
newlist.txt template (see
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.048.htp)
to include appropriate text with '%(description)s' to receive the
description.


># in Dummy section modify page text to indicate requirement for description
>You also need to enter the email address of the initial list owner
>and
>a brief description of the list. Once the list is created, the list
>owner
>will be given notification, along with the initial list password.  The
>list owner will then be able to modify the password and add or remove
>additional list owners.
>
># Also in Dummy section
>safedescription = Utils.websafe(cgidata.getvalue('description', ''))
>ftable.AddRow([Label(_('Brief description of list:')),
>   TextBox('description', safedescription)])
>ftable.AddCellInfo(ftable.GetCurrentRowIndex(), 0, bgcolor=GREY)
>ftable.AddCellInfo(ftable.GetCurrentRowIndex(), 1, bgcolor=GREY)
>
>
>I am not sure if the information above is 100% correct, but I believe it is.
>The part that is not addressed above is the actual list creation.  This is
>called by mlist.Create, which I believe is from the /Mailman/MailList.py
>file.  Here is how I believe the call should be done in create.py to
>accomplish what I want:
>
># Added description to this command line
>mlist.Create(listname, owner, pw, langs, emailhost,
>description)


Do not change the mlist.Create() call.


>Now that I am passing another parameter, how can I ensure it is handled
>correctly?  Will there be some changes required in MailList.py or another
>file to make sure the field is handled correctly?  Is description the
>correct name to use?


You don't pass the parameter in the Create() call.

You 'update' it after the list is created. Just before the last
'finally:' in the outer of three 'try:'s around the Create() you'll see

# Initialize the host_name and web_page_url attributes, based on
# virtual hosting settings and the request environment
variables.
mlist.default_member_moderation = moderate
mlist.web_page_url = mm_cfg.DEFAULT_URL_PATTERN % hostname
mlist.host_name = emailhost

add after this and before mlist.Save()

mlist.description = description


--
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


RE: [Mailman-Users] Is it possible to add the Description field on thelist create web interface?

2005-02-23 Thread Brian Ensor
Thanks for the reply.  I have moved a little forward on this problem as
such:

I do want to make the description field mandatory on list creation, so
modifying the Mailman/Cgi/create.py is most likely the route I would like to
pursue.

In viewing the config and determining the changes to be made, I would be
editing as follows:

def process_request(doc, cgidata):
# Lowercase the listname since this is treated as the "internal" name.
listname = cgidata.getvalue('listname', '').strip().lower()
owner= cgidata.getvalue('owner', '').strip()
# Added following line to support description field
description = cgidata.getvalue('description', '').strip()

# Sanity Check
# Added following line to support description field
if not description:
request_creation(doc, cgidata,
 _('You forgot to specify the list description'))
return

# And send the notice to the list owner.
   # Added description to mlist 
   text = Utils.maketext(
'newlist.txt',
{'listname': listname,
 'password': password,
 'admin_url'   : mlist.GetScriptURL('admin', absolute=1),
 'listinfo_url': mlist.GetScriptURL('listinfo', absolute=1),
 'requestaddr' : mlist.GetRequestEmail(),
 'siteowner'   : siteadmin,
 'description' : description,
 }, mlist=mlist)

# in Dummy section modify page text to indicate requirement for description
You also need to enter the email address of the initial list owner
and
a brief description of the list. Once the list is created, the list
owner
will be given notification, along with the initial list password.  The
list owner will then be able to modify the password and add or remove
additional list owners.

# Also in Dummy section
safedescription = Utils.websafe(cgidata.getvalue('description', ''))
ftable.AddRow([Label(_('Brief description of list:')),
   TextBox('description', safedescription)])
ftable.AddCellInfo(ftable.GetCurrentRowIndex(), 0, bgcolor=GREY)
ftable.AddCellInfo(ftable.GetCurrentRowIndex(), 1, bgcolor=GREY)


I am not sure if the information above is 100% correct, but I believe it is.
The part that is not addressed above is the actual list creation.  This is
called by mlist.Create, which I believe is from the /Mailman/MailList.py
file.  Here is how I believe the call should be done in create.py to
accomplish what I want:

# Added description to this command line
mlist.Create(listname, owner, pw, langs, emailhost,
description)

Now that I am passing another parameter, how can I ensure it is handled
correctly?  Will there be some changes required in MailList.py or another
file to make sure the field is handled correctly?  Is description the
correct name to use?

I know this may be now getting into something that may need to be submitted
to the developers list, but I am not a programmer and figured this list
would be the one to start on.

Thanks in advance for any help.

-Brian




> -Original Message-
> From: Mark Sapiro [mailto:[EMAIL PROTECTED] 
> Sent: 22 February 2005 18:42
> To: [EMAIL PROTECTED]; mailman-users@python.org
> Subject: Re: [Mailman-Users] Is it possible to add the 
> Description field on thelist create web interface?
> 
> Brian Ensor wrote:
> >
> >We have an issue with lists being created and having to rely on the
> >list admins to input a list description.  We would like to have the
> >list creator be able to input the list name and description 
> when using
> >the web interface.  Is there a way to modify this
> >'http:///mailman/create' page to include this at the time
> >of creation?
> 
> Not without modifying the Mailman/Cgi/create.py module which produces
> and processes the page.
> 
> The alternative is for the list creator to go immediately to the list
> admin pages and set real_name and description. Granted, this is not as
> convenient as having it on the create page and is not "enforceable",
> but it's the best you can do without hacking create.py.
> 
> --
> Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
> San Francisco Bay Area, Californiabetter use your sense - B. Dylan
> 
> 

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to add the Description field on thelist create web interface?

2005-02-22 Thread Mark Sapiro
Brian Ensor wrote:
>
>We have an issue with lists being created and having to rely on the
>list admins to input a list description.  We would like to have the
>list creator be able to input the list name and description when using
>the web interface.  Is there a way to modify this
>'http:///mailman/create' page to include this at the time
>of creation?

Not without modifying the Mailman/Cgi/create.py module which produces
and processes the page.

The alternative is for the list creator to go immediately to the list
admin pages and set real_name and description. Granted, this is not as
convenient as having it on the create page and is not "enforceable",
but it's the best you can do without hacking create.py.

--
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] Is it possible to do a system-wide message?

2005-02-04 Thread Brad Knowles
At 10:12 AM + 2005-02-04, Rod Neep wrote:
 Is it possible (and how) for the administrator to do a system-wide
 announcement post that will appear on every mailing list?
	You could post to every list individually, or you could create an 
umbrella list which includes every list as a "subscriber".  Other 
than that, I'm not aware of anything.

--
Brad Knowles, <[EMAIL PROTECTED]>
"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin (1706-1790), reply of the Pennsylvania
Assembly to the Governor, November 11, 1755
  SAGE member since 1995.  See  for more info.
--
Mailman-Users mailing list
Mailman-Users@python.org
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] Is it possible to set up and run Mailman without root access?

2005-01-30 Thread Brad Knowles
At 1:20 PM -0800 2005-01-30, <[EMAIL PROTECTED]> wrote:
 Is it possible to set up and run Mailman 2.1.5 without root access?
I'm pretty sure that's not possible.
 It seems to me that there must be other folks out there who have a hosting
 service that is shared and that restricts root access.
 I hope you'll share your experience.
If you find anyone that has managed to do it, please let us know.
--
Brad Knowles, <[EMAIL PROTECTED]>
"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin (1706-1790), reply of the Pennsylvania
Assembly to the Governor, November 11, 1755
  SAGE member since 1995.  See  for more info.
--
Mailman-Users mailing list
Mailman-Users@python.org
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] Is it possible to set up and run Mailman withoutroot access?

2005-01-30 Thread Mark Sapiro
[EMAIL PROTECTED] wrote:

>Is it possible to set up and run Mailman 2.1.5 without root access?

The short answer is No.

>This is on a shared Linux server where we have access to only one user, and
>do not want to give RW access to other users.
>So in addition to not having root, we don't want to use the 02775
>permissions.  Ideally we would run with just 705 permissions.

You probably could install Mailman as your user and group, but then you
would have to make the web server run scripts as that user and make
the incoming MTA/MDA pipe the incoming mail to mailman as that user
and this would break Mailman's security in addition to probably
allowing RW access from the web to everything you own.

In any case, you would probably need root or some other high level of
access to make the necessary web server and MTA configuration changes
to support your Mailman.

>Anyone have any experience with this kind of environment?
>It seems to me that there must be other folks out there who have a hosting
>service that is shared and that restricts root access.
>I hope you'll share your experience.

I think in most cases of people hosting Mailman lists on restricted
access shared servers, the server administrators have installed
Mailman and the users have only the ability to administer their own
lists within the installation.

--
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
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] Is it possible to edit rfc info?

2004-07-22 Thread Brad Knowles
At 9:08 AM +0100 2004-07-22, Rob Hackney wrote:
 Now that I know where to edit I found this:
 http://nleaudio.com/bnotes/mailman.htm
 Could be useful for other peeps?
	Considering the sorts of things he's recommending and the kind of 
information we already have in the FAQ (see 
), 
this is not something that I would recommend to other people, and I 
would be strongly opposed to anyone else recommending this site to 
anyone else.

--
Brad Knowles, <[EMAIL PROTECTED]>
"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin (1706-1790), reply of the Pennsylvania
Assembly to the Governor, November 11, 1755
  SAGE member since 1995.  See  for more info.
--
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] Is it possible to edit rfc info?

2004-07-22 Thread Rob Hackney

Thanks that does appear to be it...So, just got to quickly learn python
then

Now that I know where to edit I found this:
http://nleaudio.com/bnotes/mailman.htm
Could be useful for other peeps?





This email is confidential and intended solely for the use of the individual(s) to 
whom it is addressed.  It should not be deemed to constitute a binding contract 
between TKC Group and the recipient(s) unless a purchase order number is quoted.  Any 
views or opinions presented are solely those of the author and do not necessarily 
represent those of TKC Group Ltd.  If you are not the intended recipient(s), please do 
not copy or disclose its contents. Please return it to: [EMAIL PROTECTED] then delete 
the email.

Scanned for viruses by MailDefender
--
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] Is it possible to edit rfc info?

2004-07-21 Thread Jeff Barger
On Jul 21, 2004, at 8:26 AM, Rob Hackney wrote:
I don't know if this is possible  but I'd like to ask anyway.
Although I can disable sending rfc2369 using Mailman I'd rather not.
Is there a way of removing certain parts of it and am I allowed to do
that?
If still interested:
I wish to remove the url references to the webserver for unsubscribing
as this
will not be available to subscribers.  Unsubbing and all other requests
will be
acceptable of course  via email .  I've read thru the rfc and I'm a bit
confused as to whether to
use whitespace instead of the urls/ delete them or add a leading
comment.
Any pointers or help greatly appreciated as I've looked thru faqs/
archives/ googles etc
and can't quite find what I want.
I'm pretty sure you'd have to modify the CookHeaders handler to do 
anything different with those headers.

-Jeff
--
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] is it possible to customize subscription successwelcome message?

2002-09-27 Thread mailman

On Fri, 27 Sep 2002, Patrick Hsieh wrote:

> Hello all,
>
> I've read the FAQ and can't find any idea about this.

(assuming v2.0.x; the same or very similar will certainly apply to
v2.1 as well)

How about "List-specific text prepended to new-subscriber welcome
message"?  This is in the admin interface, under "General Options"
(i.e., the first page), the 6th item down from the top.

- Andrew

  
  Mailman Administrator   -   http://www.tux.org/mailman/listinfo/


--
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] Is it possible

2001-05-31 Thread Fil

@ Yanek Korff ([EMAIL PROTECTED]) :
> This cannot be done on a global scale?

Yes, just modify the template file located in 
/home/mailman/templates/listinfo.html

> Then edit the contents of the web pages, remove that option.
> 
> from the admin/listname page, the link for doing this is in the
> second column, marked * Edit the HTML for the public list pages

--
Mailman-Users maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users



RE: [Mailman-Users] Is it possible

2001-05-29 Thread Yanek Korff

This cannot be done on a global scale?

-Yanek.

-Original Message-
From: Brian Bilbrey [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 29, 2001 2:08 PM
To: [EMAIL PROTECTED]
Subject: Re: [Mailman-Users] Is it possible


On Tue, May 29, 2001 at 01:47:31PM -0400, Yanek Korff wrote:
> Well the problem is people are going to the web site, entering their login
> information and receiving something from the server saying reply to
confirm.
> So the user thinks it's working.  No email goes to blah-request until the
> user attempts to confirm, at which point it bounces...  If "Subscribe
Here"
> weren't on the web page, that would be a whole lot cleaner.

Then edit the contents of the web pages, remove that option.

from the admin/listname page, the link for doing this is in the
second column, marked * Edit the HTML for the public list pages

then edit the General list information page, remove the bits that
provide subscription capablility, save and Bob's yer uncle.

regards,

.brian

-- 
Brian Bilbrey :: [EMAIL PROTECTED] :: www.orbdesigns.com

--
Mailman-Users maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users

--
Mailman-Users maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users



Re: [Mailman-Users] Is it possible

2001-05-29 Thread Brian Bilbrey

On Tue, May 29, 2001 at 01:47:31PM -0400, Yanek Korff wrote:
> Well the problem is people are going to the web site, entering their login
> information and receiving something from the server saying reply to confirm.
> So the user thinks it's working.  No email goes to blah-request until the
> user attempts to confirm, at which point it bounces...  If "Subscribe Here"
> weren't on the web page, that would be a whole lot cleaner.

Then edit the contents of the web pages, remove that option.

from the admin/listname page, the link for doing this is in the
second column, marked * Edit the HTML for the public list pages

then edit the General list information page, remove the bits that
provide subscription capablility, save and Bob's yer uncle.

regards,

.brian

-- 
Brian Bilbrey :: [EMAIL PROTECTED] :: www.orbdesigns.com

--
Mailman-Users maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users



RE: [Mailman-Users] Is it possible

2001-05-29 Thread Yanek Korff

Well the problem is people are going to the web site, entering their login
information and receiving something from the server saying reply to confirm.
So the user thinks it's working.  No email goes to blah-request until the
user attempts to confirm, at which point it bounces...  If "Subscribe Here"
weren't on the web page, that would be a whole lot cleaner.

-Yanek.

-Original Message-
From: J C Lawrence [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 29, 2001 1:22 PM
To: Yanek Korff
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Mailman-Users] Is it possible 


On Tue, 29 May 2001 13:03:43 -0400 
Yanek Korff <[EMAIL PROTECTED]> wrote:

> to disable peoples' ability to subscribe if we set up a server to
> do nothing but handle mail archives?

Sure, just don't enable the request/etc aliases.

-- 
J C Lawrence   [EMAIL PROTECTED]
-(*)  http://www.kanga.nu/~claw/
The pressure to survive and rhetoric may make strange bedfellows

--
Mailman-Users maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users

--
Mailman-Users maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users



Re: [Mailman-Users] Is it possible

2001-05-29 Thread J C Lawrence

On Tue, 29 May 2001 13:03:43 -0400 
Yanek Korff <[EMAIL PROTECTED]> wrote:

> to disable peoples' ability to subscribe if we set up a server to
> do nothing but handle mail archives?

Sure, just don't enable the request/etc aliases.

-- 
J C Lawrence   [EMAIL PROTECTED]
-(*)  http://www.kanga.nu/~claw/
The pressure to survive and rhetoric may make strange bedfellows

--
Mailman-Users maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users



Re: [Mailman-Users] Is it possible to restrict list posting from within domain

2001-03-26 Thread Marc MERLIN

On Mon, Mar 26, 2001 at 12:33:58PM -0500, Bosco Tsang wrote:
> I am new to the administration of an existing mailman list server ...
> 
> I am wonder if it is possible to set it so that posting is only allow 
> within the same domain? I can only found the restrict by list member option 
> which seems not good enough. Any idea?

Not really, you have to use an external program like procmail to do that.

Marc
-- 
Microsoft is to operating systems & security 
   what McDonalds is to gourmet cooking
  
Home page: http://marc.merlins.org/   |   Finger [EMAIL PROTECTED] for PGP key

--
Mailman-Users maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users