[imp] Hrm... as a partial "work-around" for the "double-send" problem

Lord Apollyon implist at paypc.com
Mon Aug 25 15:25:33 PDT 2003


Alot of my users are double and triple-sending emails because of various
upstream-direction performance issues with PacSmell DSHELL, and whatnot.

I've put in a trivial feedback into imp/templates/compose.inc to indicate
the operation is in progress....  if there's a "perfect solution" already in
HEAD, then I guess this is perhaps a waste of effort, but I don't want to
install pre-release code onto my production servers.

My solution is a simple one: for the two "send buttons" in the compose
window I have the onclick JS alter their label to "SENDING..." just prior to
the uniqSubmit() dispatch call.

The "patch" just involves attaching proper name=""'s to each of the two
buttons, and stuffing the following two JS statements into the onclick action:

document.compose.send1.value='SENDING...';
document.compose.send2.value='SENDING...';

Alternatively, one could also hide the buttons with:

document.compose.send1.style..visibility='hidden';
document.compose.send2.style..visibility='hidden';

It seems to work well with both Internet Exploder and Mozilla Fireball, and
my users have stopped sending me two or three copies of their emails.

=R=


More information about the imp mailing list