Re: move mailmessage
Michael Leupold <[email protected]> Tue, 23 May 2006 11:37:22 +0200
| Newsgroups | gmane.mail.libetpan.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Marko, Am Dienstag, 23. Mai 2006 10:20 schrieb Marko Ivancic: > Is possible with IMAP to move a selected mailmessage from one folder to > another. > I tried with mailfolder_append_message(...), but the message must be > furst "downloded" then appended to folder. One way you can definitely do this is via the low-level IMAP api. Unfortunately IMAP doesn't have a MOVE command, but it does have a COPY command: int mailimap_copy(mailimap * session, struct mailimap_set * set, const char * mb) it copies the messages specified by set to the destination mailbox mb. after copy has succeeded you can simply remove the old messages. Regards, Michael ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642