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?
 
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
Z Hotmail account deleted from outlook and issue with account not exist Using Outlook 0
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
kburrows Outlook Classic - JPG files are corrupted when opened or saved Using Outlook 3
F Sync Outlook Calendar Using Outlook 0
G Change default font size in sticky notes - Outlook Desktop 2021 Using Outlook 2
C VBA in "New Outlook?" Using Outlook 0
D New Outlook with Business Basic Plans Using Outlook 0
D Outlook 2021 not working with Outlook 2003 installed Using Outlook 5
D Outlook 2003 stopped working - get they dialog box asking for username & Password Using Outlook 2
T Outlook 2021 hangs in close on taskbar occasionally Using Outlook 1
M Duplicate removal feature in Outlook 2021 is faulty Using Outlook 2
D.Moore Outlook COM addins source folder Using Outlook 11
P Removing Outlook 365 Account from Send/Receive Using Outlook 3

Similar threads

Back
Top