imap: Moved imap_append() to be with the other perform functions