Outlook - deleted items

Status
Not open for further replies.

norbertlars

Member
Outlook version
Outlook 2016 64 bit
Email Account
POP3
there is a big issue there which goes all the way back to at least 2007 that is pretty annoying for me and maybe dangerous for less tech people

so, let`s say we receive 10 messages + 5 spam messages ( that go to spam folder automatically ) for me on Hotmail I set that ALL messages from people NOT in my contact list to go to the spam folder (- nice option there since at least 2005 I think), so ... now we delete 5 messages from inbox that were display in full html and we also delete those 5 spam messages which ... if I go to spam folder and click I get only in text mode and all active stuff are disabled to protect me

now the problem appears, ANY message that goes to DELETED folder is displayed with FULL stuff and you can get some nasty viruses just by opening the email ( in JUNK you are protected )

If I don't pay attention i click on deleted items when i see a bigger number to see what`s there ...instead of just right click - empty folder

how do i disable html stuff in that folder ? are those in charge at Microsoft lazy ? to protect this folder also ?
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
You can't disable HTML in folders - it's built into the junk folder. Outlook can't trigger active content aka scripts etc - HTML is safe in outlook.

The only potential issue is RTF messages - unpatched machines could be infected by a virus in winmail.dat files (only used by RTF messages). While you can't disable RTF, you could use a macro to convert all RTF messages to plain text to avoid the problem. (No one outside of organizations should use rtf anyway.) Convert RTF Messages to Plain Text Format

Rather than move junk to the deleted folder, why not shift+delete it so it's gone for good?
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
BTW, there is a setting to show all mail in all folders in plain text - its just not possible for one folder.
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
One more thing - you could tweak the itemadd macro at the link i posted and convert all deleted messages to plain text -
change Set Items = Ns.GetDefaultFolder(olFolderInbox).Items to Set Items = Ns.GetDefaultFolder(olFolderDeletedItems).Items so it watches the folder. Remove the If statement so it applies to all messages.
 

norbertlars

Member
Outlook version
Outlook 2016 64 bit
Email Account
POP3
ty for reply, i find pretty annoying ( better say hard.. ) to use macros as my brain is unable to understand some of this algorithms :) ( i can follow most of them but is so annoying when i miss something)

but i will give it a try next week
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Read it slowly and skip the lines that are gobbledygook - reading down, the first "understandable" line is
Set Items = Ns.GetDefaultFolder(olFolderInbox).Items
this sets Items variable to be items in the default Inbox. To watch another folder, change this line.
Set Items = Ns.GetDefaultFolder(olFolderDeletedItems).Items
(Bottom of this page has list of default folders Working with VBA and non-default Outlook Folders)

Then it says to quit if messages (read receipt, NDR, meeting request) is not a normal email message (<> is less than or greater than )
If Item.MessageClass <> "IPM.Note" Then
Exit Sub

This says if the format is rich text (RTF) turn it to plain text. If you prefer html, replace olformatplain with olformathtml. Add the category so you know it was changed by the macro and save to commit change.
If Item.BodyFormat = olFormatRichText Then
Item.BodyFormat = olFormatPlain ' or olFormatHTML
Item.Categories = "Was RTF"
Item.Save

How to use macros is here - How to use Outlook's VBA Editor

Code:
Option Explicit
Private WithEvents Items As Outlook.Items
 
Private Sub Application_Startup()
  Dim Ns As Outlook.NameSpace
  Set Ns = Application.GetNamespace("MAPI")
  Set Items = Ns.GetDefaultFolder(olFolderInbox).Items
End Sub
 
Private Sub Items_ItemAdd(ByVal Item As Object)
If Item.MessageClass <> "IPM.Note" Then
  Exit Sub
End If
  If Item.BodyFormat = olFormatRichText Then
    Item.BodyFormat = olFormatPlain ' or olFormatHTML
    Item.Categories = "Was RTF"
    Item.Save
  Else
End If
End Sub
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
M How many days are items in Recover Deleted at Outlook.com ? Using Outlook.com accounts in Outlook 4
C Outlook is permanently deleting deleted items (purging) Using Outlook 0
N Control ID for Outlook 2013 “Recover Deleted Items From Server” Using Outlook 0
T Outlook 2013: How did "Inbox" emails jump straight to the "Recover Deleted Items" Folder? Using Outlook 2
D Outlook 2013 deletes emails, does not send them to Deleted Items or Trash Using Outlook 2
C Outlook 2007 - Recover Deleted Items - Columns to Choose from Using Outlook 1
C Outlook/Exchange 2010 Recover Deleted Items to original folder Using Outlook 2
S Outlook 2010 Not Closing if option 'Emty deleted items folders when exiting outlook' is enabled Using Outlook 2
M How do I recover all items in a deleted Outlook 2007 calendar not using Exchange Server? Using Outlook 3
O Item won't delete out of Deleted Items in Outlook.... Using Outlook 2
J Any way to turn off message count in Deleted Items folder (Outlook 2010)? Using Outlook 1
T Outlook creates birthday reminders for all my contacts everyday and fills my deleted items folder! Using Outlook 1
G Re: Deleted and Sent items disappear from Outlook Using Outlook 2
M Accepted Outlook Meeting Notices going into deleted items folder and off the calendar Using Outlook 3
M deleted items folder missing in outlook 2007 Using Outlook 3
C My Outlook is trying to send a 'ghost' e-mail...ones that have been deleted from the sent items list or outgoing e-mails list. Using Outlook 2
B Outlook for Mac 2011 filters messages to 'Deleted Items' instead of to IMAP folder. Using Outlook 1
H Deleted items from IMAP account in Outlook 2007 disappear! How do I route them back to "Deleted Item Using Outlook 5
S Outlook Calender Items Repeatedly showing in Deleted Items Using Outlook 2
H Outlook 2010 moves entire inbox contents to deleted items folder Using Outlook 15
C Outlook 2007 - deleted items folder is missing Using Outlook 1
D Outlook 2010 recover deleted items Using Outlook 2
S recover deleted items from outlook 2003, without exchange email. Using Outlook 1
R Outlook 2010 Changed "Recover Deleted Items" Behavior Using Outlook 11
B Error message with Outlook 2010: Deleted items folder is unavailable Using Outlook 19
J Making custom Outlook 2007 folders emptiable like "Deleted Items" Outlook VBA and Custom Forms 1
L Deleted items not displaying in outlook Using Outlook 2
S recover a deleted folder in outlook 2010 Using Outlook 1
B How to recover deleted MS Outlook OST file? Using Outlook 4
D Recover deleted Outlook 2007 e-mail account Using Outlook 1
R Outlook /resetnavpane deleted all IMAP accounts Using Outlook 3
N rule to move sent mail to the deleted folder in outlook Using Outlook 4
S Retrieving Deleted Outlook Contacts Using Outlook 2
C Outlook 2013 deleted messages Using Outlook 1
N iCloud deleted my Outlook 2010 contacts Using Outlook 1
P Outlook 2007, IMAP, and Deleted Emails (not disappearing) Using Outlook 0
J Outlook saves canceled messages in Deleted folder as an unread message Using Outlook 1
E Want Outlook to delete tenative calendar entries when invite is deleted Using Outlook 3
Terry Sullivan Android Phone E-Mails Not Disappearing After Being Deleted in Outlook 2013 Using Outlook 5
P Outlook .pst File Deleted or Relocated Using Outlook 3
J outlook meeting request random people are deleted Using Outlook 2
C Outlook rule moves e-mail to a deleted folder Using Outlook 1
F Deleted calendar file - Outlook still searches for it Using Outlook 4
C Deleted email message using Outlook 2010 Using Outlook 2
B Permissions - Outlook Public Folders Are Being Deleted Using Outlook 1
A Outlook 2003 deleted folders are autoarchiving Using Outlook 1
P "Reply to" Address Deleted in Outlook 2007 Using Outlook 1
T deleted my calendar from "My Calendars" in Outlook 2003 Using Outlook 2
P How to UNDO a deleted category from Outlook 2007 Using Outlook 11
M Outlook 2003 - accidentally deleted a distribution list, need to undelete Using Outlook 4
Similar threads


















































Top