diff options
| author | David Leadbeater | 2014-10-20 22:46:12 +0100 |
|---|---|---|
| committer | David Leadbeater | 2014-10-20 22:46:12 +0100 |
| commit | 5d2811af5d3d29b524936ac95e7b1b3d5144a9ce (patch) | |
| tree | 0f0b84efd10e9288695d86b69de324c467fe4e7b /scripts/mail.pl | |
| parent | 263a56d196da657b72ccf2b195b50008d6a988dc (diff) | |
| parent | dd80027b51b3ee71027a2612595aee38e38c0d6e (diff) | |
| download | scripts.irssi.org-5d2811af5d3d29b524936ac95e7b1b3d5144a9ce.tar.bz2 | |
Merge pull request #81 from obfuscoder/perlcritic-m-r
Fix perlcritic issues for all scripts starting with m to r
Diffstat (limited to 'scripts/mail.pl')
| -rw-r--r-- | scripts/mail.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/mail.pl b/scripts/mail.pl index 33b3c22..190c33a 100644 --- a/scripts/mail.pl +++ b/scripts/mail.pl @@ -1,3 +1,5 @@ +use strict; +use vars qw($VERSION %IRSSI); $VERSION = "2.92"; %IRSSI = ( authors => "Timo Sirainen, Matti Hiljanen, Joost Vunderink, Bart Matthaei", @@ -114,7 +116,7 @@ sub mbox_count { $last_mtime = $mtime; my $f = gensym; - return 0 if (!open($f, $mailfile)); + return 0 if (!open($f, "<", $mailfile)); # count new mails only my $internal_removed = 0; |
