Link to home
Start Free TrialLog in
Avatar of cfuser
cfuser

asked on

Move already read messages to a different folder

I am using cfpop action="getall" to get messages from my pop3 server. Once I read the messages, I would like to move those messages to a custom folder on my pop3 server. How can I do that in coldfusion. Please help. Thanks
Avatar of Tomarse111
Tomarse111
Flag of United Kingdom of Great Britain and Northern Ireland image

I don't believe you can move do this through cfpop .. to the best of my knowledge the physically protocol does not allow this:

http://www.networksorcery.com/enp/protocol/pop.htm shows functionality available. You may need to think of using something like imap etc
Well! at a Round way!

After you download all the Messages from the pop mail, store them in the database and then show them on the scren!, after that once you read, apply a filter to move the read messages to otehr folder!

And yes you have to download the messages to the DB and then you can play around! Directly you cannot any Specific Rule! as

like in outlook you can create a rule that once specific messages, move to another folder, the default behavious of POP is not like this!

if u are on CF 9 use cfimap!
ASKER CERTIFIED SOLUTION
Avatar of Brijesh Chauhan
Brijesh Chauhan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you are NOT on CF9, you can use JAVAMAIL or a custom CFC..

http://coldfusion.sys-con.com/node/41597  -- JAVAMAIL

IMAP CFC

http://www.opensourcecf.com/CFOpenMail/imapcfc_view.cfm