IMAP Fetching text from new mails subject to take an action

I found this...

 if (strlen(msg.subject))
            MailClient.printf("Subject: %s\n", msg.subject); //This prints the Subject line of the received email

... here...