[Mailman-Users] List first created

Peter Fraser softwareinfojam at gmail.com
Wed Oct 23 17:23:29 EDT 2019


Thanks very much. Works perfectly.


Regards
SI

Sent from Mail for Windows 10

From: Mark Sapiro
Sent: Wednesday, October 23, 2019 3:50 PM
To: mailman-users at python.org
Subject: Re: [Mailman-Users] List first created

On 10/23/19 11:56 AM, Peter Fraser wrote:
> Hi All
> I was wondering, is there a way to tell when a mailing list was first created? 

Both Mailman 2.1 and Mailman 3 lists have a created_at attribute.

In Mailman 2.1 this is a floating point number of seconds since the
epoch. There is a withlist script at
<https://www.msapiro.net/scripts/created.py> (mirrored at
<https://www.msapiro.net/scripts/created.py>) to display this timestamp
in human readable form.

In Mailman 3 this is a datetime.datetime object. you can display it in
mailman shell, e.g.,

$ mailman shell -l test.example.net
Welcome to the GNU Mailman shell
The variable 'm' is the test.example.net mailing list
>>> m.created_at
datetime.datetime(2018, 8, 4, 18, 12, 19, 331435)
>>>

in this case, the list was created on 2018-04-18 at 18:12:19.331435

-- 
Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list Mailman-Users at python.org
https://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: https://mail.python.org/mailman/options/mailman-users/softwareinfojam%40gmail.com



More information about the Mailman-Users mailing list