'Mail' is retaining a 'ghost'of moved mail.

G’day scripters

When processing all the messages of a given mailbox, when i try to 'set x to count of messages of mailbox “* items to store”, the full count of the processed messages shows as, for example, ‘137’, even though all the messages have been removed by a 'move message to mailbox “* items to manually process”.

I’ve tried a GUI ‘Rebuild’ click, but it doesn’t work.

Only quitting and restarting Mail every 10 seconds clears the ‘ghosting’.

Anyone know a method of fixing this please?

Regards

Santa

Model: Late 2014 retina i7, Yosemite
AppleScript: 2.4
Browser: Safari 600.2.5
Operating System: Other