- Timestamp:
- Apr 6, 2012, 11:08:09 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/md2mb/devel/md2mb/bin/md2mb.pl
r1451 r1453 18 18 19 19 # settings 20 my $cmd = first { 21 system("$_ </dev/null >/dev/null 2>/dev/null") == 0 22 } qw(formail procmail); 23 $cmd or die <<EOF; 24 cannot find a usable program to manipulate your mailboxes in your \$PATH! 25 Try installing `formail' or `procmail' 26 Aborting 27 EOF 20 my $cmd = 'formail'; 28 21 my $debug = 0; 29 22 my $file = 0; # is the newroot a file (1) or a dir (0) ? … … 41 34 # parse command-line options 42 35 GetOptions( 36 'cmd|c' => \$cmd, 43 37 'debug|d' => \$debug, 44 38 'file|f' => \$file, … … 72 66 73 67 # some sanity checks before proceeding 68 system("$cmd </dev/null >/dev/null 2>/dev/null") == 0 or die <<EOF; 69 Cannot run `$cmd' or locate it in your \$PATH! 70 71 I need the program `formail' to process your mailboxes. You can provide the 72 full path to the formail utility using the `-cmd' command-line switch. 73 74 Perhaps `formail' is not installed on your system. Try installing the `formail' 75 package using your distribution's package manager. The formail utility might be 76 contained in the `procmail' package (e.g., Ubuntu 11.10), so you may need to 77 look for the latter instead. 78 79 Aborting ... 80 EOF 74 81 -d $oldroot or die "cannot find mailbox root `$oldroot'"; 75 82 -d $profile or die "cannot find Thunderbird profile directory `$profile'"; … … 196 203 197 204 Options: 205 -cmd | -c command to process mail 198 206 -debug | -d debug mode 199 207 -file | -f whether $newroot is a file or a directory … … 210 218 =over 4 211 219 220 =item B<-cmd> 221 222 Specify the command to process your maildirs. By default uses B<formail> in 223 your C<$PATH>, but you can use this option to specify the full path to the 224 executable to use instead. 225 212 226 =item B<-debug> 213 227 … … 274 288 275 289 B<md2mb.pl> will import a B<kmail> maildir environment, and transform it into a 276 B<thunderbird> one. It relies on either B<formail> or B<procmail>being277 available in your search path, and will preferentially use B<formail>.290 B<thunderbird> one. It relies on B<formail> (or an equivalent utility) being 291 available on your system. 278 292 279 293 By default, B<md2mb.pl> assumes that your B<kmail> mailboxes are stored in a
Note:
See TracChangeset
for help on using the changeset viewer.