>
> OK, I have uploaded my code:
> https://code.google.com/p/web2py/issues/detail?id=1707
>

When you add the binary file data as read from the stream to the attachment 
payload without base64 encoding, you'll get the EOF imaplib error.

I'll upadate the web2pyslices recipe to do the payload encoding before 
calling insert (my bad). Note that the current imapadapter will not add the 
transfer encoding to the part header when setting "base64" encoding or 
alike (it will only set the part charset), and will probably raise issues 
on retrieval, so it should be fixed also (google issue 1714).

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to