Skip to content

Instantly share code, notes, and snippets.

@evanfarrar
Created November 11, 2010 15:22
Show Gist options
  • Save evanfarrar/672627 to your computer and use it in GitHub Desktop.
Save evanfarrar/672627 to your computer and use it in GitHub Desktop.
helps to test the problems around comment by email
url = "http://rr.rr.com:3000/email_replies"
# response = "curl #{url} -d from='Steve Ellis <sellis@pivotallabs.com>' -d to=reply+AZrB@reply.redroverhq.us -d text='testing\n--------------------\nSome Comment\n--------------------\nasdfsa'"
response = `curl #{url} -d "from=Steve+Ellis+<evan@pivotallabs.com>" -d html=test -d spf=spf -d to=reply%2BAZrB@reply.redroverhq.us -d "text=foobar--------------------Some Other Comment #{ARGV[0]}--------------------foobar" -d charsets=foo -d dkim=none -d subject=test -d envelope=test -d attachments=attachments`
response = `curl #{url} -d "from=Steve+Ellis+<sellis@pivotallabs.com>" -d html=test -d spf=spf -d to=reply%2BAZrB@reply.redroverhq.us -d "text=foobar--------------------Some Comment#{ARGV[0]}--------------------foobar" -d charsets=foo -d dkim=none -d subject=test -d envelope=test -d attachments=attachments`
puts response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment