Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
[Help] Move emails based on subject
Author Summary
gangstanthony is in help
Post Body

I've got subfolders in Outlook named like so:

Inbox
 ---105-S8J
 ---602-9HX
\---sub
    \---937-WM4

and emails in my inbox with subjects as below:

some 105-S8J text
[issue] 937-WM4 discussion
602-9HX

what I'm wanting to do is create a VBA script that will get all message subjects from inbox emails and get all folders in my mailbox that match this regex: '^[0-9]{3}-\w{3}$'

then compare and put the emails with a matching folder name into that corresponding folder.

But wait, there's more!

I don't want to move unread emails. I also do not want to move the most recent read email for each code.

Example: if I have 3 emails

1. [issue] 937-WM4 discussion <- unread
2. [issue] 937-WM4 discussion <- read
3. [issue] 937-WM4 discussion <- read

Only the third email should be moved.

I realize this is a lot to hope for, but I'm wondering if anyone has seen this done before so I don't have to start from scratch.

I have very little experience with VBA, so any direction at all would be greatly appreciated.

Author
Account Strength
100%
Account Age
9 years
Verified Email
Yes
Verified Flair
No
Total Karma
5,430
Link Karma
847
Comment Karma
4,387
Profile updated: 5 days ago
Posts updated: 8 months ago

Subreddit

Post Details

Location
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago