I have a script that I use to add an address to
accept_these_nonmembers
It uses
"mlist.accept_these_nonmembers.append('$1')"
Is there a way I can invoke this C-shell script so that the address is surrounded by apostrophes? I want the resulting address to be
'user@example.com'
I tried invoking my script
..... 'user@example.com'
but that did not preserve the apostrophes. I am not sure if this is a C-shell question, or a Mailman-python question, or both. Thanks.
Barry S. Finkel Computing and Information Systems Division Argonne National Laboratory Phone: +1 (630) 252-7277 9700 South Cass Avenue Facsimile:+1 (630) 252-4601 Building 240, Room 5.B.8 Internet: BSFinkel@anl.gov Argonne, IL 60439-4828 IBMMAIL: I1004994
Barry Finkel wrote:
I have a script that I use to add an address to
accept_these_nonmembers
It uses
"mlist.accept_these_nonmembers.append('$1')"
Is there a way I can invoke this C-shell script so that the address is surrounded by apostrophes? I want the resulting address to be
'user@example.com'
I tried invoking my script
..... 'user@example.com'
but that did not preserve the apostrophes. I am not sure if this is a C-shell question, or a Mailman-python question, or both.
You could try invoking your script as
..... \\\'user@example.com\\\'
This will cause $1 to be \'user@example.com\' and mlist.accept_these_nonmembers.append('\'user@example.com\'') should do what you want.
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
b19141@anl.gov
-
Mark Sapiro