#!/usr/bin/perl -w =head1 NAME md2mb.pl - Import a maildir kmail environment into a thunderbird one =cut use strict; use File::Find; use File::Copy; use File::Basename; use File::Path; use File::Glob ':glob'; use Getopt::Long; use Pod::Usage; use List::Util qw(first); # settings my $cmd = first { system("$_ /dev/null 2>/dev/null") == 0 } qw(formail procmail); $cmd or die < \$debug, 'help|h' => \$help, 'man|m' => \$man, ) or pod2usage(2); pod2usage(1) if ($help); pod2usage(-exitstatus => 0, -verbose => 2) if ($man); # debug mode overview if ($debug) { print < Enter debug mode. This will print what would be done. No commands are executed, so this is safe to use when testing. =item B<-help> Print a brief help message and exits. =item B<-man> Prints the manual page and exits. =back =head1 DESCRIPTION B will import a B maildir environment, and transform it into a B one. It relies on either B or B being available in your search path, and will preferentially use B. =head1 AUTHOR Bruno Cornec, http://brunocornec.wordpress.com =head1 LICENSE Released under the GPLv2 or the Artistic license at your will. =cut