summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Echolot/Mailin.pm4
-rw-r--r--NEWS3
2 files changed, 5 insertions, 2 deletions
diff --git a/Echolot/Mailin.pm b/Echolot/Mailin.pm
index 6bcf7a1..27785f7 100644
--- a/Echolot/Mailin.pm
+++ b/Echolot/Mailin.pm
@@ -1,7 +1,7 @@
package Echolot::Mailin;
# (c) 2002 Peter Palfrader <peter@palfrader.org>
-# $Id: Mailin.pm,v 1.10 2003/01/14 05:25:35 weasel Exp $
+# $Id: Mailin.pm,v 1.11 2003/02/03 20:10:05 weasel Exp $
#
=pod
@@ -150,7 +150,7 @@ sub read_maildir($) {
for my $sub (qw{new cur}) {
opendir(DIR, $dir.'/'.$sub) or
Echolot::Log::warn("Cannot open direcotry '$dir/$sub': $!."),
- return 0;
+ return undef;
push @files, map { $sub.'/'.$_ } grep { ! /^\./ } readdir(DIR);
closedir(DIR) or
Echolot::Log::warn("Cannot close direcotry '$dir/$sub': $!.");
diff --git a/NEWS b/NEWS
index 68269c0..0ac6761 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+Changes in version
+ * Return undef rather than 0 if we cannot open a Maildir.
+
Changes in version 2.0.9 - 2003-01-14
* Logging is finally cleaned up. There are two new config options:
logfile and loglevel.