Hi, i am working with " Claws-Mail " on two different computers. Now i have to merge the emails ( hundrets in different directories ) - because i want to have the same state on both computers.
Every email is stored i a seperate, single file and named very simple with a number, see the example : internet@netbook:~$ ls -l ./Mail/inbox/Angebote/ insgesamt 3008 -rw------- 1 internet internet 7442 8. Mär 2011 1 -rw------- 1 internet internet 52824 26. Apr 2011 10 -rw-r--r-- 1 internet internet 52824 23. Jul 2011 100 -rw-r--r-- 1 internet internet 4170 23. Jul 2011 101 -rw-r--r-- 1 internet internet 29068 23. Jul 2011 102 But i can NOT move one directory directly to the other place because if the file named as 10 exists on the other side, i have to rename it to the next free ununsed number, maybe 103. And in this way i have to take the next file form one computer, take next a look if the same number exists on the other side, and if not, i can move it directly, otherwiese i have to test if the next " number / file " exists, next rename the original file and move it renamed with a new higher number to the new place. So i think this is a good job for a script, but my knwoledge is not good enough to write such a script. But maybe some one of you has more time spend with scripting and can offer me such a simple (?) script that is doing this job better than if i do it manually ? Thanks in advance - Reginaldo _______________________________________________ RLUG mailing list [email protected] http://lists.lug.ro/mailman/listinfo/rlug
