Changeset 1445 in ProjectBuilder for projects/md2mb
- Timestamp:
- Apr 4, 2012, 5:14:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/md2mb/devel/md2mb/bin/md2mb.pl
r1412 r1445 1 1 #!/usr/bin/perl -w 2 # 3 # Program to import a maildir kmail environement into a thunderbird one. 4 # 5 # Released under the GPLv2 or the Artistic license at your will. 2 3 =head1 NAME 4 5 md2mb.pl - Import a maildir kmail environment into a thunderbird one 6 7 =cut 6 8 7 9 use strict; … … 11 13 use File::Path; 12 14 use File::Glob ':glob'; 15 use Getopt::Long; 16 use Pod::Usage; 13 17 18 # settings 14 19 my $cmd="formail"; 15 20 # CHANGE AS YOU WISH … … 20 25 my $debug = 0; 21 26 # END CHANGE 27 my $help = 0; 28 my $man = 0; 22 29 23 $debug++ if ((defined $ARGV[0]) && ($ARGV[0] eq "-v")); 30 # parse command-line options 31 GetOptions( 32 'help|h' => \$help, 33 'man|m' => \$man, 34 'verbose|v' => sub { $debug++ }, 35 ) or pod2usage(2); 36 pod2usage(1) if ($help); 37 pod2usage(-exitstatus => 0, -verbose => 2) if ($man); 38 24 39 print "DEBUG MODE, not doing anything, just printing\n" if ($debug); 25 40 if ($debug) { … … 112 127 } 113 128 } 129 __END__ 130 131 =head1 SYNOPSIS 132 133 md2mb.pl [options] 134 135 Options: 136 -help brief help message 137 -man full documentation 138 139 =head1 OPTIONS 140 141 =over 4 142 143 =item B<-help> 144 145 Print a brief help message and exits. 146 147 =item B<-man> 148 149 Prints the manual page and exits. 150 151 =back 152 153 =head1 DESCRIPTION 154 155 B<md2mb.pl> will import a B<kmail> maildir environment, and transform it into a 156 B<thunderbird> one. 157 158 =head1 AUTHOR 159 160 Bruno Cornec, http://brunocornec.wordpress.com 161 162 =head1 LICENSE 163 164 Released under the GPLv2 or the Artistic license at your will. 165 166 =cut
Note:
See TracChangeset
for help on using the changeset viewer.