titanous/mailman — Issue #42: mailman crash when server contains mail with no "From" on server
Author: siuying
Created: 2012-01-31 17:42:11+00:00
State: open

When processing email without a "From" field (such as todo task created by apple app), mailman crash:

```
/Users/siuying/.rvm/gems/ruby-1.9.3-p0/gems/mailman-0.4.0/lib/mailman/message_processor.rb:17:in `process': undefined method `first' for nil:NilClass (NoMethodError)
from /Users/siuying/.rvm/gems/ruby-1.9.3-p0/gems/mailman-0.4.0/lib/mailman/receiver/pop3.rb:41:in `block in get_messages'
from /Users/siuying/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/pop.rb:665:in `each'
from /Users/siuying/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/net/pop.rb:665:in `each_mail'
from /Users/siuying/.rvm/gems/ruby-1.9.3-p0/gems/mailman-0.4.0/lib/mailman/receiver/pop3.rb:40:in `get_messages'
from /Users/siuying/.rvm/gems/ruby-1.9.3-p0/gems/mailman-0.4.0/lib/mailman/application.rb:58:in `block in run'
from /Users/siuying/.rvm/gems/ruby-1.9.3-p0/gems/mailman-0.4.0/lib/mailman/application.rb:55:in `loop'
from /Users/siuying/.rvm/gems/ruby-1.9.3-p0/gems/mailman-0.4.0/lib/mailman/application.rb:55:in `run'
from /Users/siuying/.rvm/gems/ruby-1.9.3-p0/gems/mailman-0.4.0/lib/mailman/application.rb:7:in `run'
```

a sample crash: https://gist.github.com/bee01b32ef42110a2ea4