Skip to main content
Participating Frequently
March 7, 2010
Question

CFIMAP

  • March 7, 2010
  • 1 reply
  • 859 views

I'm a having a problem with spaces in folder names with CFIMAP, any suggestions? besides remove the space

Parameter 1 of function SetVariable, which is now - PS Beta 6, must be a syntactically valid variable name.

Thanks,

Matthew

This topic has been closed for replies.

1 reply

Inspiring
March 7, 2010

It's a bit difficult to say too much without seeing your actual code.

Looks like your problem is with a setVariable() call rather than a

call though. Speaking of which: whilst it still works, didn't

the need to use setVariable() go the way of the dodo with... CF4 or

something?

--

Adam

-Matthew-Author
Participating Frequently
March 7, 2010

<cfimap

action="GetHeaderOnly"

connection="serveraddress"

name="queryname" maxrows = "10" folder="#url.name#" >

Fernis
Inspiring
March 13, 2010

It's still not the cfimap that causes the error in my opinion, but obviously you're using SetVariable somewhere else - and having problem with that.

CFIMAP works for me just fine with space in folder names (tested with gmail)

<cfimap port="993" secure="true" connection="myg" username="spaceball" password="12345"
action="open" server="imap.gmail.com">

Opened OK

<cfimap connection="myg" action="getheaderonly" name="mh" folder="mega maid">

Fetched OK
<cfimap action="close" connection="myg">

Closed OK

(username/password/folder *are* (sci-)fictionary, although they just might work )

-Fernis