Hi Darac,

On Mon, Nov 28, 2016 at 09:53:27PM +0000, Darac Marjal wrote:
> Package: claws-mail
> Version: 3.14.1-1.1
> Severity: normal
> 
> Dear Maintainer,
> 
> The IMAP UIDs on one of my folders has increased to more than 2^31
> which is causing claws-mail to repeatedly complain:
> 
> > folder.c:2265:Removed message 2147483647 from cache.
> 
> Upon examining folder.c I notice that, while cache_max_num,
> folder_max_num, cache_cur_num and folder_cur_num ARE stored as unsigned
> int (guint), in certain situations G_MAXINT is used as an "invalid
> value". The attached patch changes this to G_MAXUINT. The patch also
> changes usage of GPOINTER_TO_INT and GINT_TO_POINTER to their unsigned
> variants.

Many thanks for the patch!

best regards,
-- 
  Ricardo Mones 
  ~
  Quantity derives from measurement, figures from quantities, 
  comparisons from figures, and victories from comparisons. 
                                                              Sun Tzu

Attachment: signature.asc
Description: Digital signature

Reply via email to