Closed AndyClaw closed 12 years ago
You may have noticed that I have an innate ability to write very complex code only to write very simple code in exactly the opposite way intended. :]
Don't worry, you may have noticed that I have an innate ability to find your logic errors. :]
The store method of the ImapClient looks like it will replace flags when it is supposed to add and add when it is supposed to replace.
There is a ternary expression in the code as follows: replace ? "+" : ""
Yet the plus sign is intended for adding flags, whereas no sign is intended for replacing flags.
From the RFC:
FLAGS
Replace the flags for the message (other than \Recent) with the
argument. The new value of the flags is returned as if a FETCH
of those flags was done.