ãã³ã¢ã®æºå¸¯å®ã¡ã¼ã«ã転éã§ããdocomo_web_mailerããªãªã¼ã¹ãã¾ãã
Docomo Web Mail ã¨ãããµã¼ãã¹ããã³ã¢ãè¡ã£ã¦ãã¦ãi-modeå®ã®ã¡ã¼ã«ãwebããé²è¦§ã§ãã¾ãã
http://dwmail.jp/
ã§ã転éæ©è½ã¨ãããªãã®ã§ãrubyã§ãªãã¨ãããã©ã¤ãã©ãªãä½ãã¾ããã
RubyGems ã«ç»é²ããã®ã§ã gem install docomo_web_mailer ã§ã¤ã³ã¹ãã¼ã«ã§ãã¾ãã
使ãæ¹ã¯ãã¾ãã¯ãã³ã¢WEBã¡ã¼ã«ã®ã¢ã«ã¦ã³ããç»é²ãã¦ã
require 'rubygems' require 'docomo_web_mailer' login_id, password = dwã¡ã¼ã«ã®id,ãã¹ã¯ã¼ã your_smtp_server,your_smtp_server_port = SMTPãµã¼ã,ãã¼ã forwarding_mail_address = 転éå ã¡ã¼ã«ã¢ãã¬ã¹ mailer = DocomoWebMailer.new mailer.login( login_id, password ) maillist = mailer.mail_list_start(mailer.mail_label_list[:inbox],1000) #nextmaillist = mailer.mail_list_get(maillist,1001,1000) Net::SMTP.start( your_smtp_server, your_smtp_server_port ) {|smtp| for mail in maillist smtp.send_mail mailer.make_mail_to_smtp( mail ), mail.from, forwarding_mail_address end }
ã¨ãããã¨ã1000éã®ã¡ã¼ã«ã forwarding_mail_address å®ã«è»¢éããã¾ãã
æ¢èªå¦çã¨ãããªãã¨æ¯å1000ééä¿¡ããããã©ã
ã½ã¼ã¹ã¯ãã¡ã
https://github.com/nazoking/docomo_web_mailer
èªåçã«ã¯æºè¶³ãã¦ãã以ä¸æãå ããã¤ããã¯ãªãã®ã§ããã®ãµã¼ãã¹ã使ã£ã¦ã¡ã¼ã«ãåºããã人ã¨ãã¯forkãã¦pull requestãã¦ã¿ã¦ãã ãããç¹ã«é å¼µã£ã人ã«ã¯gemã®ç®¡ç権éããããï¼ä¸ããç®ç·ï¼