Modifying inbound email

I am trying to manipulate inbound email (on group email) using a before-save logic hook. The manipulation logic seems to work (I have logs that show successful replacement of text) but is not saved to database, the original text is what shows up in the database.