Home : Products : Gossamer Mail : Development, Plugins and Globals :

Products: Gossamer Mail: Development, Plugins and Globals: Re: [sangiro] One-Click Empty Trash for Users: Edit Log

Here is the list of edits for this post
Re: [sangiro] One-Click Empty Trash for Users
Take a look at the html which is generated for the Empty Trash button when you're in the Trash folder. It'll be something like:
Code:
<form action="webmail.cgi" method="post" name="msgs">
<%form_hidden%>
<input type="hidden" name="page" value="msgs_list.htm"><%-- this is the page to return to --%>
<input type="hidden" name="msgtrack_fid" value="<%msgtrack_fid%>">
<input type="submit" name="do=messages-delete_folder;folders_fid=<%GMail::Folders::trash_fid%>" value="Empty Trash">
</form>

On new installations, such an action is restricted to POST only, so you'll have to use a form (or change the state file to allow the action to be a GET request). This is done so that no malicious email could make calls to empty your folders (Gossamer Mail does do XSS filtering, but it's not perfect).

Adrian

Last edited by:

brewt: Jun 20, 2004, 4:48 PM

Edit Log: