• Like
  • Save

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Perl and eMail at Kansai.pm #13 Meeting in Kyoto

on

  • 1,709 views

YAPC::Asia Tokyo 2010で発表したスライド http://slidesha.re/cCC85N の改良版です。11/20のKansai.pm #13 Meeting in Kyotoで発表しました。

YAPC::Asia Tokyo 2010で発表したスライド http://slidesha.re/cCC85N の改良版です。11/20のKansai.pm #13 Meeting in Kyotoで発表しました。

Statistics

Views

Total Views
1,709
Views on SlideShare
1,704
Embed Views
5

Actions

Likes
0
Downloads
4
Comments
0

2 Embeds 5

http://bouncehammer.jp 4
http://s.deeeki.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Perl and eMail at Kansai.pm #13 Meeting in Kyoto Perl and eMail at Kansai.pm #13 Meeting in Kyoto Presentation Transcript

    • bounceHammer Kansai.pm#13 Perl and eMail Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer ✏ ✏ ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer そうび E PowerBookG4 E iPhone3G E NOKIA NM705i ふつうのぼうし わりときたないふく スニーカー E ふゆようのスーツ E かわのくつ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer どうぐ /usr/bin/perl -w /bin/sh /bin/tcsh OpenBSD Ubuntu MacVim /usr/bin/vi /usr/lib/sendmail LaTeX2e Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bounceHammer? Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bouncehammer? ✏ ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bounceMail? Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bounce mail? ✏ ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer From: ✏ ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Subject: ✏ ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Can ... ✏ ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Reasons ✏ ✏ ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Where ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Who ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Block & Delay ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Bounce handling ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer use bouncehammer; ✏ ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Environment ✏ ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer MTAs ✏ ✏ ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Build ✏ ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Operation ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bin/mailboxparser* # mailboxparser /var/mail/root % mailboxparser ~/Maildir/cur ~/Maildir/new % cat /var/mail/azuma | mailboxparser - { "bounced": 1221728044, "addresser": "user1@example.jp", "recipient": "domain-does- not-exist@example.gov", "senderdomain": "example.jp", "destination": "example.gov", "reason": "hostunknown", ... } Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Benchmark ✏ ✏ 2000 ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bin/datadumper* ✏ DB ✏ YAML, JSON, CSV ✏ % datadumper --howrecent 1y # 1 % datadumper --reason 'userunknown' # % datadumper --hostgroup 'cellphone' # % datadumper --format csv --destination gmail.com Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Parsed data ✏ ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer at MTA ✏ ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer /etc/mail/access ✏ datadumper ✏ DISCARD # cd /etc/mail # datadumper --format csv --reason userunknown > | cut -d, -f3 | grep '@' > | sed 's/^/To:/g;s/$/ DISCARD/g' > ./access # makemap hash access.db < access Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Read YAML ✏ ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer # datadumper > /tmp/bounce.yaml #!/usr/bin/perl use JSON::Syck; my @A = ; my @B = JSON::Syck::LoadFile("/tmp/bounce.yaml"); foreach my $e ( @A ){ unless( grep { $e eq $_->{recipient} } @B ){ } } Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer use HTTP-API; ✏ ✏ ✏ ✏ ✏ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer #!/usr/bin/perl use JSON::Syck; use LWP::UserAgent; my $A = ' ; my $H = 'http://127.0.0.1/b.cgi/search/recipient/'; my $U = new LWP::UserAgent(); my $R = $U->request( HTTP::Request->new( GET => $H.$A )); my $J = JSON::Syck::Load( $R->content() ) || []; foreach my $e ( @$J ){ ; } Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer TODOs ✏ ✏ ✏ ✏ ✏ MTA ? Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer http://bouncehammer.jp/ Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Software Design 2010 11 http://gihyo.jp/magazine/SD Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.
    • bounceHammer Kansai.pm #13@ / Perl and eMail - bounceHammer / Developed by Cubicroot Co. Ltd.