Re: [Mailman-Users] missing list!

2009-10-08 Thread Khalil Abbas

Actually the missing list is called: dailymail..

 

I went to /var/lib/mailman/lists/dailymail and found these files:

 

config.pck
config.pck.corrupt
config.pck.last
config.pck.safety
config.pck.MY-MAIL-SERVER-ADDRESS.11461
config.pck.MY-MAIL-SERVER-ADDRESS.2530
config.pck.MY-MAIL-SERVER-ADDRESS.2554
config.pck.MY-MAIL-SERVER-ADDRESS.2593
config.pck.MY-MAIL-SERVER-ADDRESS.2608
config.pck.MY-MAIL-SERVER-ADDRESS.9818
pending.pck
request.pck


could the correct file be there? do I have to rename any of these files to make 
it work again? if there's nothing I can do, is there a way to backup the list 
of members in this missing list to a text file so I can format the server and 
install mailman again and reconfigure the lists ?

 

 

Thanks ..


 
 Date: Wed, 7 Oct 2009 17:50:02 -0700
 From: m...@msapiro.net
 To: khillo...@hotmail.com; mailman-users@python.org
 Subject: Re: [Mailman-Users] missing list!
 
 Khalil Abbas wrote:
 
 one of my lists is missing !! I'm getting this :
 
  
 
 ./list_members list1
 No such list: list1
 
 
 So the list isn't there. I.e., there is no lists/list1/ directory
 containing at least one of config.pck, config.pck.last, config.db or
 config.db.last. The directory has been renamed or removed or the
 config.* files have been removed.
 
 0
 ./list_members list2
 477
 ./list_members list3
 483
 ./list_members list4
 442
 
 
 when running : bin/list_lists I get this error:
 
  
 
 ./list_lists
 Traceback (most recent call last):
  File ./list_lists, line 122, in ?
  main()
  File ./list_lists, line 94, in main
  mlist = MailList.MailList(n, lock=0)
  File /usr/lib/mailman/Mailman/MailList.py, line 130, in __init__
  self.Load()
  File /usr/lib/mailman/Mailman/MailList.py, line 644, in Load
  raise Errors.MMCorruptListDatabaseError, e
 Mailman.Errors.MMCorruptListDatabaseError: [Errno 2] No such file or 
 directory: '/var/lib/mailman/lists/dailymail/config.db.last'
 
 
 There is a lists/dailymail/ directory containing probably a config.pck
 and config.pck.last, but these are somehow corrupted and can't be
 unpickled by the list instantiation process.
 
 Note that the current (Mailman 2.1.x) files are config.pck*. It is
 normal to not have config.db* files.
 
 -- 
 Mark Sapiro m...@msapiro.net The highway is for gamblers,
 San Francisco Bay Area, California better use your sense - B. Dylan
 
  
_
Windows Live: Friends get your Flickr, Yelp, and Digg updates when they e-mail 
you.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] missing list!

2009-10-08 Thread Mark Sapiro
Khalil Abbas wrote:

I went to /var/lib/mailman/lists/dailymail and found these files:


config.pck
config.pck.corrupt
config.pck.last
config.pck.safety
config.pck.MY-MAIL-SERVER-ADDRESS.11461
config.pck.MY-MAIL-SERVER-ADDRESS.2530
config.pck.MY-MAIL-SERVER-ADDRESS.2554
config.pck.MY-MAIL-SERVER-ADDRESS.2593
config.pck.MY-MAIL-SERVER-ADDRESS.2608
config.pck.MY-MAIL-SERVER-ADDRESS.9818
pending.pck
request.pck


could the correct file be there? do I have to rename any of these files to
make it work again?

Do

  /path/to/bin/dumpdb -p /var/lib/mailman/lists/dailymail/$f

for $f equal to each of the above config.pck* files in turn.

Some of these will probably throw an exception and some may work. For
those that work, pick the file with the most recent timestamp and copy
it to config.pck

