Changeset 1448 in ProjectBuilder for projects/md2mb
- Timestamp:
- Apr 4, 2012, 5:14:49 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/md2mb/devel/md2mb/bin/md2mb.pl
r1447 r1448 26 26 Aborting 27 27 EOF 28 my $oldroot = first { -d } "$ENV{HOME}/.Mail", "$ENV{HOME}/Mail"; 28 29 # CHANGE AS YOU WISH 29 my $oldroot = "/users/segolene/.Mail";30 30 my $newroot = "/users/segolene/.thunderbird/qk2f4dl6.default/Mail/pop.home.musique-ancienne.org/"; 31 31 # Is the newroot a file (1) or a dir (0) … … 38 38 # parse command-line options 39 39 GetOptions( 40 'debug|d' => \$debug, 41 'help|h' => \$help, 42 'man|m' => \$man, 40 'debug|d' => \$debug, 41 'help|h' => \$help, 42 'man|m' => \$man, 43 'oldroot|old|o' => \$oldroot, 43 44 ) or pod2usage(2); 44 45 pod2usage(1) if ($help); … … 56 57 EOF 57 58 } 59 60 # some sanity checks before proceeding 61 -d $oldroot or die "cannot find mailbox root `$oldroot'"; 58 62 59 63 # create destination path … … 162 166 163 167 Options: 164 -debug | -d debug mode 165 -help | -h brief help message 166 -man | -m full documentation 168 -debug | -d debug mode 169 -help | -h brief help message 170 -man | -m full documentation 171 -oldroot | -old | -o location of the KMail mailboxes 167 172 168 173 =head1 OPTIONS … … 182 187 183 188 Prints the manual page and exits. 189 190 =item B<-oldroot> 191 192 Specify where your B<KMail> mailboxes are to be found. By default assumes a 193 folder called F<.Mail> or F<Mail> in your homedir, preferring F<.Mail> if it 194 exists. 184 195 185 196 =back … … 191 202 available in your search path, and will preferentially use B<formail>. 192 203 204 By default, B<md2mb.pl> assumes that your B<kmail> mailboxes are stored in a 205 folder called F<.Mail> or F<Mail> in your homedir. If this assumption is 206 incorrect, you need to specify the correct folder with B<-oldroot>. 207 193 208 =head1 AUTHOR 194 209 210 =over 4 211 212 =item * 213 195 214 Bruno Cornec, http://brunocornec.wordpress.com 196 215 216 =item * 217 218 Edward Baudrez, C<< ebaudrez@cpan.org >> 219 220 =back 221 197 222 =head1 LICENSE 198 223
Note:
See TracChangeset
for help on using the changeset viewer.