简体   繁体   中英

unique id in imap php

I am using imap_search to get a list of Emails FROM INBOX and SENT ITEMS .

I have a grid that showing the Mail headers first ,when user clicks on one row i want to show entire content,like body,attachment etc ..

to achieve this there should be a UNIQUE ID for each messages.

how can i get UNIQUE ID for messages , i know about the SE_UID option will return the UNIQUE ID'S but UNIQUE ID are only in one Mail box ,

I can see same ID'S on INBOX and SENT ITEMS.

Please help me.

Note : I am using Codeigniter with Peeker Library.

Thanks.

You can use the UID of an email to do operations on any email in any mailbox such as INBOX and SENT.

You can find more information http://phpmaster.com/exploring-phps-imap-library-1/ in this article

The completely unique ID is made up of the mailbox name (eg INBOX ), the UIDVALIDITY returned when a mailbox is selected, and the message UID .

You need to select the relevant mailbox and provide the correct UID to fetch the right message. UIDs are not unique between different mailboxes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM