Search Email Header for Content Type

Status
Not open for further replies.

HansDampf

New Member
Outlook version
Outlook 2016 64 bit
Email Account
Office 365 Exchange
Hello All,

m facing a huge challenge with RTF Emails and need to find a way to find alle RTF mails inside a mailbox.
As a little background: We are using a transparent encryption with Exchange Online. Anything leaving our Office will be encrypted. Microsoft therefore cant read any of our emails so features like Compliance Portal Content Search or using Search-Mailbox Powershell command wont work as those encrypted Emails will just be skipped. The challenge we are facing is that our Encryption Gateway will get unstable when it has to deal with masses of RTF Emails... since we migrated from Lotus Notes to Exchange Online there are plenty...

However my Outlook will use a forward proxy and will be routed through the encryption gateway and can read emails.
So my thought was to use a vba script and have it search the email header for strings like "application/rtf" or "application/ms-tnef" and have those emails move to a certain folder.

So next challenge, while Im quite good with Powershell I literally have no clue how this can be done in vba.
Can anyone help me on that?

Cheers
Jörg
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
I have a VBA sample that can read the header - this code can look for a specific value in the header.


While this sample runs on the selected message, I have code samples to "do something" to all messages in a folder - you can combine the two to scan the messages.
 
Status
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
B Search and Find Email by Folder Name Outlook VBA and Custom Forms 2
J How do you disable address search box when typing @ in body of email? Using Outlook 0
D Create advanced search (email) via VBA with LONG QUERY (>1024 char) Outlook VBA and Custom Forms 2
T How can you include Junk Email in Search Results like you can include Deleted Items? Using Outlook 3
A Outlook 2019 having issues with 'people search' and not making suggestions in email To: etc Using Outlook 12
W Create Search Folder excluding Specific Email Addresses Using Outlook 5
M possible to search Outlook for multiple email addresses at once? Using Outlook 1
M email search not working Using Outlook 1
skyfox VBA to search email subject field for a certain string Outlook VBA and Custom Forms 3
I Locating an email after search - Field Chooser Using Outlook 2
Les Email address search Using Outlook 1
J Search shows an email is in my Inbox but I can't see it there. Using Outlook 0
S O2010: Search for email using folderpath Using Outlook 2
O Inbox Search Results won't update when deleting or moving an email Using Outlook 12
I Search email with information in detailed headers Using Outlook 3
T How do I search email attachments Outlook VBA and Custom Forms 2
P Outlook 2013 search no longer works Using Outlook 2
C How to search for items in Outbox with multiple accounts? Using Outlook 12
J search doesn't find anything Using Outlook 1
kkqq1122 How would I add Search for attachment name Outlook VBA and Custom Forms 3
A Any way to force sort by/group by on search results with VBA? Outlook VBA and Custom Forms 1
C Search not accurate, but not indexing Using Outlook 9
H Outlook 2019 intermittent search results Using Outlook 0
D Advanced e-Mail search on from/to contact group only searches for first 20 contacts in group Using Outlook 0
mll persistently customise columns in outlook advanced search Using Outlook 3
S vba outlook search string with special characters Outlook VBA and Custom Forms 1
S VBA search string with special characters Outlook VBA and Custom Forms 1
P Posts in Folder No Longer Group by Conversation Column After Search Using Outlook 0
O Advanced search - can I use booleans Using Outlook 3
Y Filter unread emails in a search folder vba help Outlook VBA and Custom Forms 0
M Reverting The Outlook Search Box Location (or other undesired additions) Using Outlook 1
M Something went wrong and your search couldn't be completed Using Outlook 1
M Disable Contact Card Results when using "Search People" in Outlook Ribbon Using Outlook 7
J outlook 2007 doesn't let me choose which .pst to search Using Outlook 2
P outlook 2008 search box criteria couldn't be saved Using Outlook 2
C Outlook with Office365 - search across account, by date rate, in multiple folders - how? Using Outlook 2
D Custom Search Folders not refreshing/updating automatically Using Outlook 0
L New Location for the Search Bar Using Outlook 6
J Outlook 2016 After a search in all mailboxes, where is each message that was found? Using Outlook 6
King Mustard Sort search groups by amount of items? Using Outlook 1
V Outlook 2016 will not move emails in search results Using Outlook 4
T Search for incoming e-mails for a specified time range Using Outlook 1
S outlook 2007 calendar search Using Outlook 6
M Outlook macro to automate search and forward process Outlook VBA and Custom Forms 6
J Message search and edit, another way? Outlook VBA and Custom Forms 4
S Create A Search Folder That Looks For Message Class? Outlook VBA and Custom Forms 0
R Outlook for Mac - Advanced Search and Tracking Sent Emails Using Outlook 0
R Search/Jump to a folder by typing its name Outlook VBA and Custom Forms 1
M Sent mail not showing in Sent Items folder; but they can be found with Search Using Outlook 3
W Search Incomplete Outlook 2016 Using Outlook 5

Similar threads

Top