Re: move mailmessage
Marko Ivancic <[email protected]> Tue, 23 May 2006 11:44:45 +0200
| Newsgroups | gmane.mail.libetpan.user |
|---|---|
| Message-ID | <[email protected]> |
Tnx Michael. Problem solved. I see the best method to solve this kind of problems is to directly "grep" the libetpan headers file :) Tnx again. By, Marko Michael Leupold wrote: > 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 > _______________________________________________ > Libetpan-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/libetpan-users > > ------------------------------------------------------- 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