Batch Rename emails in vmail
I have moved mail from my old server to the new one and the server name is stored into the file name. just copying the mail over it is displayed in IMAP but the new servers mails and other old servers mail are not sorted properly. I thought it might be the file name.
I want to change
-rw------- 1 vmail vmail 9455 May 6 06:31 1336300280.M851460P7400V000000000000FC00I002A0136_ 0.webster.trickhosting.biz,S=9455:2,S
-rw------- 1 vmail vmail 9455 May 6 06:31 1336300280.M851460P7400V000000000000FC00I002A0136_ 0.web1.trickhosting.biz,S=9455:2,S
and I have hundreds of files to change so it would be nice if I could just point a script to a directory and let it change them recursively.
Will someone help me with this?