FAQ
Mailman users,
I have two questions. We are running Mailman 2.1.5 on Redhat.

1. Is there a way when creating lists to have it automatically set
certain fields with certain defaults such as Archives off, mail size
limit 40k, etc.; instead of having to manually set them?

2. Is there a way to set a filter for a list such that all messages
are automatically rejected or discarded if they don't have a
particular subject header string such as [announce] in it? I see
that one can accept [announce] in the filters, but how does one wild
card reject all the rest? Also, I presume that order matters, correct?



Tim Tyler
Network Engineer - Beloit College
tyler at beloit.edu

Search Discussions

  • Patrick Bogen at Nov 21, 2006 at 4:30 pm

    On 11/20/06, Tim Tyler wrote:
    Mailman users,
    I have two questions. We are running Mailman 2.1.5 on Redhat.

    1. Is there a way when creating lists to have it automatically set
    certain fields with certain defaults such as Archives off, mail size
    limit 40k, etc.; instead of having to manually set them?
    FAQ 4.38 <http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.038.htp>
    might help with this. I could've sworn there was an FAQ relating to
    how to make 'cookie-cutter' lists, as it were, but I can't seem to
    find it. This info might just be in the list archives.
    2. Is there a way to set a filter for a list such that all messages
    are automatically rejected or discarded if they don't have a
    particular subject header string such as [announce] in it? I see
    that one can accept [announce] in the filters, but how does one wild
    card reject all the rest? Also, I presume that order matters, correct?
    What you want to do, in this case, is set a header_filter_rule that
    accepts anything with [announce] in it, and then set the default
    action to be discard.

    However, it sounds like you're trying to set up an umbrella list. An
    easier solution here would be to have the umbrella list sender address
    (e.g., announce-bounces at example.com) be in the
    'accept_these_nonmembers', and set generic_nonmember_action to
    discard. If necessary, you can further set all members of the list to
    moderated, and set member_moderation_action to 'discard'.


    --
    - Patrick Bogen
  • Mark Sapiro at Nov 21, 2006 at 6:21 pm

    Tim Tyler wrote:
    1. Is there a way when creating lists to have it automatically set
    certain fields with certain defaults such as Archives off, mail size
    limit 40k, etc.; instead of having to manually set them?

    There are mm_cfg.py settings for some list defaults, but not all.

    There are settings for DEFAULT_ARCHIVE and DEFAULT_MAX_MESSAGE_SIZE.
    See the sections "# Archive defaults" and "# List defaults" in
    Defaults.py for a list of what's available.

    2. Is there a way to set a filter for a list such that all messages
    are automatically rejected or discarded if they don't have a
    particular subject header string such as [announce] in it? I see
    that one can accept [announce] in the filters, but how does one wild
    card reject all the rest? Also, I presume that order matters, correct?

    In header filter rules, first set one or more rules to match and accept
    what you want to pass. Then set the last rule with a RE that matches
    anything (e.g. simply '^' or '.') and an action of reject (or hold or
    discard).

    Yes, order matters, the first rule matched is the one that applies to
    the message.

    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan
  • Ralf Hildebrandt at Nov 21, 2006 at 6:37 pm

    * Mark Sapiro <msapiro at value.net>:

    1. Is there a way when creating lists to have it automatically set
    certain fields with certain defaults such as Archives off, mail size
    limit 40k, etc.; instead of having to manually set them?

    There are mm_cfg.py settings for some list defaults, but not all.
    Which ones? Is there a list which defaults can be put there?

    --
    Ralf Hildebrandt (i.A. des IT-Zentrums) Ralf.Hildebrandt at charite.de
    Charite - Universit?tsmedizin Berlin Tel. +49 (0)30-450 570-155
    Gemeinsame Einrichtung von FU- und HU-Berlin Fax. +49 (0)30-450 570-962
    IT-Zentrum Standort CBF send no mail to plonk at charite.de
  • Mark Sapiro at Nov 21, 2006 at 6:56 pm

    Ralf Hildebrandt wrote:
    * Mark Sapiro <msapiro at value.net>:
    There are mm_cfg.py settings for some list defaults, but not all.
    Which ones? Is there a list which defaults can be put there?

    Read Defaults.py.

    Anything that's set there can be overridden in mm_cfg.py (although as
    noted there, some settings are for internal Mailman use and shouldn't
    be changed).

    Anything not in Defaults.py can't be meaningfully set in mm_cfg.py
    unless you modify Mailman code to use it.

    --
    Mark Sapiro <msapiro at value.net> The highway is for gamblers,
    San Francisco Bay Area, California better use your sense - B. Dylan

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedNov 20, '06 at 6:58p
activeNov 21, '06 at 6:56p
posts5
users4
websitelist.org

People

Translate

site design / logo © 2022 Grokbase