View Single Post
  #1  
Old 12th May 2012, 18:17
mmidgett mmidgett is offline
Senior Member
 
Join Date: Aug 2006
Location: Mooresville, North Carolina - USA
Posts: 117
Thanks: 5
Thanked 14 Times in 13 Posts
Default 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

to

-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?
Reply With Quote
Sponsored Links