I am trying to fetch email from Yahoo mail.
msg = imap.fetch(str(fromMail[-1]), "(RFC822)")
When the above code it throws the following error but the the same is working for Gmail. Any clue what need to be changed for Yahoo mail.
imaplib.IMAP4.error: FETCH command error: BAD [b'[CLIENTBUG] FETCH Command arguments invalid']