Also, look in mailman's 'error' log for messages with timestamps around
the timestamps of the above files for more insight into the problem.

if there's nothing I can do, is there a way to backup
 the list of members in this missing list to a text file so I can format the
server and install mailman again and reconfigure the lists ?


Hopefully, you can identify at least one usable config.pck and just use
it. If not, you can try running strings on the files to extract data
from them.

-- 
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
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] Virtual domain support

2009-10-08 Thread Terri Oda

Geoff Shang wrote:
I will review your patch, and I used list-domain.tld instead of 
list.domain.tld, but I basically came to the same conclusion and just 
implemented same.  I got the idea from 
http://mail.python.org/pipermail/mailman-users/2008-September/063254.html


This really needs to be documented somewhere.


And by somewhere I recommend you put it into the Mailman Wiki, 
probably just add it to the FAQs:


http://wiki.list.org/display/DOC/Frequently+Asked+Questions

I'm guessing it should be in site admin tasks:

http://wiki.list.org/display/DOC/4+Site+administrator+tasks

So here's a link to a page where you can cut and paste the info that you 
think should be recorded:


http://wiki.list.org/pages/createpage.action?spaceKey=DOCfromPageId=4030488


So if you've got a minute to summarize the stuff and put it there, that 
would be awesome.  Thanks! :)


 Terri

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] Virtual domain support

2009-10-08 Thread Geoff Shang

On Thu, 8 Oct 2009, Terri Oda wrote:


Geoff Shang wrote:
I will review your patch, and I used list-domain.tld instead of 
This really needs to be documented somewhere.


And by somewhere I recommend you put it into the Mailman Wiki, probably 
just add it to the FAQs:


I'll do this.  I probably won't get a chance for a few days as we're still 
madly setting up stuff over here but I will definitely write up something.


Geoff.

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


[Mailman-Users] bin/arch : ctime

2009-10-08 Thread Rob Lingelbach
I rebuilt, not long ago, the archives of a particular mailinglist, and  
the html files' atime/ctime/mtime were all changed to the time of the  
rebuild.  The search facilities I'm using, on the same machine-  
glimpseindex and swish-e - by default use the ctime or mtime to return  
results, which isn't very convenient when searching by Date:.


Has anybody ever written a script that would rebuild the html message  
archives that would also modify the file ctime/mtime back to the date  
of the message, as retrieved from the list's mbox file?


thanks in advance.

--
Rob Lingelbach
r...@colorist.org











--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] bin/arch : ctime

2009-10-08 Thread Mark Sapiro
Rob Lingelbach wrote:

Has anybody ever written a script that would rebuild the html message  
archives that would also modify the file ctime/mtime back to the date  
of the message, as retrieved from the list's mbox file?


This script

---
import os
import re
import time

import os.path

BASE = '/usr/local/mailman/archives/private/listname'
NRE = re.compile(r'^\d+.html$')
DRE = re.compile(r'^\s*I([^]*)/I\s*$')

def process_file(pname):
for line in open(pname):
mo = DRE.match(line)
if mo:
try:
ptime = time.strptime(mo.group(1),
  '%a %b %d %H:%M:%S %Z %Y')
except ValueError:
next
ptime = time.mktime(ptime)
os.utime(pname, (ptime, ptime))
break

for dir, dirnames, filenames in os.walk(BASE):
for fname in filenames:
if NRE.match(fname):
process_file(os.path.join(dir, fname))
---

will change atime and mtime  for all the nn.html files subordinate
to the BASE directory to the time parsed from the line

IDay Mmm dd hh:mm:ss TZ /I

in the file. It only changes atime and mtime to that time. ctime is
changed to the time that it runs.

-- 
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
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] bin/arch : ctime

2009-10-08 Thread Rob Lingelbach


On Oct 8, 2009, at 6:30 PM, Mark Sapiro wrote:


will change atime and mtime  for all the nn.html files subordinate
to the BASE directory to the time parsed from the line


thank you very much, just what was needed.

Rob

--
Rob Lingelbach
r...@colorist.org











--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] bin/arch : ctime

2009-10-08 Thread Mark Sapiro
Mark Sapiro wrote:

This script

---
[...]
try:
ptime = time.strptime(mo.group(1),
  '%a %b %d %H:%M:%S %Z %Y')
except ValueError:
next
[...]


Ooops. That should be

except ValueError:
continue

Also, a somewhat improved version can be found at
http://www.msapiro.net/scripts/update_archive_mtime (mirrored at
http://fog.ccsf.cc.ca.us/~msapiro/scripts/update_archive_mtime).

-- 
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
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] bin/arch : ctime

2009-10-08 Thread Rob Lingelbach


On Oct 8, 2009, at 8:11 PM, Mark Sapiro wrote:


Mark Sapiro wrote:


This script

---

[...]

  try:
  ptime = time.strptime(mo.group(1),
'%a %b %d %H:%M:%S %Z %Y')
  except ValueError:
  next

[...]


Ooops. That should be

   except ValueError:
   continue


funny thing is, it worked, on a very minimal directory that I just ran  
a test on:


before running script:

ro...@soho89-16-222-12 0:08 pts/1 /var/www/html/mailman/archives/ 
private/mfrs/2009-September# stat 00.html

  File: `00.html'
  Size: 3283Blocks: 16 IO Block: 4096   regular file
Device: fd03h/64771dInode: 26613721Links: 1
Access: (0664/-rw-rw-r--)  Uid: (0/root)   Gid: (   41/ mailman)
Access: 2009-10-09 00:00:59.0 +0100
Modify: 2009-10-08 20:29:41.0 +0100
Change: 2009-10-08 20:29:41.0 +0100

and after running:

ro...@soho89-16-222-12 0:10 pts/1 /var/www/html/mailman/archives/ 
private/mfrs/2009-September# stat 00.html

  File: `00.html'
  Size: 3283Blocks: 16 IO Block: 4096   regular file
Device: fd03h/64771dInode: 26613721Links: 1
Access: (0664/-rw-rw-r--)  Uid: (0/root)   Gid: (   41/ mailman)
Access: 2009-09-02 00:47:38.0 +0100
Modify: 2009-09-02 00:47:38.0 +0100
Change: 2009-10-09 00:10:29.0 +0100

and the one invocation also took care of another message.html file.

But I'll make the change and test it again, and look at the more  
complete version as well, before I

start using it on the 60k message files I need it to work on.


--
Rob Lingelbach
r...@colorist.org











--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] bin/arch : ctime

2009-10-08 Thread Mark Sapiro
Rob Lingelbach wrote:

On Oct 8, 2009, at 8:11 PM, Mark Sapiro wrote:

 Mark Sapiro wrote:

 This script

 ---
 [...]
   try:
   ptime = time.strptime(mo.group(1),
 '%a %b %d %H:%M:%S %Z %Y')
   except ValueError:
   next
 [...]


 Ooops. That should be

except ValueError:
continue

funny thing is, it worked, on a very minimal directory that I just ran  
a test on:


It will work as long as it doesn't hit a I.../I line that doesn't
contain a date matching the '%a %b %d %H:%M:%S %Z %Y' format. In fact,
that is one of those things that won't happen as long as the message
files are all well formed, but is there in order to keep looking in
case it does.

Python doesn't care that the name 'next' is undefined until it actually
tries to execute it.

-- 
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
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] bin/arch : ctime

2009-10-08 Thread Rob Lingelbach


On Oct 8, 2009, at 8:28 PM, Mark Sapiro wrote:


files are all well formed, but is there in order to keep looking in
case it does.

Python doesn't care that the name 'next' is undefined until it  
actually

tries to execute it.


There's a vortex with python in the center, me on the fringe.

--
Rob Lingelbach
r...@colorist.org











--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9