imap_get_base_subject_cased(): Subject trailers weren't removed correctly. Also cleaned up the code a bit.
imap_get_base_subject_cased(): Subject trailers weren't removed correctly.
Also cleaned up the code a bit.

Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot