PlaggerでTwitterの投稿をGmailに送信する

参考:Twitter のログを Plagger でごにょごにょ - dnsystemの日記 - dnsystemグループ
$ vi ~/Twit2Mail.yaml

plugins:
- module: Subscription::Config
config:
feed:
- http://twitter.com/statuses/user_timeline/1234567.rss

- module: Aggregator::Simple

- module: Publish::Gmail
config:
mailto: hogehoge@gmail.com
mailfrom: hogehoge+plagger@gmail.com
mailroute:
via: smtp_tls
host: smtp.gmail.com:587
username: hogehoge@gmail.com
password: fugafuga

$ cd ~/plagger/
$ ./plagger -c ../Twit2Mail.yaml

Plagger::Plugin::Publish::Gmail [error] Error while sending emails: is only avaliable with the XS version at /usr/share/perl5/IO/Socket/SSL.pm line 19

SSL.pmの19行目は

use Scalar::Util 'dualvar';

調べてみると、Scalar::Utilのモジュールが見当たらない。

#cpan
cpan> install Scalar::Util

You need the XS Version of Scalar::Util for dualvar() support at Makefile.PL line 57.

なんと...仕方が無い。
cpan> force install Scalar::Util
今度はOK。

$ cd ~/plagger/
$ ./plagger -c ../Twit2Mail.yaml
出来た。TwitterAPI制限があるので、一回20件までしか取得できないけど。

このブログの人気の投稿

転職のお知らせ

40代の減量戦略 〜体重-14kg、体脂肪率-12%を実現した具体的な方法〜

45歳になりました