made some slight changes to make it work when it is forwarded from email to a RSS flow