Reputation: 926
I'm trying to get message headers from Courier IMAP I'm running the command
FETCH 3 BODY[HEADER]
where 3 is the message id, but all I get is the response
Error in IMAP command received by server.
I've also tried the following
FETCH 3 (BODY[HEADER])
But that doesn't work either, same error
This has been working fine in hMailServer, but not in Courier IMAP
What's wrong with this command?
EDIT:
The problem was I wasn't selecting a mailbox correctly. the fetch command itself is fine. thanks to max :)
Upvotes: 1
Views: 461
Reputation: 10985
Have you selected a folder? I get that exact error if I do that with no folder selected.
Upvotes: 1