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