Mercurial > hg > config
view python/quotemail.py @ 431:72f33eb3aa23
add an attach.py script
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 08 Aug 2013 00:24:41 -0700 |
parents | 6bbc4867a795 |
children | c78da6f7ca79 |
line wrap: on
line source
#!/usr/bin/env python """ quote as per email """ def prefix(text, quote='> '): return '\n'.join(['%s%s' % (quote, line.rstrip()) for line in text.strip().splitlines()]) if __name__ == '__main__': import sys print prefix(sys.stdin.read())