Hi,
I found something strange in qmail-ldap-1.03-20020801 package, maybe it's a bug.
Follow details:
In file "maildir++.c" , about line 111(in function "quota_calc"), the line reads:
if ( ! stralloc_cats(&path, "/..") ) temp_nomem();
When I call "quota_calc" with the "dir" parament setting to a sub folder(I want to
redirect some of my mail to the folder), say "./Maildir/.abc/",then when you call
function: "quota_calcsize", "path.s" then becomes "./Maildir/.abc//..", that's ok,but
in line 348:
if ( ! stralloc_cats(&path, dp->d_name) ) temp_nomem();
dp->d_name is the subdirs in "./Maildir/.abc//..", for example, ".Sent", then path.s
becomes "./Maildir/.abc//...Sent", It's not a legal directory name, the next line:
calc_curnew(q, &maxtime);
will have no effect(could not calcluate the size).
If you change "/.." to "../", thing is ok.
Am I wrong? If it is, sorry to bother you.
Jerry Li Bo
2002.08.16