Changeset 1457


Ignore:
Timestamp:
04/06/12 11:08:11 (15 months ago)
Author:
ebaudrez
Message:

improve error reporting when oldroot or profile cannot be determined automatically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • projects/md2mb/devel/md2mb/bin/md2mb.pl

    r1456 r1457  
    8080Aborting ... 
    8181EOF 
     82defined $oldroot or pod2usage(<<EOF); 
     83Cannot locate KMail mailboxes automatically. Please specify their location by 
     84rerunning the program with the -oldroot option. 
     85EOF 
    8286-d $oldroot or die "cannot find mailbox root `$oldroot'"; 
     87defined $profile or pod2usage(<<EOF); 
     88Cannot locate the default Thunderbird profile directory automatically. Please 
     89specify its location by rerunning the program with the -profile option. 
     90EOF 
    8391-d $profile or die "cannot find Thunderbird profile directory `$profile'"; 
    8492 
     
    204212 
    205213 Options: 
    206    -cmd     | -c    command to process mail 
    207    -debug   | -d    debug mode 
    208    -file    | -f    whether $newroot is a file or a directory 
    209    -help    | -h    brief help message 
    210    -man     | -m    full documentation 
    211    -oldroot | -o    location of the KMail mailboxes 
    212    -profile | -p    path to the Thunderbird profile to install to 
    213    -subdir  | -s    subdir that will be created to hold the 
    214             imported mails 
    215    -touch   | -t    create empty files corresponding to .sdb dirs 
     214   -cmd     | -c <cmd>      command to process mail 
     215   -debug   | -d        debug mode 
     216   -file    | -f        whether $newroot is a file or a directory 
     217   -help    | -h        brief help message 
     218   -man     | -m        full documentation 
     219   -oldroot | -o <path>     location of the KMail mailboxes 
     220   -profile | -p <path>     path to the Thunderbird profile to install to 
     221   -subdir  | -s <name>     subdir that will be created to hold the 
     222                imported mails 
     223   -touch   | -t        create empty files corresponding to .sdb dirs 
    216224 
    217225=head1 OPTIONS 
     
    219227=over 4 
    220228 
    221 =item B<-cmd> 
    222  
    223 Specify the command to process your maildirs. By default uses B<formail> in 
     229=item B<-cmd> I<cmd> 
     230 
     231Use I<cmd> to process your maildirs. By default uses B<formail> in 
    224232your C<$PATH>, but you can use this option to specify the full path to the 
    225233executable to use instead. 
Note: See TracChangeset for help on using the changeset viewer.