fixup! UPD: Use new template features in mailmanagement
fixup! FIX: Additional check before maildeletion