src/imap/imap.c
/*
 * Returns NULL in case an error has occurred.
 *
 * When successful a NEW slist is returned.
 */
Returns NULL in case an error has occurred.
When successful a NEW slist is returned.
Returns NULL in case an error has occurred . When successful a NEW slist is returned .
slist_t * imap_2slist(imap_t * imap)
{
    slist_t * slist = imap_slist(imap);
    if (slist != NULL)
    {
        slist = slist_copy(slist);
    }
    return slist;
}
slist_t * imap_2slist ( imap_t * imap ) { slist_t * slist = imap_slist ( imap ) ; if ( slist != NULL ) { slist = slist_copy ( slist ) ; } return slist ; }
Returns NULL in case an error has occurred.
Returns NULL in case an error has occurred .