~ubuntu-branches/ubuntu/saucy/mime-support/saucy-proposed

« back to all changes in this revision

Viewing changes to run-mailcap

  • Committer: Package Import Robot
  • Author(s): Logan Rosen
  • Date: 2012-07-10 03:07:10 UTC
  • mfrom: (5.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20120710030710-jij68uj1mitw2p9k
Tags: 3.52-1ubuntu1
* Merge from Debian unstable. Remaining changes:
  - Add "cautious-launcher" for handling execution of files that are
    outside /usr and /opt (LP: #506702).
  - Fix typo in cautious-launcher dialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
361
361
$ENV{RUN_MAILCAP_DEBUG} = 1 if $debug;
362
362
 
363
363
unless ($action) {
364
 
       if ($0 =~ m!(^|/)view$!)     { $action="view";   }
365
 
    elsif ($0 =~ m!(^|/)see$!)      { $action="view";   }
366
 
    elsif ($0 =~ m!(^|/)cat$!)      { $action="cat";    }
367
 
    elsif ($0 =~ m!(^|/)edit$!)     { $action="edit";   }
368
 
    elsif ($0 =~ m!(^|/)change$!)   { $action="edit";   }
369
 
    elsif ($0 =~ m!(^|/)compose$!)  { $action="compose";}
370
 
    elsif ($0 =~ m!(^|/)print$!)    { $action="print";  }
371
 
    elsif ($0 =~ m!(^|/)create$!)   { $action="compose";}
372
 
    else                            { $action="view";   }
 
364
       if ($0 =~ m!(^|/)(mime-)?view$!)     { $action="view";   }
 
365
    elsif ($0 =~ m!(^|/)(mime-)?see$!)      { $action="view";   }
 
366
    elsif ($0 =~ m!(^|/)(mime-)?cat$!)      { $action="cat";    }
 
367
    elsif ($0 =~ m!(^|/)(mime-)?edit$!)     { $action="edit";   }
 
368
    elsif ($0 =~ m!(^|/)(mime-)?change$!)   { $action="edit";   }
 
369
    elsif ($0 =~ m!(^|/)(mime-)?compose$!)  { $action="compose";}
 
370
    elsif ($0 =~ m!(^|/)(mime-)?print$!)    { $action="print";  }
 
371
    elsif ($0 =~ m!(^|/)(mime-)?create$!)   { $action="compose";}
 
372
    else                                    { $action="view";   }
373
373
}
374
374
 
375
375