Home » Networking » Net_IMAP » Bug #8677
methods to manipulate message flags
Details
| Request #8677 | methods to manipulate message flags |
|---|---|
| Submitted | 2006-09-11 22:19 UTC |
| From | sebling at gmx dot net |
| Assigned | amistry |
| Status | Closed |
| Package | Net_IMAP |
| PHP Version | 5.1.4 |
| OS | Linux (Debian Etch) |
| Roadmaps | (Not assigned) |
Comments
[2006-09-11 22:19 UTC] sebling at gmx dot net
Description:
------------
Added following methods for manipulating message flags:
setFlags($msg_id, $flags, $mod = 'set')
addFlags($msg_id, $flags)
addSeen($msg_id)
addAnswered($msg_id)
addDeleted($msg_id)
addFlagged($msg_id)
addDraft($msg_id)
removeFlags($msg_id, $flags)
removeSeen($msg_id)
removeAnswered($msg_id)
removeDeleted($msg_id)
removeFlagged($msg_id)
removeDraft($msg_id)
Test script:
---------------
Diff is available here:
http://stud.umwelt-campus.de/~ai0321/pear/Net_IMAP.diff
Some Testing here:
$testflag = new Net_IMAP();
$testflag->connect('imaphost.domain.com', '143');
$testflag->login('username', 'password');
$testflag->selectMailbox('INBOX');
print_r($testflag->getFlags(1));
$testflag->setFlags(1, array('\Seen', '\Answered'));
print_r($testflag->getFlags(1));
$testflag->setFlags(1, '');
print_r($testflag->getFlags(1));
$testflag->addSeen(1);
print_r($testflag->getFlags(1));
$testflag->addDeleted(1);
print_r($testflag->getFlags(1));
$testflag->removeSeen(1);
print_r($testflag->getFlags(1));
$testflag->removeDraft(1);
print_r($testflag->getFlags(1));
$testflag->removeDeleted(1);
$testflag->disconnect(1);
Expected result:
----------------
Changing the message flags
Actual result:
--------------
none
[2006-09-13 22:11 UTC] sebling at gmx dot net
@amistry: Don't use what I send you per mail. The diff behind the URL here should be good.
Sebastian
[2006-09-13 22:26 UTC] amistry at php dot net
I've committed your diff to the CVS. Please test. Thanks.
[2006-09-18 13:15 UTC] sebling at gmx dot net
Tested and works for me
Sebastian
[2006-12-11 16:46 UTC] amistry at php dot net
This bug has been fixed in CVS.
If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).
If this was a problem with the pear.php.net website, the change should be live shortly.
Otherwise, the fix will appear in the package's next release.
Thank you for the report and for helping us make PEAR better.