Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: Move to deleted mails Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
wbMHK
Newbie
Newbie


Joined: 03 September 2012
Location: Denmark
Online Status: Offline
Posts: 2
Posted: 03 September 2012 at 2:57am | IP Logged Quote wbMHK

Hi

When using
Imap imp = new Imap....
imp.DeleteMessages(ids, false);
imp.Expunge();

It deletes the mails from the server, and not moving them down to the Deleted Mails folder. Is this a error or?

If it supposed to delete the mails from the server, how do I so, so the mails is moving down to the Deleted Mails folder?

I know I can do something like
imp.MoveMessages(ids, false, "Deleted Mails");
The problem is, that I dont have a "Deleted Mails", because my system is running on another language. So if it should works for me, I should use this instead
imp.MoveMessages(ids, false, "Slettet Post"); //'Slettet Post' is danish and is the Deleted mails folder.

//Morten
Back to Top View wbMHK's Profile Search for other posts by wbMHK
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 03 September 2012 at 3:01am | IP Logged Quote Igor

The purpose of DeleteMessages method is to delete messages from server permanently. While some mail servers might move mails to Trash instead, it's absolutely not a generic behavior. So yes, you will need to use MoveMessages method instead.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
wbMHK
Newbie
Newbie


Joined: 03 September 2012
Location: Denmark
Online Status: Offline
Posts: 2
Posted: 03 September 2012 at 3:27am | IP Logged Quote wbMHK

And there is no way I can detect which folder is the trash folder from the DownloadFolders?
Back to Top View wbMHK's Profile Search for other posts by wbMHK
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 03 September 2012 at 3:34am | IP Logged Quote Igor

It can be done if the particular server supports XLIST extension. For more details, please see documentation on DownloadFolders method and UseXList property.

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

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