diff options
| author | Obfuscoder | 2014-10-19 11:54:16 +0200 | 
|---|---|---|
| committer | Obfuscoder | 2014-10-19 11:54:16 +0200 | 
| commit | dd80027b51b3ee71027a2612595aee38e38c0d6e (patch) | |
| tree | 0f0b84efd10e9288695d86b69de324c467fe4e7b /scripts/mail.pl | |
| parent | 263a56d196da657b72ccf2b195b50008d6a988dc (diff) | |
| download | scripts.irssi.org-dd80027b51b3ee71027a2612595aee38e38c0d6e.tar.bz2 | |
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; | 
