I would then inspect whether Gmail IMAP even sends you the Cc header by using the ->parse_headers method.
Maybe the name of the header is not cc but Cc.
use Data::Dumper; warn Dumper $client->parse_headers( $msgid );
In reply to Re^3: read gmail and extract cc field
by Corion
in thread read gmail and extract cc field
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |