Hi all, i probably want to do something that isnt going to work well
anyways, but maybe someone has a good idea.
Through the api (message_headers_output) im adding a button next to
the address-add button on the From line. This second button adds the
sender to a centralized whitelist. To be nice, I want to remove the
button immediately after clicking, and thats all working fine. Just a
bit of JS to remove the button.
If a user is already in the whitelist (which i load on login_after), i
dont add the button, and if you click on the button I make sure the
whitelist is reloaded so future emails of this same sender dont get
the button either.
Im running into a little problem. message_headers_output is not always
called. If I read the next email, then go back to the previous email
where I just clicked the button (which was removed), the button re-
appears. This is not due to anything wrong with the plugin code, but
because RC sends Etags and If-Modified headers which my browser
happily uses to show me a cached version of the previous header.
Im assuming this is wanted behavior. The more caching the better I
guess, but in this case its biting me. Is there anyway I can prevent
this from happening? Or should I just give up on trying to show the
right thing?
(the same can be said for the addressbook-add button.. why show it if
you're already in the addressbook).
Any tips appreciated,
Cor _______________________________________________ List info: http://lists.roundcube.net/dev/