modified script to forward only plain text messages1