In r245424 a cast was introduced to cast away const.
This is unnecessary and can be avoided by slightly rearranging the code.
Fix: Please apply the patch below.
For bugs matching the following criteria:
Status: In Progress Changed: (is less than) 2014-06-01
Reset to default assignee and clear in-progress tags.
Mail being skipped