How to parse mailbox file in Ruby?

前端 未结 3 658
再見小時候
再見小時候 2021-01-20 22:30

The Ruby gem rmail has methods to parse a mailbox file on local disk. Unfortunately this gem has broken (in Ruby 2.0.0). It might not get fixed, because folks

3条回答
  •  旧巷少年郎
    2021-01-20 23:04

    You can use tmail parsing email boxes, but it was replaced by mail, but I can't really find a class that substitutes it. So you might want to keep along with tmail.

    EDIT: as @tadman pointed out, it should not be working with ruby 1.9. However you can port this class (and put it on github for everyone else use :-) )

提交回复
热议问题