imap: fix compiler warning

imap.c:694:21: error: unused variable 'imapc' [-Werror=unused-variable]