Changeset 1453


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

rectify a mistake concerning formail/procmail

The program erroneously assumed that either formail or procmail could be
used (this mistake was introduced by EB in an earlier commit).
Rectifying the situation: we use formail, but suggest to install the
package procmail on those systems where the formail utility is contained
in the procmail package.

File:
1 edited

Legend:

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

    r1451 r1453  
    1818 
    1919# 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 
     20my $cmd = 'formail'; 
    2821my $debug = 0; 
    2922my $file = 0; # is the newroot a file (1) or a dir (0) ? 
     
    4134# parse command-line options 
    4235GetOptions( 
     36    'cmd|c'           => \$cmd, 
    4337    'debug|d'         => \$debug, 
    4438    'file|f'          => \$file, 
     
    7266 
    7367# some sanity checks before proceeding 
     68system("$cmd </dev/null >/dev/null 2>/dev/null") == 0 or die <<EOF; 
     69Cannot run `$cmd' or locate it in your \$PATH! 
     70 
     71I need the program `formail' to process your mailboxes. You can provide the 
     72full path to the formail utility using the `-cmd' command-line switch. 
     73 
     74Perhaps `formail' is not installed on your system. Try installing the `formail' 
     75package using your distribution's package manager. The formail utility might be 
     76contained in the `procmail' package (e.g., Ubuntu 11.10), so you may need to 
     77look for the latter instead. 
     78 
     79Aborting ... 
     80EOF 
    7481-d $oldroot or die "cannot find mailbox root `$oldroot'"; 
    7582-d $profile or die "cannot find Thunderbird profile directory `$profile'"; 
     
    196203 
    197204 Options: 
     205   -cmd     | -c                command to process mail 
    198206   -debug   | -d        debug mode 
    199207   -file    | -f                whether $newroot is a file or a directory 
     
    210218=over 4 
    211219 
     220=item B<-cmd> 
     221 
     222Specify the command to process your maildirs. By default uses B<formail> in 
     223your C<$PATH>, but you can use this option to specify the full path to the 
     224executable to use instead. 
     225 
    212226=item B<-debug> 
    213227 
     
    274288 
    275289B<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> being 
    277 available in your search path, and will preferentially use B<formail>. 
     290B<thunderbird> one. It relies on B<formail> (or an equivalent utility) being 
     291available on your system. 
    278292 
    279293By default, B<md2mb.pl> assumes that your B<kmail> mailboxes are stored in a 
Note: See TracChangeset for help on using the changeset viewer.