How does reddit send email?
===

I am trying to learn how to large organisations that use python structure their code so that I can maybe apply some of their theories to my own code.

Currently I am looking through reddit's code and am interested how they have implemented the sending of emails generated as part of the app's operations. See: https://github.com/reddit/reddit/blob/master/r2/r2/lib/emailer.py (their emailing library) and  https://github.com/reddit/reddit/blob/master/r2/r2/models/mail_queue.py

I think mail_queue.py contains some form of SqlAlchemy table backed email queue. 
Is this the case. Does that mean the table is kept in memory? Could somebody make this a little clearer for me?

Cheers from Down Under. 

P.S. May I suggest if anybody is trying to get a good understanding of how to structure python apps they do the same as I am. Reading and understanding other peoples code has allowed me to structure and write noticeably better code.. :) Open source stuff is great!