small post-2.3.7 fixes including one which fixes sync if sieve is in use and mail_attribute_dict is not set. From Brad.