Live data from Hacker News

Free JSON API to instantly check the spam score of your email messages

spamcheck.postmarkapp.com

21–30 of 41 posts

Re: Free JSON API to instantly check the spam score of your email messages

#21
nice work. would be a great add-on to have a permalink to the score + results. for example, client asks me to make his HTML newsletter, i cringe, create it, test it and have a link to send him the score when he insists we use SA negative words, and so on.

Re: Free JSON API to instantly check the spam score of your email messages

#22
post #21

nice work. would be a great add-on to have a permalink to the score + results. for example, client asks me to make his HTML newsletter, i cringe, create it, test it and have a link to send him the score when he insists we use SA negative words, and so on.

oh, I like this.

edit: would you want to see the same results, or have it re-run every time the link is loaded? because you could technically just copy paste the report into pastebin…

Re: Free JSON API to instantly check the spam score of your email messages

#23
This is very interesting, but I can't figure out how to use this in Bash, when I try:

  xargs -I % curl -X POST "http://sa-api.postmarkapp.com/filter \
   -H "Accept: application/json" \
   -H "Content-Type: application/json" \
   -v \
   -d '{"email":"%", "options":"long"}' \
  
It seems contents of my email message file are processed one line at a time, instead of the entire message passed in place of %

I'm using GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu)

EDIT: added indentation to fix display

Re: Free JSON API to instantly check the spam score of your email messages

#24

Help me out here: What is the target audience? 1) I don't know your app, but ran SA in the past. You can configure the hell out of it. How is this test setup representable for the (that's the thing you want to archive, I guess) spam filter configuration of the final recipient? 2) Aren't you basically offering a way to ~somewhat easily~ avoid being flagged as spam, even for people with dark glasses and the tendency to…

Hey Benjamin, 1) This test is representative of our system. I realize that other systems can be set up different with different settings. given that users of the Postmark app send email through us, they might be interested to see what we might consider as spam. 2) The thing is that there are a lot of tests that spamd does that they can't defeat, even if they're aware of them. security by obscurity isn't really how sp…

Thanks for getting back - and looking up my profile is - special. :)

1) Agreed. So it's ~accurate~ really only for recipients that would use your service/the same configuration/classification, right? For everyone else this is an approximation. With a nice api and some UI love, but still.

2) Agreed, a lot of things are unbeatable. But you yourself market this as 'most often the _content_ leads to classification as spam' solution. Everyone can change the content, good guy and bad guy.

I'm not saying that the idea sucks and quite frankly someone involved into a business that sends unsolicited mail should know the deal already, but I still think that you're offering yet another testcase.

Security by obscurity is not the problem, the thing is: Can I create a client for your API that randomly appends/prepends/inserts meaningful text into my crap content and evaluate your opinion on my crap x times per second? You commented elsewhere that you're not keeping my content, so - how are you going to notice this abuse?

Okay, _NOW_ I'm too negative. Still - rate limit that stuff. :)

Re: Free JSON API to instantly check the spam score of your email messages

#26
post #23

This is very interesting, but I can't figure out how to use this in Bash, when I try: xargs -I % curl -X POST "http://sa-api.postmarkapp.com/filter \ -H "Accept: application/json" \ -H "Content-Type: application/json" \ -v \ -d '{"email":"%", "options":"long"}' \ It seems contents of my email message file are processed one line at a time, instead of the entire message passed in place of % I'm using GNU bash, version…

Please, man xargs if you aren't joking.

EDIT: Sorry if that came off harsh.

Re: Free JSON API to instantly check the spam score of your email messages

#27

Earlier quoted context omitted.

Hey Benjamin, 1) This test is representative of our system. I realize that other systems can be set up different with different settings. given that users of the Postmark app send email through us, they might be interested to see what we might consider as spam. 2) The thing is that there are a lot of tests that spamd does that they can't defeat, even if they're aware of them. security by obscurity isn't really how sp…

Thanks for getting back - and looking up my profile is - special. :) 1) Agreed. So it's ~accurate~ really only for recipients that would use your service/the same configuration/classification, right? For everyone else this is an approximation. With a nice api and some UI love, but still. 2) Agreed, a lot of things are unbeatable. But you yourself market this as 'most often the _content_ leads to classification as spa…

Thanks a lot. Now I'm going to spend half the evening writing a script to grab random spam out of my gmail and using this API to try and automatically turn spam into ham.

I bet siri can already do this.

Re: Free JSON API to instantly check the spam score of your email messages

#28

Help me out here: What is the target audience? 1) I don't know your app, but ran SA in the past. You can configure the hell out of it. How is this test setup representable for the (that's the thing you want to archive, I guess) spam filter configuration of the final recipient? 2) Aren't you basically offering a way to ~somewhat easily~ avoid being flagged as spam, even for people with dark glasses and the tendency to…

[deleted]

Re: Free JSON API to instantly check the spam score of your email messages

#29
post #21

nice work. would be a great add-on to have a permalink to the score + results. for example, client asks me to make his HTML newsletter, i cringe, create it, test it and have a link to send him the score when he insists we use SA negative words, and so on.

oh, I like this. edit: would you want to see the same results, or have it re-run every time the link is loaded? because you could technically just copy paste the report into pastebin…

Probably the results at the time of processing, mainly for the purpose of sharing. Any further processing makes sense to re-run with a new email. That also holds true to the fact you dont store the email contents. Agreed with pastebin, just as easy to email the results as well, however might be a nice feature that comes with some value to the site's purpose.

Enjoying the api, I may work on a little tool using it similar to the feature request. thanks for sharing this with us.

Re: Free JSON API to instantly check the spam score of your email messages

#30

Earlier quoted context omitted.

Thanks for getting back - and looking up my profile is - special. :) 1) Agreed. So it's ~accurate~ really only for recipients that would use your service/the same configuration/classification, right? For everyone else this is an approximation. With a nice api and some UI love, but still. 2) Agreed, a lot of things are unbeatable. But you yourself market this as 'most often the _content_ leads to classification as spa…

Thanks a lot. Now I'm going to spend half the evening writing a script to grab random spam out of my gmail and using this API to try and automatically turn spam into ham. I bet siri can already do this.

I'd expect her to answer with "I'm afraid I can't do that, Oren" - but give it a try and good luck :)
Post reply on HN