How to move an email to a different folder path

Oct 30, 2013 at 4:41 PM
HI

I want to move an email to a different folder. e.g. move an email from 'inbox' to 'inbox/folder_a/subfolder_a/subfolder_b'


So far i worked out that imapx.message.moveTo(folder) will move a message to a folder but u can't get to a folder via just to path, you have to do this imapx.folder.inbox.subfolder("folder_a").subfolder("subfolder_a").subfolder("subfolder_b") etc

But the path string will change per each instruction, so it might go down a few more folder.

Is there not a way of creating a folder via a path?

Thanks

Matt
Coordinator
Oct 30, 2013 at 4:49 PM
Hi mattbrewer,

at the moment there's no possibility to do this, however, the IMAP protocol allows this, moreover, the server should also be able to create folder trees that do not exist, in case the client requested them.

I think i can update the library to support this later this weekend.

Greets,

Pavel
Oct 30, 2013 at 5:26 PM
Hi Pavel

I had feeling that might be the case, that would be very helpful if you could update.

Thanks

Matt