remove_attachment.html from AlphaMail at Krugle
Show remove_attachment.html syntax highlighted
% # vim: set syntax=mason:
<%args>
$attachment => 0
</%args>
<%init>
my $user = Apache::SiteControl->getCurrentUser($r);
my $composition = new AlphaMail::Message($user, $config);
$composition->load();
$composition->removeAttachment($attachment);
$composition->save();
$m->redirect('/mail/compose.html');
</%init>
<%once>
use AlphaMail::Message;
</%once>
See more files for this project here