Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: imap.UploadMessage Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
sbrady
Newbie
Newbie


Joined: 02 March 2009
Online Status: Offline
Posts: 12
Posted: 02 March 2009 at 1:41pm | IP Logged Quote sbrady

Hi,

We are using the UploadMessage function to upload a message to the sent items folder. It works except for when we attach a file, in which case we get the following exception:

MailBee.ImapMail.MailBeeImapNegativeResponseException: The server has responded with negative reply. The server responded: * NO Keywords are not supported!


Also, I've included the log text from our log file below. Thanks a lot.

[16:39:59.24] [INFO] Assembly version: 5.0.2.121.
[16:39:59.24] [INFO] Will upload message to folder "Sent Items".
[16:39:59.26] [SEND] MBN00000003 APPEND "Sent Items" "02-Mar-2009 16:39:59 -0500" {1674+}\r\n
[16:39:59.26] [SEND] [Data chunk of 1674 bytes sent.]
[16:39:59.26] [SEND] \r\n
[16:39:59.29] [RECV] * NO Keywords are not supported!\r\n [Total 34 bytes received.]
[16:39:59.29] [RECV] MBN00000003 OK APPEND completed.\r\n [Total 34 bytes received.]
[16:39:59.29] [INFO] Error: The server has responded with negative reply. The server responded: * NO Keywords are not supported!.
[16:40:31.85] [INFO] Select folder "Sent Items".
[16:40:31.85] [SEND] MBN00000004 EXAMINE "Sent Items"\r\n
[16:40:32.15] [RECV] * 3852 EXISTS\r\n [Total 15 bytes received.]
[16:40:32.15] [RECV] * 5 RECENT\r\n [Total 12 bytes received.]
[16:40:32.15] [RECV] * FLAGS (\Seen \Answered \Flagged \Deleted \Draft $MDNSent)\r\n [Total 61 bytes received.]
[16:40:32.15] [RECV] * OK [PERMANENTFLAGS ()] Permanent flags\r\n [Total 42 bytes received.]
[16:40:32.15] [RECV] * OK [UNSEEN 3852] Is the first unseen message\r\n [Total 48 bytes received.]
[16:40:32.15] [RECV] * OK [UIDVALIDITY 1120] UIDVALIDITY value\r\n [Total 43 bytes received.]
[16:40:32.15] [RECV] * OK [UIDNEXT 24762] The next unique identifier value\r\n [Total 55 bytes received.]
[16:40:32.16] [RECV] MBN00000004 OK [READ-ONLY] EXAMINE completed.\r\n [Total 47 bytes received.]
[16:40:32.16] [INFO] Setting flags for messages.
[16:40:32.16] [SEND] MBN00000005 STORE 3852 +FLAGS.SILENT (\Seen)\r\n
[16:40:32.18] [RECV] MBN00000005 OK STORE completed.\r\n [Total 33 bytes received.]
[16:40:32.18] [INFO] Will download envelopes.
[16:40:32.18] [SEND] MBN00000006 FETCH 3852 (UID RFC822.SIZE BODY.PEEK[HEADER])\r\n
[16:40:32.40] [RECV] * 3852 FETCH (UID 24761 RFC822.SIZE 992 BODY[HEADER] {586}\r\n
[16:40:32.40] [RECV] [Literal of length 586.]
[16:40:32.40] [RECV] )\r\n [Total 649 bytes received.]
[16:40:32.40] [RECV] MBN00000006 OK FETCH completed.\r\n [Total 33 bytes received.]
[16:40:32.40] [INFO] Envelopes downloaded
Back to Top View sbrady's Profile Search for other posts by sbrady
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 03 March 2009 at 1:20am | IP Logged Quote Andrew

Seems to be an issue of the IMAP server. APPEND itself completes fine:

[16:39:59.29] [RECV] MBN00000003 OK APPEND completed.\r\n [Total 34 bytes received.]

I.e. server reports message appended successfully.

The following IMAP server response:

[16:39:59.29] [RECV] * NO Keywords are not supported!\r\n [Total 34 bytes received.]

is an additional response or response to one of previous commands (you've cut a part of the log file).

Googling gives only this (not helpful) result.

We've never faced such server response, but have a guess. "Keywords are not supported" looks like a response of a database server. If your mail server uses a database backend, this may be a response of the database server passed by IMAP server.

So, you should dig your IMAP server or database server configuration to figure out what's wrong or just ignore this error as APPEND itself completes successfully.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
sbrady
Newbie
Newbie


Joined: 02 March 2009
Online Status: Offline
Posts: 12
Posted: 09 March 2009 at 12:48pm | IP Logged Quote sbrady

Well the message appends, but the attachment is not there. So if I go to the folder I've just uploaded to, I do see the message, but the message has no attachment. We are using microsoft exchange 2007 as our mail server, if that helps at all.
Back to Top View sbrady's Profile Search for other posts by sbrady
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 10 March 2009 at 7:34am | IP Logged Quote Andrew

Could you try appending a message with attachment via another e-mail client like Outlook Express (not MS Office Outlook) or Mozilla Thunderbird?

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
sbrady
Newbie
Newbie


Joined: 02 March 2009
Online Status: Offline
Posts: 12
Posted: 11 March 2009 at 6:40am | IP Logged Quote sbrady

I used thunderbird with our server, and the sent message was uploaded with an attachment
Back to Top View sbrady's Profile Search for other posts by sbrady
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 13 March 2009 at 1:13am | IP Logged Quote Andrew

Perhaps, Thunderbird uses another approach of uploading message. Also, the issue may be caused by a firewall/antivirus software which has Thunderbird whitelisted and so not liable to the issue.

Our experts are able to investigate this. To do it, we'd need you to provide us with a test account and a test application the issue can be reproduced with. Also, you'd need to obtain "1 Incident Support Ticket" to engage our experts to the investigation. If we find the issue is caused by a bug in our software, we'll fix it and you'll hold the ticket.

BTW, to request support from AfterLogic Support Team, we recommend you to contact us through helpdesk.

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 02 September 2010 at 1:13pm | IP Logged Quote Alex

It's Exchange bug. Exchange indeed sends negative response and then positive one (although it's nonsense to have positive and negative response at the same time, it's how Exchange behaves). Will try to find a workaround for this.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 02 September 2010 at 1:26pm | IP Logged Quote Alex

This syntax works:
Code:

imp.UploadMessage(msg, "Inbox", null, null); // imp is an instance of Imap


Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide