Thunderbird "Tags" in IMAP / PHP
Asked Answered
N

2

6

Thunderbird allows to flag messages with predefined (or own) Tags, e.g. "To Do", "Later". (Press "1" while reading a msg to see.)

These tags are replicated to the IMAP server (I verified that by using two TB clients: I saw the same tags on both clients).

How can I access the tag information in PHP using the standard IMAP class (e.g.: msg has set tag "To Do")?

I found an old reference http://www.wynia.org/wordpress/2007/02/alternate-imap-solution-for-php-pear-net_imap to net_imap http://pear.php.net/package/Net_IMAP, claiming the "standard" IMAP class cannot do this - but the Net_IMAP package doesn't seem to be updated for quite some time, so I am skeptical to adopt it...

Newfeld answered 26/9, 2011 at 1:36 Comment(0)
T
0

Not a perfect answer how to do that via PHP but good enough where to start:

Twitch answered 26/9, 2016 at 16:2 Comment(0)
J
-1

$messages = imap_search($imap_stream, 'To Do');

PHP.net: imap_search

Jan answered 17/5, 2012 at 7:11 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.