- Timestamp:
- Apr 4, 2012, 5:14:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/md2mb/devel/md2mb/bin/md2mb.pl
r1446 r1447 15 15 use Getopt::Long; 16 16 use Pod::Usage; 17 use List::Util qw(first); 17 18 18 19 # settings 19 my $cmd="formail"; 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 28 # CHANGE AS YOU WISH 21 29 my $oldroot = "/users/segolene/.Mail"; … … 56 64 mkpath("$newroot",0, 0755) if ((not -d "$newroot") && (not $nrisfile)); 57 65 } 58 system("$cmd </dev/null >/dev/null 2>/dev/null") == 0 or die "cannot find formail on your \$PATH!\nTry installing procmail\nAborting";59 66 60 67 # the main work is done here … … 181 188 182 189 B<md2mb.pl> will import a B<kmail> maildir environment, and transform it into a 183 B<thunderbird> one. 190 B<thunderbird> one. It relies on either B<formail> or B<procmail> being 191 available in your search path, and will preferentially use B<formail>. 184 192 185 193 =head1 AUTHOR
Note:
See TracChangeset
for help on using the changeset viewer.