Re: [Mailman-Users] google tracking code

2012-07-04 Thread Stephen J. Turnbull
Mark Sapiro writes:

  The other way is to just write a script to add the tracking code to
  every archives/private/*/*/+([0-9]).html file.

Shouldn't that be archives/private/*/*/[0-9]+\.html?

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


Re: [Mailman-Users] google tracking code

2012-07-04 Thread Mark Sapiro
Stephen J. Turnbullwrote:

Mark Sapiro writes:

  The other way is to just write a script to add the tracking code to
  every archives/private/*/*/+([0-9]).html file.

Shouldn't that be archives/private/*/*/[0-9]+\.html?


No. What I wrote is a bash extglob, not a regular expression (note '*',
not '.*'). If it were an re it might be something like
archives/private/[^/]*/[^/]*/[0-9]+\.html.

-- 
Mark Sapiro m...@msapiro.netThe 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


Re: [Mailman-Users] google tracking code

2012-07-04 Thread Stephen J. Turnbull
Mark Sapiro writes:
  No.

Sorry!  Gotta stop writing non-urgent mail on planes (especially when
flying out of a disaster area)

  What I wrote is a bash extglob

*sigh* Yet another reason to hate bash  (YMMV of course, not a
criticism of you for using it!)


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


Re: [Mailman-Users] google tracking code

2012-07-03 Thread Mark Sapiro
Andrew Watson wrote:

How can I put google tracking code in archived email messages?
I am using pipermail.


Existing archived messages or new messages as they are archived?

For new messages it's trivial. Just make a sitewide version of the
article.html template for each supported language that includes the
tracking code. See the FAQ at http://wiki.list.org/x/jYA9.

For existing archived messages there are a couple of ways. The easiest
is just run bin/arch --wipe LISTNAME on each list after installing
the edited article.html template, but this can be time consuming and
have undesirable side effects if your LISTNAME.mbox files go back a
long way.

The other way is to just write a script to add the tracking code to
every archives/private/*/*/+([0-9]).html file.

In either case, you may then want to fix the change date of the files.
See http://www.msapiro.net/scripts/update_archive_mtime for the
rationale and a script to do this. In fact, you could modify that
script to add the tracking code too.

-- 
Mark Sapiro m...@msapiro.netThe 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] google tracking code

2012-07-02 Thread Andrew Watson
How can I put google tracking code in archived email messages?
I am using pipermail.
--
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