[Mailman-Users] defining topics
Christopher Adams
chris.a.adams at state.or.us
Wed Jul 14 22:11:14 CEST 2004
Thanks for your reply. I guess I am a bit confused. From the previous
message from Jim Tittsler, he says: "The regular expression should not
be trying to match the
Keywords: or Subject: field name... only the "content" of those headers,
or "licensing" in your example." To me, that meant that if I specifed
Keywords:Licensing as the regexp, I only had to include 'Licensing' to
match.
Also, what do you mean by enabling body checking? Are you talking about
in the MTA?
When you do subject field matching, are you matching in the actual
subject field, or are you using a Subject field in the body? I guess
you would have to do Body checks for that as well. The reason I am not
doing Subject field checks is that there are over 20 topics and some
want to send to half of those topics, which would make the Subject field
a bit funky.
Christopher Adams
Jeff Barger wrote:
>
> On Jul 14, 2004, at 3:05 PM, Christopher Adams wrote:
>
>> Thanks for your reply. According to what you are saying, if I have a
>> topic called 'Licensing' and I define the topic with the regexp
>> 'Keywords:Licensing', I should be able to just include Licensing on
>> the first line (or within the first 5 lines) of the message, and the
>> Topic match should be met.
>
>
> I think that would need to be 'Keywords: Licensing' in the body using
> that regexp (and naturally you need to have body checking enabled).
>
> You need to watch body-matching though. If the body content is
> base64'd I don't think it'll catch it. I use Subject matching on the
> lists I take care of that use Topics and generally that has worked out
> well.
>
>
> -Jeff
>
>
>> I tried this, but only subscribers who have not subscribed to topics
>> receive the message, which is what should happens to them. However,
>> subscribers to the Licensing topic do not receive it. What am I doing
>> wrong?
>>
>> Christopher Adams
>>
>> Jim Tittsler wrote:
>>
>>> On Thu, Jul 08, 2004 at 10:10:24AM -0700, Christopher Adams wrote:
>>>
>>>> "To post on a given topic, you need to make sure that the Keywords:
>>>> or Subject: headers in a message match the regular expression for
>>>> that topic."
>>>>
>>>> It sounds like it is referring to the actual header portion of the
>>>> message.There obviously isn't a Keywords: header in the actual
>>>> header of the message. However, it goes on to say:
>>>>
>>>
>>> There *can* be a Keywords: header in the message headers. This
>>> occurs most commonly in messages gatewayed from news...
>>> although I suppose you could have your Email client add one as
>>> well.
>>>
>>>
>>>> "By default, you can put a Keywords: section in the beginning of
>>>> the body of your message, but this can be configured by your list
>>>> admiinistrator."
>>>>
>>>> I take that to mean that if I define the topic with the Regular
>>>> Expression "Keywords: Licensing", that all I have to do to match
>>>> the topic is to compose my message body like this:
>>>>
>>>> Keywords: Licensing
>>>>
>>>> blah blah blah.
>>>>
>>>
>>> The Keywords: or Subject: psuedo headers need to appear within
>>> the first topics_bodylines_limit of a text/plain message (or
>>> the text/plain part of a multipart/alternative message). By
>>> default, it just looks at the first 5 lines of the body (but it
>>> can be changed to scan all or none of the message looking for
>>> the psuedo headers). The regular expression search is done in a
>>> case insensitive way. When a match is detected, the message
>>> gets an X-Topics: header showing the matching topic name.
>>>
>>> The regular expression should not be trying to match the
>>> Keywords: or Subject: field name... only the "content" of those
>>> headers, or "licensing" in your example.
>>>
>>>
>>>> However, I don't receive the message. It is true that any address
>>>> not subscribed to any topic will receive all messages, so the
>>>> message is being delivered, just not to the address subscribed to
>>>> the topic. I have tried defining the regular expression as just
>>>> "Licensing" and composing my message with Licensing on the first
>>>> line, but that doesn't work either.
>>>>
>>>
>>> If you are sending text/plain messages with the psuedo header
>>> words starting in the first column, you might want to confirm
>>> the value of the of topics_bodylines_limit for the list. (Use
>>> bin/withlist.)
>>>
>>>
>>>> As with other Mailman "features", the documentation on this is
>>>> pretty cryptic. A simple regular expression should not be hard to
>>>> match. I just don't know what header labels to use when trying to
>>>> match the topic in the body of the message. Using the Subject line
>>>> works, but some of my lists mail to multiple topics and using the
>>>> Subject field is not practical.
>>>>
>>>
>>> Subject:
>>> Keywords:
>>>
>>
>> ------------------------------------------------------
>> Mailman-Users mailing list
>> Mailman-Users at 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/
>
>
> ------------------------------------------------------
> Mailman-Users mailing list
> Mailman-Users at 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/
--
Christopher Adams
Library Systems Analyst
Oregon State Library
503-378-4243 258
chris.a.adams at state.or.us
More information about the Mailman-Users
mailing list