How to create Search Folders for email domain address

S

SSS

Outlook 2003
How do i create a search folder criteria that searches for contains
@somedomainname.com
If the email in the in box did not come through with a Display Name.. ie
has some address field exposed like (e-mail address removed), the search
folder works fine.
How ever it does not find the emails from the same domain if the email
had a dislay name .
I looked through all the criteria and could not find any thing?
Anybody got an idea how to make this work
sss
 
G

Guest

I will second this.

When I receive an email it has the full email address including the domain
name. when I reply to this message only the display name is shown. Search
Folders can't find the sent messages even thouht I've included my mailbox
(inbox, outbox, sent, etc) in the setup

In addition it is not finding all of the domain specific emails.

Search folders are a great idea but they have to work consistently.
 
S

SSS

Sairy said:
I will second this.

When I receive an email it has the full email address including the domain
name. when I reply to this message only the display name is shown. Search
Folders can't find the sent messages even thouht I've included my mailbox
(inbox, outbox, sent, etc) in the setup

In addition it is not finding all of the domain specific emails.

Search folders are a great idea but they have to work consistently.

:
Thanks for the second...
Any MVP out there with an idea.
Played with it some more. It appears that the catagory "From" , is only
filters on exactly what is displayed in the inbox From field. If the
address either does not have a name... which is often the case for
messages for a mailer program, it will filter just search filter just
fine. If however the address recieved from either has a name field in
there email, or the address is already in the address book, you can't
filter on the address.
Is there some "raw" address from catagory that I can use that actually
contains the the email address.. There has got to be one
somewhere...cause it is not the name that is insterted in junk mail
filters, but the address.
 
S

SSS

SSS said:
Thanks for the second...
Any MVP out there with an idea.
Played with it some more. It appears that the catagory "From" , is only
filters on exactly what is displayed in the inbox From field. If the
address either does not have a name... which is often the case for
messages for a mailer program, it will filter just search filter just
fine. If however the address recieved from either has a name field in
there email, or the address is already in the address book, you can't
filter on the address.
Is there some "raw" address from catagory that I can use that actually
contains the the email address.. There has got to be one
somewhere...cause it is not the name that is insterted in junk mail
filters, but the address.

Any MVP with a suggestion..?????
There has to be a criteria field for raw address?
 
G

Guest

Do you think that you and I are the only people on the planet who are using
this function? Surely someone has encountered this problem before.

Wonder how we escalate this?
 
G

Guest

I sent a 'suggestion to Microsoft' on this forum. Maybe they will read that.

Hey where are all of you MVP's? Are any of you reading this? If you don't
use the function at least tell us that so we know that you are out there.
 
K

Ken Slovak - [MVP - Outlook]

What you want to do can be done but not from the user interface. A search
folder like that would have to be created using code since it would access
properties that aren't exposed in the search folder interface. The From
field won't really cut it.

Such a search folder would be customized only for the email domain or
domains specified when the search folder was created. So if you later wanted
to add a new domain to that search folder you'd have to delete the existing
one and create a new one from code.

The code to do this would look something like this, run from the Outlook VBA
as a macro:

Sub CreateNewSearchFolder()
Dim objSch As Search
Dim strF As String
Dim strS As String
Dim strTag As String

strF = "http://schemas.microsoft.com/mapi/proptag/0x0C1F001E" 'sender
email address

' change "@mydomain.com" to whatever, for more than one domain
' use OR clauses to add new domains.
strF = strF & " like '%@mydomain.com%'" 'look for "@mydomain.com"

strS = "Inbox" 'search Inbox and all subfolders

strTag = "DomainSearch"

Set objSch = Application.AdvancedSearch(Scope:=strS, Filter:=strF, _
SearchSubFolders:=True, Tag:=strTag)

If objSch Is Nothing Then
MsgBox "Sorry, the search folder could not be created."
End If

objSch.Save ("DomainSearch") 'Change search folder name to what you want

Set objSch = Nothing
End Sub
 
D

Dhiraj Gupta

So, in effect, the search folder criteria with a simple add without
using the "Advanced" create search folder dialog, doesn't work? I mean,
if I want to add a search folder for email that I received from or sent
to a particular person or domain, there's no simple, sure-fire way of
making it work?

I would think that this would be the *primary* target of having the
feature in the first place. What a waste.

Dhiraj.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top