Hello,

I've noticed a bug in the configure script when using ``--archive no'',
the generated $archiveit variable gets ``no'' in it instead of ``0''. 

>From configure script:

--archive) ARCHIVEIT="1" ; if [ "$2" != "" -a "`echo $2|grep '\-'`" = ""
] ; then  shift ; if [ "`echo $1|egrep -i '^0|^no'`" != "" ]; then
ARCHIVEIT="0" ; fi ; if [ "`echo $1|egrep -i '^1|^yes'`" != "" ]; then
ARCHIVEIT="1" ; else ARCHIVEIT="$1" ; fi ;  fi ;;


Indented:

--archive)
ARCHIVEIT="1" ;
if [ "$2" != "" -a "`echo $2|grep '\-'`" = "" ] ; then
  shift ;
  if [ "`echo $1|egrep -i '^0|^no'`" != "" ]; then
    ARCHIVEIT="0" ;
  fi ;
  <-- missing ``else'' here -->
  if [ "`echo $1|egrep -i '^1|^yes'`" != "" ]; then
    ARCHIVEIT="1" ;
  else
    ARCHIVEIT="$1" ; <-- without that ``else'' we get ``no'' here -->
  fi ;
fi ;;


The end result is archiving all email that have a MAILFROM or RCPTO with
``no'' in their name.



Regards,
Rui Lopes

PS: I'm aware that archiving is turned off by default.



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to