473,651 Members | 2,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Searching outlook folders

Hi

I am using the following code to search for an email message with id myID;

Dim SentFld As Outlook.MAPIFol der
Dim Email As Outlook.MailIte m
Dim I As Integer
OutlookApp = New Outlook.Applica tion

SentFld =
OutlookApp.Sess ion.GetDefaultF older(Outlook.O lDefaultFolders .olFolderSentMa i
l)
iCount = SentFld.Items.C ount
Email = CType(SentFld.I tems.Item(1), Outlook.MailIte m)
Email.UserPrope rties.Add("Emai lID", Outlook.OlUserP ropertyType.olT ext, True)
Email = SentFld.Items.F ind("[EmailID]=""" & myID & """")

The problem is that the find is very slow. Is there a faster way to search
for emails with specific user defined ids?

Thanks

Regards
Nov 20 '05 #1
9 7364
Cor
Hi John,
I remember me that I had the same problem a very long time ago.

But then I thougth the problem was the time to load the folder over the
network and not the search, I had no solution, but can it be this is the
same problem?

I know it does not help, but I ask this to get it easier for others to help
you, and then maybe I know the solution too then.

Cor

I am using the following code to search for an email message with id myID;

Dim SentFld As Outlook.MAPIFol der
Dim Email As Outlook.MailIte m
Dim I As Integer
OutlookApp = New Outlook.Applica tion

SentFld =
OutlookApp.Sess ion.GetDefaultF older(Outlook.O lDefaultFolders .olFolderSentMa i l)
iCount = SentFld.Items.C ount
Email = CType(SentFld.I tems.Item(1), Outlook.MailIte m)
Email.UserPrope rties.Add("Emai lID", Outlook.OlUserP ropertyType.olT ext, True) Email = SentFld.Items.F ind("[EmailID]=""" & myID & """")

The problem is that the find is very slow. Is there a faster way to search
for emails with specific user defined ids?

Nov 20 '05 #2
You could try the restrict method rather than the find method. Also,
Outlook has unique ID's on every item called the EntryID (or ID on the
mailitem). You may just want to store and use that ID which will be much
faster to find using the built-in methods for finding via ID.

Tom

--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp

This posting is provided "AS IS" with no warranties, and confers no rights.

"John" <jo**@nospam.in fovis.co.uk> wrote in message
news:#m******** ******@TK2MSFTN GP12.phx.gbl...
Hi

I am using the following code to search for an email message with id myID;

Dim SentFld As Outlook.MAPIFol der
Dim Email As Outlook.MailIte m
Dim I As Integer
OutlookApp = New Outlook.Applica tion

SentFld =
OutlookApp.Sess ion.GetDefaultF older(Outlook.O lDefaultFolders .olFolderSentMa i l)
iCount = SentFld.Items.C ount
Email = CType(SentFld.I tems.Item(1), Outlook.MailIte m)
Email.UserPrope rties.Add("Emai lID", Outlook.OlUserP ropertyType.olT ext, True) Email = SentFld.Items.F ind("[EmailID]=""" & myID & """")

The problem is that the find is very slow. Is there a faster way to search
for emails with specific user defined ids?

Thanks

Regards

Nov 20 '05 #3
Hi

Can I get an example of how to access the entryid for a new mail item? I
presume it can be search using; Email = SentFld.Items.F ind("[EntryID]=""" &
myEntryID & """")?

Thanks

Regards
"Tom Rizzo [MSFT]" <th*****@micros oft.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
You could try the restrict method rather than the find method. Also,
Outlook has unique ID's on every item called the EntryID (or ID on the
mailitem). You may just want to store and use that ID which will be much
faster to find using the built-in methods for finding via ID.

Tom

--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp

This posting is provided "AS IS" with no warranties, and confers no rights.
"John" <jo**@nospam.in fovis.co.uk> wrote in message
news:#m******** ******@TK2MSFTN GP12.phx.gbl...
Hi

I am using the following code to search for an email message with id myID;
Dim SentFld As Outlook.MAPIFol der
Dim Email As Outlook.MailIte m
Dim I As Integer
OutlookApp = New Outlook.Applica tion

SentFld =

OutlookApp.Sess ion.GetDefaultF older(Outlook.O lDefaultFolders .olFolderSentMa i
l)
iCount = SentFld.Items.C ount
Email = CType(SentFld.I tems.Item(1), Outlook.MailIte m)
Email.UserPrope rties.Add("Emai lID", Outlook.OlUserP ropertyType.olT ext,

True)
Email = SentFld.Items.F ind("[EmailID]=""" & myID & """")

The problem is that the find is very slow. Is there a faster way to search for emails with specific user defined ids?

Thanks

Regards


Nov 20 '05 #4
Keep in mind that you can kill your Exchange server if you are using
Restrict rather than Find/FindNext - Exchange caches restrictions for about
1 week by default and updates the restriction results everytime any message
in the folder changes.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"Tom Rizzo [MSFT]" <th*****@micros oft.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
You could try the restrict method rather than the find method. Also,
Outlook has unique ID's on every item called the EntryID (or ID on the
mailitem). You may just want to store and use that ID which will be much
faster to find using the built-in methods for finding via ID.

Tom

--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp

This posting is provided "AS IS" with no warranties, and confers no rights.
"John" <jo**@nospam.in fovis.co.uk> wrote in message
news:#m******** ******@TK2MSFTN GP12.phx.gbl...
Hi

I am using the following code to search for an email message with id myID;
Dim SentFld As Outlook.MAPIFol der
Dim Email As Outlook.MailIte m
Dim I As Integer
OutlookApp = New Outlook.Applica tion

SentFld =

OutlookApp.Sess ion.GetDefaultF older(Outlook.O lDefaultFolders .olFolderSentMa i
l)
iCount = SentFld.Items.C ount
Email = CType(SentFld.I tems.Item(1), Outlook.MailIte m)
Email.UserPrope rties.Add("Emai lID", Outlook.OlUserP ropertyType.olT ext,

True)
Email = SentFld.Items.F ind("[EmailID]=""" & myID & """")

The problem is that the find is very slow. Is there a faster way to search for emails with specific user defined ids?

Thanks

Regards


Nov 20 '05 #5
If you already know the entry id, you can simply use
Namespace.GetIt emFromID() to open it.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"John" <jo**@nospam.in fovis.co.uk> wrote in message
news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
Hi

Can I get an example of how to access the entryid for a new mail item? I
presume it can be search using; Email = SentFld.Items.F ind("[EntryID]=""" & myEntryID & """")?

Thanks

Regards
"Tom Rizzo [MSFT]" <th*****@micros oft.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
You could try the restrict method rather than the find method. Also,
Outlook has unique ID's on every item called the EntryID (or ID on the
mailitem). You may just want to store and use that ID which will be much
faster to find using the built-in methods for finding via ID.

Tom

--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp

This posting is provided "AS IS" with no warranties, and confers no

rights.

"John" <jo**@nospam.in fovis.co.uk> wrote in message
news:#m******** ******@TK2MSFTN GP12.phx.gbl...
Hi

I am using the following code to search for an email message with id

myID;
Dim SentFld As Outlook.MAPIFol der
Dim Email As Outlook.MailIte m
Dim I As Integer
OutlookApp = New Outlook.Applica tion

SentFld =

OutlookApp.Sess ion.GetDefaultF older(Outlook.O lDefaultFolders .olFolderSentMa i
l)
iCount = SentFld.Items.C ount
Email = CType(SentFld.I tems.Item(1), Outlook.MailIte m)
Email.UserPrope rties.Add("Emai lID", Outlook.OlUserP ropertyType.olT ext,

True)
Email = SentFld.Items.F ind("[EmailID]=""" & myID & """")

The problem is that the find is very slow. Is there a faster way to search for emails with specific user defined ids?

Thanks

Regards



Nov 20 '05 #6
Hi Dmitry

Anywhere I can get more information on this?

Thanks

Regards
"Dmitry Streblechenko" <dm****@dimastr .com> wrote in message
news:uu******** ******@TK2MSFTN GP11.phx.gbl...
If you already know the entry id, you can simply use
Namespace.GetIt emFromID() to open it.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"John" <jo**@nospam.in fovis.co.uk> wrote in message
news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
Hi

Can I get an example of how to access the entryid for a new mail item? I
presume it can be search using; Email = SentFld.Items.F ind("[EntryID]="""
&
myEntryID & """")?

Thanks

Regards
"Tom Rizzo [MSFT]" <th*****@micros oft.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
You could try the restrict method rather than the find method. Also,
Outlook has unique ID's on every item called the EntryID (or ID on the
mailitem). You may just want to store and use that ID which will be

much faster to find using the built-in methods for finding via ID.

Tom

--
Looking for a good book on programming Exchange, Outlook, ADSI and
SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp

This posting is provided "AS IS" with no warranties, and confers no

rights.

"John" <jo**@nospam.in fovis.co.uk> wrote in message
news:#m******** ******@TK2MSFTN GP12.phx.gbl...
> Hi
>
> I am using the following code to search for an email message with id

myID;
>
> Dim SentFld As Outlook.MAPIFol der
> Dim Email As Outlook.MailIte m
> Dim I As Integer
> OutlookApp = New Outlook.Applica tion
>
> SentFld =
>

OutlookApp.Sess ion.GetDefaultF older(Outlook.O lDefaultFolders .olFolderSentMa i
> l)
> iCount = SentFld.Items.C ount
> Email = CType(SentFld.I tems.Item(1), Outlook.MailIte m)
> Email.UserPrope rties.Add("Emai lID", Outlook.OlUserP ropertyType.olT ext, True)
> Email = SentFld.Items.F ind("[EmailID]=""" & myID & """")
>
> The problem is that the find is very slow. Is there a faster way to

search
> for emails with specific user defined ids?
>
> Thanks
>
> Regards
>
>



Nov 20 '05 #7
Outlook VBA help file:

GetItemFromID Method

See Also Applies To Example Specifics
Returns a Microsoft Outlook item identified by the specified entry ID (if
valid). This method is used for ease of transition between MAPI and
OLE/Messaging applications and Outlook.

expression.GetI temFromID(Entry IDItem, EntryIDStore)

expression Required. An expression that returns a NameSpace object.

EntryIDItem Required String. The EntryID of the item.

EntryIDStore Optional Variant. The StoreID for the folder.

Remarks
EntryIDStore usually must be provided when retrieving an item based on its
MAPI IDs.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"John" <jo**@nospam.in fovis.co.uk> wrote in message
news:ur******** ******@TK2MSFTN GP12.phx.gbl...
Hi Dmitry

Anywhere I can get more information on this?

Thanks

Regards
"Dmitry Streblechenko" <dm****@dimastr .com> wrote in message
news:uu******** ******@TK2MSFTN GP11.phx.gbl...
If you already know the entry id, you can simply use
Namespace.GetIt emFromID() to open it.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"John" <jo**@nospam.in fovis.co.uk> wrote in message
news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
Hi

Can I get an example of how to access the entryid for a new mail item? I presume it can be search using; Email = SentFld.Items.F ind("[EntryID]="""
&
myEntryID & """")?

Thanks

Regards
"Tom Rizzo [MSFT]" <th*****@micros oft.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
> You could try the restrict method rather than the find method. Also, > Outlook has unique ID's on every item called the EntryID (or ID on the > mailitem). You may just want to store and use that ID which will be

much
> faster to find using the built-in methods for finding via ID.
>
> Tom
>
> --
> Looking for a good book on programming Exchange, Outlook, ADSI and
> SharePoint? Check out http://www.microsoft.com/MSPress/books/5517.asp >
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
>
>
> "John" <jo**@nospam.in fovis.co.uk> wrote in message
> news:#m******** ******@TK2MSFTN GP12.phx.gbl...
> > Hi
> >
> > I am using the following code to search for an email message with id myID;
> >
> > Dim SentFld As Outlook.MAPIFol der
> > Dim Email As Outlook.MailIte m
> > Dim I As Integer
> > OutlookApp = New Outlook.Applica tion
> >
> > SentFld =
> >
>

OutlookApp.Sess ion.GetDefaultF older(Outlook.O lDefaultFolders .olFolderSentMa i
> > l)
> > iCount = SentFld.Items.C ount
> > Email = CType(SentFld.I tems.Item(1), Outlook.MailIte m)
> > Email.UserPrope rties.Add("Emai lID", Outlook.OlUserP ropertyType.olT ext, > True)
> > Email = SentFld.Items.F ind("[EmailID]=""" & myID & """")
> >
> > The problem is that the find is very slow. Is there a faster way to search
> > for emails with specific user defined ids?
> >
> > Thanks
> >
> > Regards
> >
> >
>
>



Nov 20 '05 #8
Thanks. Now what remains is how to know the entryid of a mailitem when it is
saved/sent, so it can be referenced later.

Thanks

Regards
"Dmitry Streblechenko" <dm****@dimastr .com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Outlook VBA help file:

GetItemFromID Method

See Also Applies To Example Specifics
Returns a Microsoft Outlook item identified by the specified entry ID (if
valid). This method is used for ease of transition between MAPI and
OLE/Messaging applications and Outlook.

expression.GetI temFromID(Entry IDItem, EntryIDStore)

expression Required. An expression that returns a NameSpace object.

EntryIDItem Required String. The EntryID of the item.

EntryIDStore Optional Variant. The StoreID for the folder.

Remarks
EntryIDStore usually must be provided when retrieving an item based on its
MAPI IDs.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"John" <jo**@nospam.in fovis.co.uk> wrote in message
news:ur******** ******@TK2MSFTN GP12.phx.gbl...
Hi Dmitry

Anywhere I can get more information on this?

Thanks

Regards
"Dmitry Streblechenko" <dm****@dimastr .com> wrote in message
news:uu******** ******@TK2MSFTN GP11.phx.gbl...
If you already know the entry id, you can simply use
Namespace.GetIt emFromID() to open it.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"John" <jo**@nospam.in fovis.co.uk> wrote in message
news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
> Hi
>
> Can I get an example of how to access the entryid for a new mail item?
I
> presume it can be search using; Email = SentFld.Items.F ind("[EntryID]="""
&
> myEntryID & """")?
>
> Thanks
>
> Regards
>
>
> "Tom Rizzo [MSFT]" <th*****@micros oft.com> wrote in message
> news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
> > You could try the restrict method rather than the find method. Also, > > Outlook has unique ID's on every item called the EntryID (or ID on the > > mailitem). You may just want to store and use that ID which will
be much
> > faster to find using the built-in methods for finding via ID.
> >
> > Tom
> >
> > --
> > Looking for a good book on programming Exchange, Outlook, ADSI and
> > SharePoint? Check out

http://www.microsoft.com/MSPress/books/5517.asp > >
> > This posting is provided "AS IS" with no warranties, and confers no > rights.
> >
> >
> >
> > "John" <jo**@nospam.in fovis.co.uk> wrote in message
> > news:#m******** ******@TK2MSFTN GP12.phx.gbl...
> > > Hi
> > >
> > > I am using the following code to search for an email message with id
> myID;
> > >
> > > Dim SentFld As Outlook.MAPIFol der
> > > Dim Email As Outlook.MailIte m
> > > Dim I As Integer
> > > OutlookApp = New Outlook.Applica tion
> > >
> > > SentFld =
> > >
> >
>

OutlookApp.Sess ion.GetDefaultF older(Outlook.O lDefaultFolders .olFolderSentMa i > > > l)
> > > iCount = SentFld.Items.C ount
> > > Email = CType(SentFld.I tems.Item(1), Outlook.MailIte m)
> > > Email.UserPrope rties.Add("Emai lID",

Outlook.OlUserP ropertyType.olT ext,
> > True)
> > > Email = SentFld.Items.F ind("[EmailID]=""" & myID & """")
> > >
> > > The problem is that the find is very slow. Is there a faster way to > search
> > > for emails with specific user defined ids?
> > >
> > > Thanks
> > >
> > > Regards
> > >
> > >
> >
> >
>
>



Nov 20 '05 #9
When an item is sent, its entry id changes when it is moved to the Sent
Items folder. Use MAPIFolder.Item s.ItemAdd event (where MAPIFolder points to
Sent Items folder) to save the entry id of the item.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"John" <jo**@nospam.in fovis.co.uk> wrote in message
news:eR******** ******@TK2MSFTN GP09.phx.gbl...
Thanks. Now what remains is how to know the entryid of a mailitem when it is saved/sent, so it can be referenced later.

Thanks

Regards
"Dmitry Streblechenko" <dm****@dimastr .com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
Outlook VBA help file:

GetItemFromID Method

See Also Applies To Example Specifics
Returns a Microsoft Outlook item identified by the specified entry ID (if
valid). This method is used for ease of transition between MAPI and
OLE/Messaging applications and Outlook.

expression.GetI temFromID(Entry IDItem, EntryIDStore)

expression Required. An expression that returns a NameSpace object.

EntryIDItem Required String. The EntryID of the item.

EntryIDStore Optional Variant. The StoreID for the folder.

Remarks
EntryIDStore usually must be provided when retrieving an item based on its MAPI IDs.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
"John" <jo**@nospam.in fovis.co.uk> wrote in message
news:ur******** ******@TK2MSFTN GP12.phx.gbl...
Hi Dmitry

Anywhere I can get more information on this?

Thanks

Regards
"Dmitry Streblechenko" <dm****@dimastr .com> wrote in message
news:uu******** ******@TK2MSFTN GP11.phx.gbl...
> If you already know the entry id, you can simply use
> Namespace.GetIt emFromID() to open it.
>
> Dmitry Streblechenko (MVP)
> http://www.dimastr.com/
> OutlookSpy - Outlook, CDO
> and MAPI Developer Tool
>
>
> "John" <jo**@nospam.in fovis.co.uk> wrote in message
> news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
> > Hi
> >
> > Can I get an example of how to access the entryid for a new mail item?
I
> > presume it can be search using; Email =
SentFld.Items.F ind("[EntryID]="""
> &
> > myEntryID & """")?
> >
> > Thanks
> >
> > Regards
> >
> >
> > "Tom Rizzo [MSFT]" <th*****@micros oft.com> wrote in message
> > news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
> > > You could try the restrict method rather than the find method. Also,
> > > Outlook has unique ID's on every item called the EntryID (or ID on the
> > > mailitem). You may just want to store and use that ID which
will be > much
> > > faster to find using the built-in methods for finding via ID.
> > >
> > > Tom
> > >
> > > --
> > > Looking for a good book on programming Exchange, Outlook, ADSI
and > > > SharePoint? Check out

http://www.microsoft.com/MSPress/books/5517.asp
> > >
> > > This posting is provided "AS IS" with no warranties, and confers

no > > rights.
> > >
> > >
> > >
> > > "John" <jo**@nospam.in fovis.co.uk> wrote in message
> > > news:#m******** ******@TK2MSFTN GP12.phx.gbl...
> > > > Hi
> > > >
> > > > I am using the following code to search for an email message with
id
> > myID;
> > > >
> > > > Dim SentFld As Outlook.MAPIFol der
> > > > Dim Email As Outlook.MailIte m
> > > > Dim I As Integer
> > > > OutlookApp = New Outlook.Applica tion
> > > >
> > > > SentFld =
> > > >
> > >
> >
>

OutlookApp.Sess ion.GetDefaultF older(Outlook.O lDefaultFolders .olFolderSentMa i
> > > > l)
> > > > iCount = SentFld.Items.C ount
> > > > Email = CType(SentFld.I tems.Item(1), Outlook.MailIte m)
> > > > Email.UserPrope rties.Add("Emai lID",
Outlook.OlUserP ropertyType.olT ext,
> > > True)
> > > > Email = SentFld.Items.F ind("[EmailID]=""" & myID & """")
> > > >
> > > > The problem is that the find is very slow. Is there a faster

way to
> > search
> > > > for emails with specific user defined ids?
> > > >
> > > > Thanks
> > > >
> > > > Regards
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Nov 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
3077
by: George McCullen | last post by:
I have an Outlook 2003 using Exchange Server 2003 Public Contacts Folder containing 20,000 Contacts. I am writing a VB .Net 2003 program that loops through all the contacts in a "for each oCt in oItems" loop. After about 250 contacts, the program gives an InvalidCastException Error on the for each loop. I notice that Outlook's memory keeps increasing (using the task manager) until it reaches around 20,000K. When I run the program a second...
3
4949
by: Li Pang | last post by:
Hi, I wrote the following codes to read messages. They work fine for Outlook 2002 but fails for 2003. My felling it may be a bug of Outlook 2003. Anybody has experience on that? Thanks in advance Dim oOutlook As Outlook.Application Dim oNS As Outlook.NameSpace Dim oStores As Outlook.Folders Dim oStore As Outlook.MAPIFolder
0
1609
by: ratnakarp | last post by:
Is there any way i can improve on this code? If i run this application by giving the detials of the start date and end date in the range of 15 days, it's taking 3 mins. I'm looking for a code which can run faster than this. I'm running this on asp.net 2.0. Any suggestions/comments would be appreciated. Default.aspx -------------------------
26
4491
by: Tom Becker | last post by:
Is there a way, from Access, to programmatically click the Send and Receive button in Outlook?
5
3317
by: Arno R | last post by:
Hi all, I need to get at specific (shared) agenda-data from MS outlook 2003. I need every day to get the scheduled 'appointments' for some rooms to Access. In Access I will show the time-periods that the rooms are booked for that day. I know how to code all this in Access. I can show some testdata for 5 rooms quite nicely on a form. I never ever needed to use Outlook-to-Access before, so I need a good starting point to get the data.
1
7043
by: PhilD | last post by:
My C#.NET console app checks a public folder every 24 hours for incoming emails. For each unread email in the folder, it copies any attachments to the network, then loads the contents of these files into a SQL Server database, and marks the email as read. My problem is that in the loop that checks for all the Unread emails in the folder, as I spin through the loop, the number of unread items is being reset for every iteration. So...
2
6197
by: beeswax | last post by:
Hi, Does anyone knows how to read e-mails from a specific folders in outlook? I only found out how to read the mails from the inbox folder and how to list all available folder. I just don't found a way to access my mails from the other folders. Can anyone help me?
0
1624
by: jazeelkm | last post by:
Hi , I am developing a windows application using C#. In that I want to display all the outlook profiles in a listbox and on selecting one, The folder structure should be displayed on a treeview control. I can display all the profiles in the listbox and on its changedindex event I am calling the function to load all outlook folders(and add that to the treeview). When i run the application first time it is working properly , but when i...
4
6444
by: infomage27 | last post by:
I have tried scripting this with rules and VBA, now trying with C# but still failing. (code is exploratory, so please excuse the terribleness) maybe someone here will show me the error of my code... sending an email by hand - everything works as expected (rules, VBA, etc are all applied). sending an email from code (C#, external VBA, etc) has the messages saving in Sent Items regardless of any other settings or configurations (up to...
0
8352
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8275
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8697
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8579
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7297
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2699
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1587
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.