mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Add logic to store iCalendars
This commit is contained in:
@@ -89,6 +89,16 @@ foreach $s (@sub) {
|
||||
@attach = grep { $_ ne $body && $_ ne $dstatus } @attach;
|
||||
@attach = grep { !$_->{'attach'} } @attach;
|
||||
|
||||
# Calendar attachments
|
||||
my @calendars;
|
||||
eval {
|
||||
foreach my $i (grep { $_->{'data'} }
|
||||
grep { $_->{'type'} =~ /^text\/calendar/ } @attach) {
|
||||
my $calendars = &parse_calendar_file($i->{'data'});
|
||||
push(@calendars, @{$calendars});
|
||||
}};
|
||||
|
||||
# Mail buttons
|
||||
if ($config{'top_buttons'} == 2 && &editable_mail($mail)) {
|
||||
&show_mail_buttons(1, scalar(@sub));
|
||||
print "<p class='mail_buttons_divide'></p>\n";
|
||||
|
||||
Reference in New Issue
Block a user