Click here to Skip to main content
16,016,537 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: about proxy and source control Pin
Pete O'Hanlon4-Oct-10 0:11
mvePete O'Hanlon4-Oct-10 0:11 
GeneralRe: about proxy and source control Pin
NetQuestions4-Oct-10 22:40
NetQuestions4-Oct-10 22:40 
GeneralRe: about proxy and source control Pin
Pete O'Hanlon4-Oct-10 23:02
mvePete O'Hanlon4-Oct-10 23:02 
QuestionAbout framework supporting expression Pin
NetQuestions30-Sep-10 23:04
NetQuestions30-Sep-10 23:04 
AnswerRe: About framework supporting expression Pin
Pete O'Hanlon30-Sep-10 23:56
mvePete O'Hanlon30-Sep-10 23:56 
GeneralRe: About framework supporting expression Pin
NetQuestions2-Oct-10 17:03
NetQuestions2-Oct-10 17:03 
AnswerRe: About framework supporting expression Pin
Abhinav S2-Oct-10 23:35
Abhinav S2-Oct-10 23:35 
QuestionFilter Outlook 2003 inbox folder using C# and DASL query Pin
julio.cotroneo28-Sep-10 22:20
julio.cotroneo28-Sep-10 22:20 
I have a Windows Service which manages an OutLook 2003 inbox. The service filter the mailitems using dasl queries, and the problem comes when unexpectedly goes out of order. The filter returns now null instead of Microsoft.Office.Interop.Outlook._MailItem.

Here is the dasl query i use to filter the inbox:

@SQL=(urn:schemas:httpmail:displayto like '%Altamira%' AND urn:schemas:httpmail:textdescription <> 'Mesena' AND urn:schemas:httpmail:textdescription <> 'Aportucasa') OR (urn:schemas:httpmail:displayto like '%altamira%' AND urn:schemas:httpmail:textdescription <> 'Mesena' AND urn:schemas:httpmail:textdescription <> 'Aportucasa')

And this is the code i use to filter the _mailitem the filter function returns:

Microsoft.Office.Interop.Outlook.Items oMailItems = outlookNS.GetDefaultFolder(Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox).Items;

oMailItems.Sort("[ReceivedTime]", false);

Microsoft.Office.Interop.Outlook._MailItem oMailItem = oMailItems.Find(sFilter) as Microsoft.Office.Interop.Outlook._MailItem;

while (oMailItem != null)

{

if (DoMailActions(oMailItem))


TrataMailProcesado(oMailItem, backupbox);

oMailItem = oMailItems.FindNext() as Microsoft.Office.Interop.Outlook._MailItem;

}

(This code works in a machine that, i, crashed last week, so i figure out that is a configuration problem. But i don't know which one.)



If i use the filter option in Outlook 2003 and i try the dasl query then works perfectly, so.... i don't know what's wrong.



Any replies are welcome.

Julio
QuestionIs the SqlConnection constructor method thread safe? Pin
Leo Tohill28-Sep-10 7:27
Leo Tohill28-Sep-10 7:27 
AnswerRe: Is the SqlConnection constructor method thread safe? Pin
Luc Pattyn28-Sep-10 7:38
sitebuilderLuc Pattyn28-Sep-10 7:38 
GeneralRe: Is the SqlConnection constructor method thread safe? Pin
Leo Tohill28-Sep-10 7:57
Leo Tohill28-Sep-10 7:57 
AnswerRe: Is the SqlConnection constructor method thread safe? Pin
Luc Pattyn28-Sep-10 8:07
sitebuilderLuc Pattyn28-Sep-10 8:07 
GeneralRe: Is the SqlConnection constructor method thread safe? Pin
Leo Tohill28-Sep-10 8:18
Leo Tohill28-Sep-10 8:18 
AnswerRe: Is the SqlConnection constructor method thread safe? Pin
Luc Pattyn28-Sep-10 8:16
sitebuilderLuc Pattyn28-Sep-10 8:16 
GeneralRe: Is the SqlConnection constructor method thread safe? Pin
Leo Tohill28-Sep-10 8:20
Leo Tohill28-Sep-10 8:20 
QuestionTFS installation [modified] Pin
NetQuestions27-Sep-10 3:19
NetQuestions27-Sep-10 3:19 
AnswerRe: TFS installation Pin
Not Active27-Sep-10 4:23
mentorNot Active27-Sep-10 4:23 
QuestionRSA Keys Pin
smalltime26-Sep-10 20:36
smalltime26-Sep-10 20:36 
AnswerRe: RSA Keys Pin
Heinzzy2-Oct-10 9:15
Heinzzy2-Oct-10 9:15 
Question.NET 2-3 day training in NYC? [modified] Pin
Mihai Pruna24-Sep-10 5:30
Mihai Pruna24-Sep-10 5:30 
AnswerRe: .NET 2-3 day training in NYC? Pin
Richard MacCutchan24-Sep-10 5:52
mveRichard MacCutchan24-Sep-10 5:52 
AnswerRe: .NET 2-3 day training in NYC? Pin
Abhinav S24-Sep-10 7:17
Abhinav S24-Sep-10 7:17 
QuestionI have a column called bookedhalls, the value will be stored as Balaji-A,Balaji-C as text, i need to select that row i written query like select * from function where bookedhalls like '%Balaji-A,Balaji-C,% if i interchanged to '%Balaji-C,Balaji-A,% i Pin
sr15923-Sep-10 21:52
sr15923-Sep-10 21:52 
AnswerRe: How to select only particular text in column data Pin
Richard MacCutchan23-Sep-10 22:13
mveRichard MacCutchan23-Sep-10 22:13 
Answerbad table structures Pin
T M Gray24-Sep-10 11:46
T M Gray24-Sep-10 11:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.