X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Ffolder_read.c;h=2e67917257f57944b649045848b76a4a33f32a11;hb=70c52ecdc4230a7c3a1051234f786d988997b622;hp=0d0129320158fcf21c808c466bb7c79a0fa8bc74;hpb=1691e80890e5d8ba258c51c214a3e91880e1db2b;p=mmh diff --git a/sbr/folder_read.c b/sbr/folder_read.c index 0d01293..2e67917 100644 --- a/sbr/folder_read.c +++ b/sbr/folder_read.c @@ -3,6 +3,10 @@ * folder_read.c -- initialize folder structure and read folder * * $Id$ + * + * This code is Copyright (c) 2002, by the authors of nmh. See the + * COPYRIGHT file in the root directory of the nmh distribution for + * complete copyright information. */ #include @@ -66,7 +70,7 @@ folder_read (char *name) adios (NULL, "unable to allocate storage"); while ((dp = readdir (dd))) { - if ((msgnum = m_atoi (dp->d_name))) { + if ((msgnum = m_atoi (dp->d_name)) && msgnum > 0) { /* * Check if we need to allocate more * temporary elements for message names.