Changeset 1390 in ProjectBuilder for projects/md2mb
- Timestamp:
- Jan 8, 2012, 2:42:33 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/md2mb/devel/md2mb/bin/md2mb.pl
r1389 r1390 13 13 # CHANGE AS YOU WISH 14 14 my $oldroot = "/users/segolene/.Mail"; 15 my $newroot = "/users/segolene/.thunderbird/ 60q6hqwp.default/Mail/pop.home.musique-ancienne.org/";15 my $newroot = "/users/segolene/.thunderbird/qk2f4dl6.default/Mail/pop.home.musique-ancienne.org/"; 16 16 # Is the newroot a file (1) or a dir (0) 17 17 my $nrisfile = 0; … … 30 30 31 31 find(\&md2mb,($oldroot)); 32 33 if ((-z "$newroot/Inbox") || (! -e "$newroot/Inbox")) { 34 print "Renaming inbox into Inbox\n"; 35 move("$newroot/inbox","$newroot/Inbox") if (-e "$newroot/inbox"); 36 } 32 37 33 38 sub md2mb { … … 53 58 $destname =~ s|^$oldroot||; 54 59 # Target name is not under a .directory dir but under a .sdb one 55 $destname =~ s|\.([ [:alnum:]éèçàù\s]*)\.directory|$1.sbd|g;60 $destname =~ s|\.([^/]+)\.directory/|$1.sbd/|g; 56 61 # Here we create the target dir and target name 57 62 my $cdir = dirname("$newroot/$destname");
Note:
See TracChangeset
for help on using the changeset viewer.