[imp] Muiltiple copies of same message sent by IMP

Fredrik Haglund imp.lists.horde.org at stockholmpride.org
Sat Apr 29 07:08:47 PDT 2006


Problem solved. :-)

Tokens must be enabled in Horde framework to prevent duplicate messages.

I changed driver from none to horde in conf.php:
$conf['token']['params']['driverconfig'] = 'horde';
$conf['token']['driver'] = 'sql';

Thanks for the help!
/Fredrik

Quoting Jan Schneider <jan at horde.org>:

> Zitat von Fredrik Haglund <imp.lists.horde.org at stockholmpride.org>:
>
>> I can find multiple post in the access_log and maillog indicating that
>> it the same message is actually posted several times to server from
>> the browser.
>>
>> Is this a correct analysis?
>>
>> Could it be a "feature" of the browser to try to resend to recover
>> from timeouts or network problems? Or is it related to javascript? I
>> doubt that the user manages to click on the send button that many times.
>>
>>
>> Main question is: Can IMP (compose.php?) be improved to prevent the
>> same message from being sent several times?
>>
>> Kind regards,
>> Fredrik Haglund,
>> Sweden
>>
>>
>> access_log:
>> 212.151.252.253 - - [26/Apr/2006:22:05:28 +0200] "POST
>> /horde/imp/compose.php?uniq=18mqhdmzlmps HTTP/1.1" 200 4995
>> "http://webmail.stockholmpride.org/horde/imp/compose.php?
>> actionID=reply&index=1005&identity=0&array_index=85&thismailbox=INBOX&uniq=1146081544436" "Mozilla/4.0 (compatible; MSIE 6.0; Windows     
>> NT
>> 5.1)"
>> 212.151.252.253 - - [26/Apr/2006:22:05:28 +0200] "POST
>> /horde/imp/compose.php?uniq=18mqhdmzlmps HTTP/1.1" 200 73
>> "http://webmail.stockholmpride.org/horde/imp/compose.php?ac
>> tionID=reply&index=1005&identity=0&array_index=85&thismailbox=INBOX&uniq=1146081544436" "Mozilla/4.0 (compatible; MSIE 6.0; Windows     
>> NT
>> 5.1)"
>> (REPEATED 9 TIEMS - during 2 seconds)
>
> As the problem is originating in the multiple POSTs, the browser or
> proxy is to blame. There is not even a small interval between the
> requests, so it's not the browser trying to resend. It wouldn't do
> that for POSTs anyway.
>
> Jan.
>
> -- 
> Do you need professional PHP or Horde consulting?
> http://horde.org/consulting/
>
> -- 
> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org







More information about the imp mailing list