{"url":"https://blog.kyanny.me/entry/20100209/1265647575","author_url":"https://blog.hatena.ne.jp/a666666/","description":"#!/usr/bin/env ruby require 'rubygems' gem 'tmail' require 'tmail' mail = TMail::Mail.parse(STDIN.read) mail.parts.each do |m| nexf unless m.content_type != 'image/jpeg' m.base64_decode File.open('xxx_new.jpg', 'w'){ |f| f.write m.body } end tmail_create.rb \u3092\u5b9f\u884c\u3057\u3066\u3067\u304d\u305f xxx_mail.txt \u3092 $ ruby tmail_parse\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.kyanny.me%2Fentry%2F20100209%2F1265647575\" title=\"TMail \u3067\u30e1\u30fc\u30eb\u304b\u3089\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u306e\u753b\u50cf\u3092\u53d6\u308a\u51fa\u3057\u3059 - @kyanny&#39;s blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","height":"190","author_name":"a666666","type":"rich","published":"2010-02-09 01:46:15","image_url":null,"provider_name":"Hatena Blog","width":"100%","blog_title":"@kyanny's blog","categories":["Ruby"],"title":"TMail \u3067\u30e1\u30fc\u30eb\u304b\u3089\u6dfb\u4ed8\u30d5\u30a1\u30a4\u30eb\u306e\u753b\u50cf\u3092\u53d6\u308a\u51fa\u3057\u3059","blog_url":"https://blog.kyanny.me/","provider_url":"https://hatena.blog"}