|
I am looking for three kinds of functionality in Erlang. Does anyone
know of a library, or the beginnings of a library, for any of these? 1. Image cropping and scaling - I know that erl_img can read and write various image formats, but I am looking for something to perform a resize (which usually involves some fancy math in the resample stage). 2. Rich-text reading and writing - I am looking for an RTF parser. Ideally it would parse many rich-text formats into a single abstract format which could then be converted to any of the other formats (e.g. HTML, Markdown, BBCode, WikiCreole) 3. Sender Policy Framework implementation - The Sender Policy Framework is emerging as the standard way to verify that email hosts are who they say they are. I can't imagine writing a serious application that receives email without it. Thanks, Evan -- Evan Miller http://www.evanmiller.org/ _______________________________________________ erlang-questions mailing list [hidden email] http://erlang.org/mailman/listinfo/erlang-questions |
|
On Fri, Jun 03, 2011 at 10:06:34AM -0500, Evan Miller wrote:
> I am looking for three kinds of functionality in Erlang. Does anyone > know of a library, or the beginnings of a library, for any of these? > > 3. Sender Policy Framework implementation - The Sender Policy > Framework is emerging as the standard way to verify that email hosts > are who they say they are. I can't imagine writing a serious > application that receives email without it. > I've considered writing something along these lines, but I looked a lot at SPF/SenderID and wasn't convinced it was worth it. I'm open to being convinced otherwise, though. Andrew _______________________________________________ erlang-questions mailing list [hidden email] http://erlang.org/mailman/listinfo/erlang-questions |
|
In reply to this post by Evan Miller-2
On Fri, Jun 3, 2011 at 9:06 AM, Evan Miller <[hidden email]> wrote:
> I am looking for three kinds of functionality in Erlang. Does anyone > know of a library, or the beginnings of a library, for any of these? > > 1. Image cropping and scaling - I know that erl_img can read and write > various image formats, but I am looking for something to perform a > resize (which usually involves some fancy math in the resample stage). You may want to take a peek at the zotonic code for image manipulation. In the installation instructions: https://github.com/AlainODea/zotonic/blob/master/doc/INSTALL it talks about using imagemagick. See zotonic here: http://zotonic.com/ > 2. Rich-text reading and writing - I am looking for an RTF parser. > Ideally it would parse many rich-text formats into a single abstract > format which could then be converted to any of the other formats (e.g. > HTML, Markdown, BBCode, WikiCreole) I didn't see any erlang rtf libs. > 3. Sender Policy Framework implementation - The Sender Policy > Framework is emerging as the standard way to verify that email hosts > are who they say they are. I can't imagine writing a serious > application that receives email without it. There is a reference to spf here: http://www.erlang.org/doc/man/inet_res.html not sure it's what you need or not. > > Thanks, > > Evan > > -- > Evan Miller > http://www.evanmiller.org/ -wes _______________________________________________ erlang-questions mailing list [hidden email] http://erlang.org/mailman/listinfo/erlang-questions |
|
In reply to this post by Evan Miller-2
> I am looking for three kinds of functionality in Erlang. Does anyone > know of a library, or the beginnings of a library, for any of these? > 1. Image cropping and scaling - I know that erl_img can read and > write > various image formats, but I am looking for something to perform a > resize (which usually involves some fancy math in the resample > stage). As someone already said, ImageMagick is the standard go-to solution for image manipulation. An Erlang port driver would be nice, but as far as I know, none exists, but you can use the script capability (http://imagemagick.com/script/index.php) > 2. Rich-text reading and writing - I am looking for an RTF parser. > Ideally it would parse many rich-text formats into a single abstract > format which could then be converted to any of the other formats > (e.g. > HTML, Markdown, BBCode, WikiCreole) Some of those formats are not exactly comparable though. For instance, RTF is intended as a printable format, and has no semantics. So sematic markup like "blockquote" from BBCode do not have an RTF equivalent. I think the best part of RTF, is that Microsoft has announce they won't be releasing any more versions of the RTF standard. > 3. Sender Policy Framework implementation - The Sender Policy > Framework is emerging as the standard way to verify that email hosts > are who they say they are. I can't imagine writing a serious > application that receives email without it. SPF finished emerging about 5 years ago, and is already in decline. DKIM is much more useful, and is now widely implemented (Yahoo and Gmail). SPF just defines what IPs are supposed to be sending email for a given domain, but most sites that have published a SPF, specify that email can come from anywhere. This means the receiving server has to come up with its own interpretation of what to do a with the policy. DKIM is must better, since the sending domain signs the email with a private key. The public key is in DNS, so receiving sites can easily verify the signature. If the signature check fails, you can discard the message. The only decision that you need to make, is what to do with unsigned emails. SPF is normally handled by the MTA, and you didn't ask for an SMTP server library for Erlang. If your MTA is not running in Erlang, it is probably better to leave DKIM and SPF up to your MTA., > Thanks, > Evan > -- > Evan Miller > http://www.evanmiller.org/ Tom _______________________________________________ erlang-questions mailing list [hidden email] http://erlang.org/mailman/listinfo/erlang-questions |
|
In reply to this post by Evan Miller-2
On 4 June 2011 01:06, Evan Miller <[hidden email]> wrote: 1. Image cropping and scaling - I know that erl_img can read and write Depending on the format you want to manipulate, erlycairo (http://code.google.com/p/erlycairo/) might do what you want (Cairo itself only supports PNG and some vector formats, so obviously the erlycairo wrapper can't do more than that). If that's useful and you need a hand with it, let me know. Cheers, Bernard _______________________________________________ erlang-questions mailing list [hidden email] http://erlang.org/mailman/listinfo/erlang-questions |
|
In reply to this post by Tom Samplonius-2
(Apologies if this is a double-post, posting via Gmane yesterday did
not appear to work) On Sat, Jun 4, 2011 at 3:45 PM, Tom Samplonius <[hidden email]> wrote: > >> I am looking for three kinds of functionality in Erlang. Does anyone >> know of a library, or the beginnings of a library, for any of these? > >> 1. Image cropping and scaling - I know that erl_img can read and >> write >> various image formats, but I am looking for something to perform a >> resize (which usually involves some fancy math in the resample >> stage). > > As someone already said, ImageMagick is the standard go-to solution for image manipulation. An Erlang port driver would be nice, but as far as I know, none exists, but you can use the script capability (http://imagemagick.com/script/index.php) I am looking for a pure-Erlang solution. For what it's worth I went ahead and added crop and scale functions to erl_img this weekend (along with PNG write support): https://github.com/evanmiller/erl_img > > >> 2. Rich-text reading and writing - I am looking for an RTF parser. >> Ideally it would parse many rich-text formats into a single abstract >> format which could then be converted to any of the other formats >> (e.g. >> HTML, Markdown, BBCode, WikiCreole) > > Some of those formats are not exactly comparable though. For instance, RTF is intended as a printable format, and has no semantics. So sematic markup like "blockquote" from BBCode do not have an RTF equivalent. Right, but I'd like to convert among rich-text formats as easily as converting among image formats. I'd love it if I could email an RTF file to a server application and have it display on web page as HTML, then make minor edits via Markdown. > > I think the best part of RTF, is that Microsoft has announce they won't be releasing any more versions of the RTF standard. > > >> 3. Sender Policy Framework implementation - The Sender Policy >> Framework is emerging as the standard way to verify that email hosts >> are who they say they are. I can't imagine writing a serious >> application that receives email without it. > > SPF finished emerging about 5 years ago, and is already in decline. DKIM is much more useful, and is now widely implemented (Yahoo and Gmail). SPF just defines what IPs are supposed to be sending email for a given domain, but most sites that have published a SPF, specify that email can come from anywhere. This means the receiving server has to come up with its own interpretation of what to do a with the policy. > > DKIM is must better, since the sending domain signs the email with a private key. The public key is in DNS, so receiving sites can easily verify the signature. If the signature check fails, you can discard the message. The only decision that you need to make, is what to do with unsigned emails. > > SPF is normally handled by the MTA, and you didn't ask for an SMTP server library for Erlang. If your MTA is not running in Erlang, it is probably better to leave DKIM and SPF up to your MTA., Interesting, I will take a look at DKIM. I am using the excellent gen_smtp library to build some basic MTA functionality: https://github.com/Vagabond/gen_smtp I would like to have an email interface to my application without worrying too much about unauthorized users. I am hoping that SPF or DKIM will do the trick. -- Evan Miller http://www.evanmiller.org/ _______________________________________________ erlang-questions mailing list [hidden email] http://erlang.org/mailman/listinfo/erlang-questions |
Hi Evan, Not sure how far away with your MTA, but I'm building a full MTA using gen_smtp (with connection pooling, per domain throttling, several queues optionally running on a cluster, web gui, etc.). Doing some testing in a production env, right now then I'll put it up on github (https://github.com/zsolt-erl). Maybe you can just add SPF handling to it. I'm not sure if SPF is that much useful but I'll add dkim in the future (for now I'm just using dkimproxy ). Zsolt Keszthelyi _______________________________________________ erlang-questions mailing list [hidden email] http://erlang.org/mailman/listinfo/erlang-questions |
| Powered by Nabble | Edit this page |
