Re: [Mailman-Users] Setting an Address Enclosed in Apostrophes

2010-12-02 Thread Mark Sapiro
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
>
> 'u...@example.com'
>
>I tried invoking my script
>
>  . 'u...@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

  . \\\'u...@example.com\\\'

This will cause $1 to be \'u...@example.com\' and
mlist.accept_these_nonmembers.append('\'u...@example.com\'') should do
what you want.

-- 
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


[Mailman-Users] Setting an Address Enclosed in Apostrophes

2010-12-02 Thread Barry Finkel
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

 'u...@example.com'

I tried invoking my script

  . 'u...@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: bsfin...@anl.gov
Argonne, IL   60439-4828 IBMMAIL:  I1004994

--
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