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:
<%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
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