Re: [web2py] Email gateway

2011-01-12 Thread Alexandre Andrade
see http://web2py.com/book/default/chapter/06?search=upload+#Manual-Uploads 2011/1/10 Kenneth Lundström > Thank You Bruno and Alexandre for your answers. > > I think I have now downloaded the attachment but not written i

Re: [web2py] Email gateway

2011-01-10 Thread Kenneth Lundström
Thank You Bruno and Alexandre for your answers. I think I have now downloaded the attachment but not written it anywhere yet. Would it be possible to use the uploads function i web2py to save the file in uploads and update a table with info about the new file? Kenneth You should look to t

Re: [web2py] Email gateway

2011-01-10 Thread Alexandre Andrade
You can start from http://docs.python.org/library/poplib.html http://docs.python.org/library/imaplib.html http://docs.python.org/library/email.parser.html Atenciosamente Alexandre Andrade Hipercenter.com Classificados Gratuitos e Inteligentes 2011/1/10 Kenneth Lundström > A gateway that

Re: [web2py] Email gateway

2011-01-10 Thread Bruno Rocha
You should look to the built in modules: from poplib import * or from imaplib import * I used poplib to get raw text messages, but I never get attached files, but I guess it can do it. 2011/1/10 Kenneth Lundström > A gateway that works the other way. Instead of sending emails from web2py >

[web2py] Email gateway

2011-01-10 Thread Kenneth Lundström
A gateway that works the other way. Instead of sending emails from web2py I´d like to receive emails. I´m working on a app where you upload PDF:s containing receipts. Those PDF:s are usually scanned in a photocopier that emails the PDF to your email. Then you have to login in to my app and upl