469,360 Members | 1,774 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,360 developers. It's quick & easy.

mailman mailing list program

Greetings.

I've never seen a more complicated, verbose pile of hogwash than the
"deliverd by mailman" mailing list program.

Still I have to use it.

I'm trying to get a header to get attached tot he email. it gets stripped
from the email, whwere as the footer comes in as an attachment.

all this is buried under "no0-digest" options for some crazy reason.

How do I get the header to work?

Jul 18 '05 #1
10 1649
Carol Carrot wrote:
I've never seen a more complicated, verbose pile of hogwash than the
"deliverd by mailman" mailing list program.


+1 QOTW.
Jul 18 '05 #2
now what is +1 QOTW.supposed to mean?


Jul 18 '05 #3
Carol Carrot <Ca*********@sofsof.net> wrote:

[exhasperated Mailman rant cut]
Hi Carol,

Your question isn't really related to Python: Python's just the
implementation language for Mailman. A better bet is to ask your
question on "Mailman Users":

http://list.org/lists.html

where you can get help from dozens of other long-suffering Mailman
administrators.
: I'm trying to get a header to get attached tot he email. it gets stripped
: from the email, whwere as the footer comes in as an attachment.
: all this is buried under "non-digest" options for some crazy reason.

Having a header is dependent on how messages are delivered. In digest
mode, messages are bundled and delivered as a single message. Sending
the same header, over and over in the bulk-message, would not be a
good idea.

So that's why there is a separate variable option that describes the
header for non-digest messages (msg_header), and one for digest
messages (digest_header). I guess it might make sense to have a
separate "Header/Footer" configuration menu, but that's a user
interface issue.

: How do I get the header to work?

Did you update the 'msg_header' variable?
Please continue your questions on the 'Mailman Users' mailing list;
you should get better help from them.
Good luck to you!
Jul 18 '05 #4
Thank you !

How do I know if I won the QOTW?
Ah well I can keep trying.
"Daniel Yoo" <dy**@hkn.eecs.berkeley.edu> wrote in message
news:cf***********@agate.berkeley.edu...
Carol Carrot <Ca*********@sofsof.net> wrote:

[exhasperated Mailman rant cut]
Hi Carol,

Your question isn't really related to Python: Python's just the
implementation language for Mailman. A better bet is to ask your
question on "Mailman Users":

http://list.org/lists.html

where you can get help from dozens of other long-suffering Mailman
administrators.
: I'm trying to get a header to get attached tot he email. it gets stripped : from the email, whwere as the footer comes in as an attachment.
: all this is buried under "non-digest" options for some crazy reason.

Having a header is dependent on how messages are delivered. In digest
mode, messages are bundled and delivered as a single message. Sending
the same header, over and over in the bulk-message, would not be a
good idea.

So that's why there is a separate variable option that describes the
header for non-digest messages (msg_header), and one for digest
messages (digest_header). I guess it might make sense to have a
separate "Header/Footer" configuration menu, but that's a user
interface issue.

: How do I get the header to work?

Did you update the 'msg_header' variable?
Please continue your questions on the 'Mailman Users' mailing list;
you should get better help from them.
Good luck to you!

Jul 18 '05 #5
Hi all,
I wonder if it is possible to create an object of func, class or
method in the run time by it's name? To make it more clear, let me show you
an example: I parsed the python code and found a function with name 'len'. I
want to know if it is a build-in func(where can I look up?). If so, ignore
it otherwise I want to find out which module is it defined in. All I know is
the name (which is a string), and all the modules that this program have
imported. In the same way, I also need to process the class and methods
call. I wonder if it is possible? I will appreciate your help very much!!

-Ryan
Jul 18 '05 #6
> Hi all,
I wonder if it is possible to create an object of func, class or
method in the run time by it's name? To make it more clear, let me show you an example: I parsed the python code and found a function with name 'len'. I want to know if it is a build-in func(where can I look up?). If so, ignore
it otherwise I want to find out which module is it defined in. All I know is the name (which is a string), and all the modules that this program have
imported. In the same way, I also need to process the class and methods
call. I wonder if it is possible? I will appreciate your help very much!!

-Ryan
--
http://mail.python.org/mailman/listinfo/python-list


Jul 18 '05 #7
Hi all,
I wonder if it is possible to create an object of func, class or
method in the run time by it's name? To make it more clear, let me show
you an example: I parsed the python code and found a function with name
'len'.
I want to know if it is a build-in func(where can I look up?). If so,
ignore
it otherwise I want to find out which module is it defined in. All I know
is the name (which is a string), and all the modules that this program have
imported. In the same way, I also need to process the class and methods
call. I wonder if it is possible? I will appreciate your help very much!!

-Ryan
Jul 18 '05 #8
"Carol Carrot" <Ca*********@sofsof.net> writes:
now what is +1 QOTW.supposed to mean?


Someone just voted for (+1) your statement as a Quote of the Week,
which appears at the start of the weekly summary...

Nick

--
# sigmask || 0.2 || 20030107 || public domain || feed this to a python
print reduce(lambda x,y:x+chr(ord(y)-1),' Ojdl!Wbshjti!=obwAcboefstobudi/psh?')
Jul 18 '05 #9
On Tue, 17 Aug 2004, Yang Zhang wrote:
I want to know if it is a build-in func(where can I look up?). If so,
ignore it otherwise I want to find out which module is it defined in.
All functions and classes have a __module__ attribute which is set to the
name of the module in which they were defined.
All I know is the name (which is a string), and all the modules that
this program have imported.
If you first "import __main__", you can use getattr(__main__,"foo") to get
the object named "foo" in the global namespace.
In the same way, I also need to process the class and methods call. I
wonder if it is possible? I will appreciate your help very much!!


Here is a small snippet demonstrating the above:

import __main__
from types import FunctionType, ClassType

def which_module(name, where = __main__):
try:
obj = getattr(where, name)
except AttributeError:
obj = getattr(__builtins__, name)
try:
return obj.__module__
except AttributeError:
if not isinstance(obj, (FunctionType, ClassType)):
raise TypeError, "%s doesn't reference a function or class" % name
return None

print which_module('list') # --> '__builtin__'
from math import sin
print which_module('sin') # --> 'math'
a = 6
print which_module('a') # --> TypeError

Hope this helps.

Jul 18 '05 #10
weekly summary!
Wahoo!!!!

"Nick Vargish" <na*******@bandersnatch.org> wrote in message
news:m3************@tanelorn.bandersnatch.org...
"Carol Carrot" <Ca*********@sofsof.net> writes:
now what is +1 QOTW.supposed to mean?
Someone just voted for (+1) your statement as a Quote of the Week,
which appears at the start of the weekly summary...

Nick

--
# sigmask || 0.2 || 20030107 || public domain || feed this to a

python print reduce(lambda x,y:x+chr(ord(y)-1),'

Ojdl!Wbshjti!=obwAcboefstobudi/psh?')
Jul 18 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Barry A. Warsaw | last post: by
reply views Thread by John Roth | last post: by
2 posts views Thread by Barry Warsaw | last post: by
1 post views Thread by Info VH | last post: by
reply views Thread by Brian van den Broek | last post: by
3 posts views Thread by swangdb | last post: by
reply views Thread by kalin mintchev | last post: by
1 post views Thread by lg | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.