2010-08-10 37 views

回答

0

有Ruby中没有特殊的方法来处理SMTP日志,我想,这样:

log = `tail /path/to/your/smtp/logs -n 100`.split(/[\r\n]+/)