Modified some IMAP code to use generic IList<T> instead of arrays a bit more