Re: spam - WeOnlyDo Discussion board

Re: spam (General questions)

by tarun, Wednesday, October 01, 2008, 14:57 (5896 days ago) @ woddrazen

Hi,

yesterday's problem to connect server is solved.
Now, i get one new problem, when i click on folder it fire IMAPServer_ListMessages Event for folder and code for this event is below, which is same as full example means it add's message in folder's message collection but i do not get in outlook 2007?

if (IMAPServer.Activated)
{
if (Folder != null)
{
//objImapMessages = Folder.Messages;
location = Folder.Tag.ToString().Trim();
System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(location);
foreach (System.IO.FileInfo fileInfo in dir.GetFiles( *.txt ))
{
ImapMessage objImapMessage = new ImapMessage();
objImapMessage = Folder.Messages.Add(objImapMessage);
objImapMessage.Filename = location + @ + fileInfo.Name.Trim();
objImapMessage.Tag = location + @ + fileInfo.Name.Trim();
objImapMessage.UID = Convert.ToInt32(fileInfo.Name.Trim().Substring(0, fileInfo.Name.Trim().IndexOf( . )));
// Folder.Messages.Add(objImapMessage).Tag = location + @ + fileInfo.Name.Trim();

// Temp Comment
ReadMessageProperty(User, objImapMessage);
}
}
}
So, why i am not getting message in outlook? is there any setting i have to do in IMAPServer_ReadMessage event?

Tarun,


Can you please show us your code inside wodImapServer CreateFolder Event?

More help for CreateFolder Event you can find here:
http://www.weonlydo.com/ImapServer/Help/WODIMAPSERVERLib~wodImapServer~CreateFolder_EV.html


Drazen


Complete thread: