php - how to retrieve a specific message from imap with consistent id (message id) -


I need to keep a link tracking for an email message. I am using PHP and IMAP, Which identifies emails over time. Using IMAP UID does not work because the UID changes after removal (), I know that there is a message_id for the email, but how do I get an email using message_id with PHP and IMAP? Do you?

Can I use another identifier?

You need the UIDPLS IMAP extension, in particular see the UIDVADTI command

Many PHP webmail projects actually use it beforehand. I suggest you take a look at the source code, if you need an example and / or inspiration (Gilhiram has an excellent IMAP backend; Other webmail projects or classes can also work, but I personally do not know if they use UIDPLL).


Comments