Re: bug in qmail-autoresponder version 0.92 ?

2000-07-30 Thread Olivier M.

'morning!

On Sat, Jul 29, 2000 at 10:47:05PM -0600, Bruce Guenter wrote:
 On Sat, Jul 29, 2000 at 02:35:56PM +0200, Olivier M. wrote:
  Currently trying qmail-autoresponder (http://em.ca/~bruceg/qmail-autoresponder/) : 
 Great!

  PS: the thing with "-s" is ok, but I like the "original" vacation
  feature with $SUBJECT in _BODY_ much better : do you plan to add
  it to qmail-autorespond ?
 Reluctantly, yes.  Would something like "%S" work for you?  That would
 greatly simplify the parsing logic.

Then '%SUBJECT' ? (it should be understable by "normal users", via webinterface).
Otherwise would '%S' also be ok, I can also do some parsing/search+replace
in php if necessary.

  PPS: if there is a From: or a Reply-To: field, should the autoresponder
  respond to this address ? 
 I think not.  Responding to the envelope sender is pretty much the only
 safe thing to do, and it neatly avoids all the trouble one would get
 into to properly parse an address field.

Right, these fields are not se easy to parse... Ok, I think it's already
pretty nice this way! 

Now just have to find if and how it works with the
current php-vmailmgr-interface. I still need the perl suidwrapper
to be able to write the autoresponder file, but there is probably
another way to do it... Will then release a new omail-admin
version ( http://omail.omnis.ch/ ).

Regards,
Olivier


-- 
_
 Olivier Mueller - [EMAIL PROTECTED] - PGPkeyID: 0E84D2EA - Switzerland


 PGP signature


Re: bug in qmail-autoresponder version 0.92 ?

2000-07-30 Thread Bruce Guenter

On Sun, Jul 30, 2000 at 11:16:35AM +0200, Olivier M. wrote:
   PS: the thing with "-s" is ok, but I like the "original" vacation
   feature with $SUBJECT in _BODY_ much better : do you plan to add
   it to qmail-autorespond ?
  Reluctantly, yes.  Would something like "%S" work for you?  That would
  greatly simplify the parsing logic.
 Then '%SUBJECT' ?

Yes.  With two characters, the scanning logic for if the tag crosses a
page is fairly simple.  With 8, it's nasty.  I don't care if it's "%S",
"$S", "**", or whatever.  One character is trivial.  Two is simple.
Larger than two gets nasty.
-- 
Bruce Guenter [EMAIL PROTECTED]   http://em.ca/~bruceg/

 PGP signature


bug in qmail-autoresponder version 0.92 ?

2000-07-29 Thread Olivier M.

Currently trying qmail-autoresponder (http://em.ca/~bruceg/qmail-autoresponder/) : 

Docs says:
- Limits rate of automatic responses (defaults to a maximum of one
  message every hour).

well, I always get _two_ messages, before the
Ignoring_message://usr/local/bin/qmail-autoresponder:_SENDER_has_sent_too_many_messages/did_0+0+2/
appears in logs...

(with:
|/usr/local/bin/qmail-autoresponder -n 1 -t 43200 
|/home/paradises.ch/autorespond/msg/oli2 /home/paradises.ch/autorespond/log/oli2
|/usr/local/bin/qmail-autoresponder -t 43200 /home/paradises.ch/autorespond/msg/oli2 
|/home/paradises.ch/autorespond/log/oli2
)


Just looked in the source:

/* If the user's count is already over the max,
 * don't record any more. */
if(++count  max)
  return 0;

shouldn't it be :

/* If the user's count is already over the max,
 * don't record any more. */
if(++count = max)
  return 0;

? (it works this way on my system... :)


Regards,
Olivier


PS: the thing with "-s" is ok, but I like the "original" vacation
feature with $SUBJECT in _BODY_ much better : do you plan to add
it to qmail-autorespond ? Some sample source with this feature
is available under :
http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/vacation/?cvsroot=vacation

PPS: if there is a From: or a Reply-To: field, should the autoresponder
respond to this address ? 

-- 
_
 Olivier Mueller - [EMAIL PROTECTED] - PGPkeyID: 0E84D2EA - Switzerland


 PGP signature


Re: bug in qmail-autoresponder version 0.92 ?

2000-07-29 Thread Bruce Guenter

On Sat, Jul 29, 2000 at 02:35:56PM +0200, Olivier M. wrote:
 Currently trying qmail-autoresponder (http://em.ca/~bruceg/qmail-autoresponder/) : 

Great!

 Docs says:
 - Limits rate of automatic responses (defaults to a maximum of one
   message every hour).
 
 well, I always get _two_ messages,
 
 shouldn't it be :
 
 /* If the user's count is already over the max,
  * don't record any more. */
 if(++count = max)
   return 0;

You are right.  The logic worked before the rewrite for 0.92, and I
guess I missed that one.  The tests also failed to catch this.  I'll
make sure they work this time.

 PS: the thing with "-s" is ok, but I like the "original" vacation
 feature with $SUBJECT in _BODY_ much better : do you plan to add
 it to qmail-autorespond ?

Reluctantly, yes.  Would something like "%S" work for you?  That would
greatly simplify the parsing logic.

 PPS: if there is a From: or a Reply-To: field, should the autoresponder
 respond to this address ? 

I think not.  Responding to the envelope sender is pretty much the only
safe thing to do, and it neatly avoids all the trouble one would get
into to properly parse an address field.
-- 
Bruce Guenter [EMAIL PROTECTED]   http://em.ca/~bruceg/

 PGP signature