return null in all messages of INBOX

Jul 6, 2009 at 2:07 PM
Edited Jul 6, 2009 at 2:12 PM

Dears...

I have code bellow:

 

Config =New InterIMAP.IMAPConfig(cboServer.Text, TextBox2.Text, TextBox3.Text, chkSSL.Checked, False, "")
client = New InterIMAP.IMAPClient(Config, Nothing, 5)
client.Logon()  
Try
Dim inbox As
InterIMAP.IMAPFolder
inbox = client.Folders("INBOX") 
'.Messages.Count
Dim selectedFolder As InterIMAP.IMAPFolder = inbox.SubFolders("Deleted Items")
selectedFolder.Select()
inbox.Examine() ': inbox.Select()
 For Each Mess As InterIMAP.IMAPMessage In inbox.Messages
  ListBox1.Items.Add(Mess.Subject & "") 
Next
Catch ex As Exception
 MsgBox(ex.Message)
End 


 

When i execute this, for retrieve messages os anyone subfolder, i get Sucess!, the body, subject, date, i get anything, rly.

But if i try retrieve messages of INBOX,  all properties of any message is Null, only UID is correct.

I try:

 GetMessageById - Failed

 i have try get messages of GMail IMAP. Sucess 

 very thanks for any help

Jul 6, 2009 at 4:25 PM
Can you post this example NOT in HTML email?
Jul 6, 2009 at 7:08 PM
Edited Jul 6, 2009 at 7:19 PM

Look this: one message by object IMAPMessage of INBOX

{InterIMAP.IMAPMessage}
    Attachments: Count = 0
    AttachmentsAvailable: False
    Bcc: Count = 0
    BodyParts: Count = 0
    Cc: Count = 0
    ContentClass: Nothing
    ContentLoaded: True
    ContentTransferEncoding: Nothing
    ContentType: "text/plain"
    Date: #12:00:00 AM#
    DeliveredTo: Nothing
    Embedded: Count = 0
    Flags: {InterIMAP.IMAPMessageFlags}
    Folder: {InterIMAP.IMAPFolder}
    From: Count = 0
    HeaderLoaded: True
    HtmlData: Nothing
    InReplyTo: Nothing
    MessageID: Nothing
    MimeVersion: Nothing
    Organization: Nothing
    Received: ""
    ReceivedSPF: Nothing
    ReturnPath: Nothing
    Subject: Nothing
    TextData: Nothing
    ThreadIndex: Nothing
    ThreadTopic: Nothing
    To: Count = 0
    Uid: 2115
    XGmailReceived: Nothing
    XMailer: Nothing
    XMimeOLE: Nothing
    XMSTNEFCorrelator: Nothing
    XOriginalArrivalTime: Nothing
    XOriginatingIP: Nothing


Now, message of Deleted Items (sub folder of INBOX)

{InterIMAP.IMAPMessage}
    Attachments: Count = 0
    AttachmentsAvailable: False
    Bcc: Count = 0
    BodyParts: Count = 2
    Cc: Count = 0
    ContentClass: Nothing
    ContentLoaded: True
    ContentTransferEncoding: Nothing
    ContentType: "multipart/report;report-type=disposition-notification;boundary="----=_NextPart_000_01D5_01C9FE49.8BEDE060""
    Date: #7/6/2009 2:53:39 PM#
    DeliveredTo: Nothing
    Embedded: Count = 0
    Flags: {InterIMAP.IMAPMessageFlags}
    Folder: {InterIMAP.IMAPFolder}
    From: Count = 1
    HeaderLoaded: True
    HtmlData: Nothing
    InReplyTo: Nothing
    MessageID: "<01d901c9fe62$b14be140$3c63a8c0@dash056>"
    MimeVersion: "1.0"
    Organization: Nothing
    Received: "from murder ([unix socket])by server (Cyrus v2.2.12) with LMTPA;Mon, 06 Jul 2009 14:53:34 -0300 from dash056 (unknown [192.168.99.60])by server.dashsjc.com.br (Postfix) with SMTP id 35DCD81406Ffor <MyMail>; Mon,  6 Jul 2009 14:53:34 -0300 (BRT)"
    ReceivedSPF: Nothing
    ReturnPath: "<Mail>"
    Subject: "Lidas: Log dos services de Hora Extra"
    TextData: {InterIMAP.IMAPMessageContent}
    ThreadIndex: Nothing
    ThreadTopic: Nothing
    To: Count = 1
    Uid: 99
    XGmailReceived: Nothing
    XMailer: "Microsoft Outlook Express 6.00.2900.2180"
    XMimeOLE: "Produced By Microsoft MimeOLE V6.00.2900.2180"
    XMSTNEFCorrelator: Nothing
    XOriginalArrivalTime: Nothing
    XOriginatingIP: Nothing

 

See, all properties of ALL messages in INBOX is null, only Uid is OK.

can help me ?

thank you . (and sorry for my english :) )

this is what you want?