Also pass key to imap callback to stay consistent with array_map