471,605 Members | 1,369 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

AdvancedSearch Outlook

Hi
"\http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/TestField\"
<> 'Value'";

This fileter in while using Outlook Advance search should give all those
mails which do not contain Value in TestField field but it is doing exact
match and not contain in. I got this filter by making a query in oulook.

If there is some other query plz tell me

Saurabh
Dec 15 '05 #1
3 3397
Saurabh,

It sounds like you want to use a "like" operator. Unfortunately, it
does not seem that is supported. It only supports equals, not equals,
exists, and not exists.

You would have to cycle through each item and test the field yourself.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Saurabh Sharma" <sa*****@hireproindia.com> wrote in message
news:O1**************@TK2MSFTNGP09.phx.gbl...
Hi
"\http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-000000000046}/TestField\"
<> 'Value'";

This fileter in while using Outlook Advance search should give all those
mails which do not contain Value in TestField field but it is doing exact
match and not contain in. I got this filter by making a query in oulook.

If there is some other query plz tell me

Saurabh

Dec 15 '05 #2
What platform are you using for this? Regular COM or VSTO? The VSTO approach
takes a NOT argument not <>. Not sure if it would be the same for COM. Check
to see.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:u4**************@TK2MSFTNGP11.phx.gbl...
Saurabh,

It sounds like you want to use a "like" operator. Unfortunately, it
does not seem that is supported. It only supports equals, not equals,
exists, and not exists.

You would have to cycle through each item and test the field yourself.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Saurabh Sharma" <sa*****@hireproindia.com> wrote in message
news:O1**************@TK2MSFTNGP09.phx.gbl...
Hi
"\http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-00000000
0046}/TestField\" <> 'Value'";

This fileter in while using Outlook Advance search should give all those
mails which do not contain Value in TestField field but it is doing exact match and not contain in. I got this filter by making a query in oulook.

If there is some other query plz tell me

Saurabh


Dec 15 '05 #3
I a using COM and it supports <>.
Nicolas - i used advance search so that i dont have to parse all mails as it
becomes slow. :(
I will look for some other work around. It supports LIKE and but doesnt
support NOT LIKE

Thanx
Saurabh

"Alvin Bruney - ASP.NET MVP" <www.lulu.com/owc> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
What platform are you using for this? Regular COM or VSTO? The VSTO
approach
takes a NOT argument not <>. Not sure if it would be the same for COM.
Check
to see.

--
Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
The Microsoft Office Web Components Black Book with .NET
Now Available @ www.lulu.com/owc
Forth-coming VSTO.NET - Wrox/Wiley 2006
-------------------------------------------------------

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in
message news:u4**************@TK2MSFTNGP11.phx.gbl...
Saurabh,

It sounds like you want to use a "like" operator. Unfortunately, it
does not seem that is supported. It only supports equals, not equals,
exists, and not exists.

You would have to cycle through each item and test the field
yourself.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Saurabh Sharma" <sa*****@hireproindia.com> wrote in message
news:O1**************@TK2MSFTNGP09.phx.gbl...
> Hi
> "\http://schemas.microsoft.com/mapi/string/{00020329-0000-0000-C000-00000000
0046}/TestField\" > <> 'Value'";
>
> This fileter in while using Outlook Advance search should give all
> those
> mails which do not contain Value in TestField field but it is doing exact > match and not contain in. I got this filter by making a query in
> oulook.
>
> If there is some other query plz tell me
>
> Saurabh
>
>



Dec 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Fritz Switzer | last post: by
10 posts views Thread by John | last post: by
3 posts views Thread by John | last post: by
8 posts views Thread by Li Pang | last post: by
3 posts views Thread by wizzbangca | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.