Vault now ignoring plain text attachments.

This commit is contained in:
Karl Cordes 2010-04-27 16:04:38 +10:00
parent 9c061d50d0
commit 06d9afaa62

View file

@ -108,7 +108,8 @@ class VaultShell extends Shell {
if( ($attachment['type'] != 'text/html') && ($attachment['type'] != 'multipart/mixed') && if( ($attachment['type'] != 'text/html') && ($attachment['type'] != 'multipart/mixed') &&
($attachment['type'] != 'multipart/alternative') && ($attachment['type'] != 'multipart/alternative') &&
($attachment['type'] != 'multipart/report') ($attachment['type'] != 'multipart/report') &&
($attachment['type'] != 'text/plain')
) { ) {
$this->EmailAttachment->create(); $this->EmailAttachment->create();
@ -154,7 +155,7 @@ class VaultShell extends Shell {
if($testing == 0 ) { if($testing == 0 ) {
imap_mail_move($mbox, $i, 'INBOX/Discard'); imap_mail_move($mbox, $i, 'INBOX/Discarded');
} }
} }