PHP Fatal error: Call to undefined method rcube_imap::get_headers()
function get_headers() no longer exists and an error is produced when sending message. Fixed by:
comment out line 68
comment out line 74
add below line 68
$user = $rcmail->user->get_username();
add below line 74
resent['From'] = $user." <".$user.">";
This solution is better because the Resent From field will be populated by the actual username of the logged in account and not the email of the original recipient of the bounced email. For example, a spam catch-all inbox will have many different recipients that are probably not the email address of the account being used.