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 ?
 
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?
 
BTW, there is a setting to show all mail in all folders in plain text - its just not possible for one folder.
 
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.
 
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
 
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.
Similar threads
Thread starter Title Forum Replies Date
Kika Melo Outlook Calendar deleted appointments not in Deleted Items folder Using Outlook 3
K Changing the Deleted Items location in Outlook 2019 Using Outlook 2
F Wishlist Outlook suddenly began synchronizing deleted items every time I delete a single email. Using Outlook 2
G Retention Policy for Outlook.com Deleted Items folder Using Outlook 0
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
R Outlook 2010 Changed "Recover Deleted Items" Behavior Using Outlook 11
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
e_a_g_l_e_p_i Can emails from Gmail be deleted when they are downloaded to Outlook 2010 Using Outlook 1
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
H Accidentally Deleted exchange server email account in Outlook 2007 Exchange Server Administration 12
T Outlook 2003 - Deleted contact folders still appear in address book Outlook VBA and Custom Forms 2
Y messages deleted in Outlook 2007 not uploading changes to hotmail Using Outlook.com accounts in Outlook 1
C After Outlook Connector sync, deleted messages remain in Hotma Using Outlook.com accounts in Outlook 3
e_a_g_l_e_p_i Question about Outlook 2021 and Gmail Using Outlook 3
J Outlook VBA to send from Non-default Account & Data Files Outlook VBA and Custom Forms 2
P Limited Support for 3rd Party Mail in new Outlook? Using Outlook 1
O Any 3rd party tool that sync (mirror) from Outlook Calendar to Google Calendar? Using Outlook 5
T Outlook is categorizing emails incorrectly Using Outlook 1
R Legacy Outlook on Mac Email Cache Using Outlook 0
A Outlook can't remember outlook.com, Exchange password. Using Outlook 3
S Related messages show in main Outlook window vice new Advanced Find windows Using Outlook 1
H Force Outlook 2019 with GMail 2-Step to Require Login? Using Outlook 0
G Retaining Tabs in outlook body Using Outlook 2
V Setting up Outlook 2021 on new computer Using Outlook 2
G Add Map It button to Custom Contacts Form in Outlook Outlook VBA and Custom Forms 1

Similar threads

Back
Top