Skip to content

Instantly share code, notes, and snippets.

@amccloud
Created July 4, 2012 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amccloud/3048960 to your computer and use it in GitHub Desktop.
Save amccloud/3048960 to your computer and use it in GitHub Desktop.
class TrackingPixelMiddleware(object):
def process_message(self, message):
message.body = '%s<img src="http://example.com/track.gif">' % (message.body,)
return message
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment