php-imap-client icon indicating copy to clipboard operation
php-imap-client copied to clipboard

Request: ability to set all IDs to UID

Open ghost opened this issue 8 years ago • 8 comments

I would like to have the ability to set a configuration parameter to ImapClient, so all IDs used in public and private functions are in UID.

We need this for a tool where multiple clients read from the same IMAP client at the same time. Deleting a message would change the normal message number, which can cause mixing emails. Also, when processing e-mails in a non DESC order, you need to request the ID each time based on the UID to be sure the right ID is used.

If you like the idea and I can help implementing, let me know

ghost avatar Apr 24 '17 08:04 ghost

Good idea, I'm not against help, but you need to wait until they accept the last pull request, as there are some changes.

sergey144010 avatar Apr 24 '17 12:04 sergey144010

Sounds great! If you have any ideas or if you want to code it, feel free. :)

mattparksjr avatar Apr 24 '17 12:04 mattparksjr

I have merged the pull request.

mattparksjr avatar Apr 24 '17 13:04 mattparksjr

Since I'm not an experienced GIT-user yet, it will take some time before able to contribute, but I'll keep this item in mind. I like the project, so love to contribute one day.

JerBlo avatar Apr 24 '17 15:04 JerBlo

If getting started with git is the problem all of us here can help :)

mattparksjr avatar Apr 24 '17 17:04 mattparksjr

About this, need make switch in ImapClient like this

$imap->useId();
$imap->useUid();

But need to rewrite a lot of code, and think through the logic.

sergey144010 avatar Apr 25 '17 16:04 sergey144010

Yeah

mattparksjr avatar Apr 25 '17 18:04 mattparksjr

We need to get a move on with this @sergey144010 if you want ill do this for you

mattparksjr avatar May 09 '17 17:05 mattparksjr