fetching an email from a turbogears applicaion

31 views
Skip to first unread message

alonn

unread,
Oct 18, 2012, 7:22:13 AM10/18/12
to turbo...@googlegroups.com
Basically I need to fetch an email with an attachment, get the attachment and process it
turbogears isn't the mail server it should just be able to query the mailbox, get the email and fethc the attachment from the email

the prefered mail server would be microsoft exchange, but if needed I could set a specific gmail acount for this.

any clues how I should address that?

thanks!

Robert Forkel

unread,
Oct 18, 2012, 7:33:47 AM10/18/12
to turbo...@googlegroups.com
you may want to look into python's email libraries, like email, poplib
and imaplib [1].

[1] http://docs.python.org/library/
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/turbogears/-/R2Ij-i_XLeoJ.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to
> turbogears+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/turbogears?hl=en.

Sam

unread,
Oct 22, 2012, 5:04:34 AM10/22/12
to turbo...@googlegroups.com
Robert's advice is perfect.

In addition, if you're going to be doing a lot with mail, Lamson might be worth taking a look at: http://lamsonproject.org/
Reply all
Reply to author
Forward
0 new messages