Skip to main content
Known Participant
August 6, 2010
Question

cfpop delete with uid

  • August 6, 2010
  • 1 reply
  • 657 views

I'm trying to delete specific messages using cfpop, passing UIDs. If I get the headers from my account using

<cfpop action="getHeaderOnly" name="getMessages" server="#mailServer#" username="#username#" password="#password#">

and copy any particular uid,

such as:

210761.wQc,Rx8QN3PZCHBy0oTVD8qHEQk=

I can not delete it using

<cfpop action="delete" uid="210761.wQc,Rx8QN3PZCHBy0oTVD8qHEQk= " server="#mailServer#" username="#username#" password="#password#">

I saw some conversations about this where suggestions were made to use only parts of the given uid, and tried various permutations, to

no avail. Any thoughts?

This topic has been closed for replies.

1 reply

Inspiring
August 12, 2010
210761.wQc,Rx8QN3PZCHBy0oTVD8qHEQk=

I do not know what the specifications say about UID values. But assuming commas are allowed, you are probably out of luck. CF will most likely assume the comma is a delimiter and treat the string as two (2) separate UID values, not one (1).  In addition to checking the bug database, you may want to do a search. Since you are not the first one to have this problem, there may be a CFC or custom tag available that can handle the issue.