# Whatâ€™s faster for getting Mails into Rails: Pop vs. MySQL

**URL:** <https://www.ruby-forum.com/t/whata-s-faster-for-getting-mails-into-rails-pop-vs-mysql/167867>\
**Category:** Rails\
**Created:** [May 13, 2009, 1:12pm UTC](https://www.ruby-forum.com/t/whata-s-faster-for-getting-mails-into-rails-pop-vs-mysql/167867 "2009-05-13T13:12:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slafochmed](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/34f0e0/32.png) [@slafochmed](https://www.ruby-forum.com/u/slafochmed)\
**Post date:** [May 13, 2009, 1:12pm UTC](https://www.ruby-forum.com/t/whata-s-faster-for-getting-mails-into-rails-pop-vs-mysql/167867/1 "2009-05-13T13:12:45Z")

</div>

Hi,

Suppose I wanted to get mails from my mailserver (different machine)  
into my Rails App to process it there, what is faster:

- Connecting via net/Pop or net/imap to download the mails
- Storing the Mails on the Mailserver in a MySQL Database (using  
something like DBMail) and then connecting directly to the MySQL  
Database
- Or is there a third option I’m not seeing yet? Maybe letting the  
mailserver itself post the Mail to the Rails App?

Thanks for your advice!
