AdvancedSearch

P

Ptit Dark

Hi,

The aim of my little macro is to find so email send or received from a
specifique domain (ex example.com) .
When I look in the deleted items, I use
urn:schemas:httpmail:fromemail like '%example.com%'
And it works just great.

When I'm looking into the sent items, wheter I look for the email adress or
the name of the person, I have no result.
I tried several things :
- urn:schemas:httpmail:to like '%example.com%'
- urn:schemas:mailheader:to like '%name_of_the_guy%'
- urn:schemas:mailheader:recipient like '%name_of_the_guy%'

I tried also urn:schemas:httpmail:textdescription like '%@example.com%' and
it works.
But I'm concerned of being more specific in case someone not from
example.com sending me an email forwarded from example.com (clear enough?). I
just want an email in the result if it is really from example.com.

Thanks for your help
 
P

Ptit Dark

Thx, for your help.
But it only allow to find my guys by his name not his email adress.
 
G

Guest

I'm not sure I understand. Don't you want to do a comparison using the
domain name in the evaluation? I'm using displayto with domain names and
it's filtering them perfectly fine for me.

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
Collaborative Innovations
-> Try Picture Attachments Wizard For Microsoft Outlook <-
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault


Ptit Dark said:
Thx, for your help.
But it only allow to find my guys by his name not his email adress.

urn:schemas:httpmail:to is invalid; try urn:schemas:httpmail:displayto

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS
2007
& WSS 3.0 Application Development)
Collaborative Innovations
-> Try Picture Attachments Wizard For Microsoft Outlook <-
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault
 
P

Ptit Dark

Just like you said : searching for the name works perfectly but I want to
search by part of the email adress.

The issue is that the name displayed might be :
- 'John Doe'
- 'John Doe (Main Company Name)'
- 'John Doe (Main Company Name - Sub Entity')
- 'John Doe (Subcontracting Company Name)'
I don't even want to talk about the subcontrators of the subcontractors of
the company sub entity... >_<

And they all have an email address like : "(e-mail address removed)"
and "@company.com" is the only reliable part to me.
 
G

Guest

You're confusing me again because you said that I was having no problems
searching for the name - but I said domain name!

Regardless, the urn:schemas:httpmail:displayto property appears to be the
only one in a sent message that contains any information about the
recipient - either the display name, e-mail address, or both in one string.
Messages in any other folder contains many more properties containing info
about the recipient.

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
Collaborative Innovations
-> Try Picture Attachments Wizard For Microsoft Outlook <-
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault


Ptit Dark said:
Just like you said : searching for the name works perfectly but I want to
search by part of the email adress.

The issue is that the name displayed might be :
- 'John Doe'
- 'John Doe (Main Company Name)'
- 'John Doe (Main Company Name - Sub Entity')
- 'John Doe (Subcontracting Company Name)'
I don't even want to talk about the subcontrators of the subcontractors of
the company sub entity... >_<

And they all have an email address like :
"(e-mail address removed)"
and "@company.com" is the only reliable part to me.

I'm not sure I understand. Don't you want to do a comparison using the
domain name in the evaluation? I'm using displayto with domain names and
it's filtering them perfectly fine for me.

--
Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS
2007
& WSS 3.0 Application Development)
Collaborative Innovations
-> Try Picture Attachments Wizard For Microsoft Outlook <-
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault
 

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