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

fix UID cache issue

Open HelloSebastian opened this issue 3 years ago • 0 comments

fix #218

As identified by @ellisonpatterson is an error in the return of the UIDs. When uid_cache is disabled, a different array structure is returned than when cache is enabled.

This is because during the setUidCache method the array is modified.

In this fix the uid_cache is set and returned directly. Previously a local variable was returned from the getUID() method.

The change was also implemented in the LegacyProtocol. However, this has not yet been tested.

HelloSebastian avatar Mar 31 '22 17:03 HelloSebastian