Hello,

Just recovered from a crashed system but had problems with my mailing lists 
subscriptions : whatever action I tried, I got :

sublist/misc: Invalid argument

Below is what I tried and how I recovered everything, just in case someone gets 
into this...


I've read that it is probably caused by a change in the GDBM file format 
between the crashed machine and the newly installed one.

I have created a new list (testlist2) but the "file" command gives me the same 
result with both the unreadable (testlist) and the readable one :

# file /home/vmail/mlm/testlist/sublist/misc                        
/home/vmail/mlm/testlist/sublist/misc: GNU dbm 1.x or ndbm database, little 
endian
# file /home/vmail/mlm/testlist2/sublist/misc                        
/home/vmail/mlm/testlist2/sublist/misc: GNU dbm 1.x or ndbm database, little 
endian

I tried compiling gdbm but the provided testgdbm program is unable to list the 
content of either file.

While writing that email to ask for help, I looked at both architectures and it 
happens that old system was i686 while new is amd64.

So I found a i686 machine, installed couriermlm, created a dummy 'recover' list 
:

$ couriermlm create recover ADDRESS=anyth...@anywhere.com

Then I copied testlist/sublist/* to recover/sublist

Then exported with :

$ couriermlm export recover >recover.list

Copied that file over to the amd64 machine and there :

$ rm -f testlist/sublist/*
$ couriermlm import testlist <recover.list

Verified with :

$ couriermlm lsub testlist |wc -l
10701

Phew!

Backing up a plain text version of the subscription lists is better for your 
health.


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to