Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 20th, 2005, 07:55 AM
jalldridge jalldridge is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 14 jalldridge User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 41 m 5 sec
Reputation Power: 0
outlook issue

Hi guys

I'm writing an app that does a recursive search from a top level folder looking for unread emails. I then pull out the info from the msg.Body and put this in a db.


However I've yet to find a way of alterting the state of the msg from unread to read.

Any ideas what to do??

Heres some code:

Code:
	Dim numfolders As Integer
 	numfolders = mDownloadFolder.Folders.Count
 
 	
 	Dim currentFolderNum As Integer
 	
 	For currentFolderNum = 1 To numfolders
 	
 		Set mCurrentFolder = mDownloadFolder.Folders.Item(currentFolderNum)
 		
 		Dim numMails  As Integer
 		numMails = mCurrentFolder.Items.Count
 		
 		'For Each msg In mCurrentFolder.Items
 		'count backward through mails as most recent is last in...
 
 		Dim j As Integer
 		For j = numMails To 1 Step -1
 			Set msg = mCurrentFolder.Items(j)
 			If msg.UnRead Then
 				
 				getMailDetails (j)
  
 				
 			Else
 			 'if we have read an item then its already been dealt with
 				'go to next folder
 			    MsgBox "no unread mail in " & mCurrentFolder
 				Exit For
 			End If
 			
 		Next j
 	
 	Next currentFolderNum

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > outlook issue


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT