{"id":8622,"date":"2005-02-12T16:45:56","date_gmt":"2005-02-12T14:45:56","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/2005\/02\/12\/rss2mail\/"},"modified":"2005-04-26T01:55:13","modified_gmt":"2005-04-25T22:55:13","slug":"rss2mail","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2005\/02\/12\/rss2mail\/","title":{"rendered":"rss2mail"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>Previously I have wrote <a href=\"https:\/\/mamchenkov.net\/wordpress\/2004\/12\/28\/lj2mail\/\">lj2mail<\/a> &#8211; a script which gets fresh posts from <a href=\"http:\/\/www.livejournal.com\">LiveJournal<\/a> and emails them to the list of recepients.  I have tried to avoid sending same items over and over again, but failed.  The script was implemented with the help of LiveJournal API (<a href=\"http:\/\/search.cpan.org\/search?query=LJ%3A%3ASimple&amp;mode=module\">LJ::Simple<\/a> Perl module).<\/p>\n<p>I got annoyed by that script repeating some items (mess with publishing date), so I wrote a different one.  rss2mail simply gets the RSS feed, parses it and emails items as individual messages to the list of recepients.  I guess that caching RSS item link is much better than LiveJournal&#8217;s publishing date.  Also, rss2mail is much more flexible.  It can be used with any RSS feed, not only LiveJournal&#8217;s.  I have tried to make it as generic as possible.  If it doesn&#8217;t work with other feeds, just check the fields of the RSS feed it uses.<\/p>\n<p><a href =\"\/wordpress\/wp-content\/20050212-rss2mail.perl\">rss2mail.pl<\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>Previously I have wrote lj2mail &#8211; a script which gets fresh posts from LiveJournal and emails them to the list of recepients. I have tried to avoid sending same items over and over again, but failed. The script was implemented with the help of LiveJournal API (LJ::Simple Perl module). I got annoyed by that script &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2005\/02\/12\/rss2mail\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">rss2mail<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,18,62],"tags":[36,2350,39],"keyring_services":[],"class_list":["post-8622","post","type-post","status-publish","format-standard","hentry","category-general","category-programming","category-technology","tag-perl","tag-rss","tag-software"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":8387,"url":"https:\/\/mamchenkov.net\/wordpress\/2004\/12\/28\/lj2mail\/","url_meta":{"origin":8622,"position":0},"title":"lj2mail","author":"Leonid Mamchenkov","date":"December 28, 2004","format":false,"excerpt":"With this script I will terrorize my friends from today onwards. What it does is get all the recent posts from some LiveJournal blog and email them as separate messages to a list of recepients. Subject of the blog entry is used as a subject of the email. Body of\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9073,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/06\/14\/sending-bulk-html-emails-with-perl\/","url_meta":{"origin":8622,"position":1},"title":"Sending bulk HTML emails with perl","author":"Leonid Mamchenkov","date":"June 14, 2005","format":false,"excerpt":"First of all, I have to warn you that using HTML in emails is almost always inappropriate. Use plain text. If you have to send HTML, than send it as an attachment. For those cases, where HTML message has to be sent and there is no choice in the matter,\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8379,"url":"https:\/\/mamchenkov.net\/wordpress\/2004\/12\/26\/yet-another-blog\/","url_meta":{"origin":8622,"position":2},"title":"Yet another blog","author":"Leonid Mamchenkov","date":"December 26, 2004","format":false,"excerpt":"Some time ago I have registered at LiveJournal.com. Originally, I did it to be able to search for blogs by region. It turned out that this feature was available only to paid accounts. I thought that I won't be needing this account anymore. After some time I found myself posting\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8435,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/01\/07\/operru-rss-feed\/","url_meta":{"origin":8622,"position":3},"title":"oper.ru RSS feed","author":"Leonid Mamchenkov","date":"January 7, 2005","format":false,"excerpt":"I have wrote a script to generate an RSS feed for http:\/\/oper.ru. It will be regenerated every hour. In case you want any changes to the look and feel of the feed, here the script source (Perl file).","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8528,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/01\/24\/emsc-rss-feed\/","url_meta":{"origin":8622,"position":4},"title":"EMSC RSS feed","author":"Leonid Mamchenkov","date":"January 24, 2005","format":false,"excerpt":"It seems that writing RSS-generating scripts becomes my new hobby. I have wrote yet another script. This time it is for European-Mediterranean Seismological Center. The feed is here. The generating Perl script is here. RSS feed will be regenerated every 5 minutes (suggested by EMSC themselves).","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":8454,"url":"https:\/\/mamchenkov.net\/wordpress\/2005\/01\/10\/vestnik-kipra-rss-feed\/","url_meta":{"origin":8622,"position":5},"title":"Vestnik Kipra RSS feed","author":"Leonid Mamchenkov","date":"January 10, 2005","format":false,"excerpt":"I have wrote a script to generate an RSS feed for Vestnik Kipra aka Cyprus Advertiser. It will be regenerated every hour. In case you want any changes to the look and feel of the feed, here is the script source (Perl file).","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/8622","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=8622"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/8622\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=8622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=8622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=8622"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=8622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}