On Tue, Jun 30, 2009 at 11:56 PM, Craig
Andrews<[email protected]> wrote:
> I just created this ticket: http://laconi.ca/trac/ticket/1668
>
> Since emails can have attachments, it makes sense to me that with posts by
> email, email attachments should be attachments to the new dent. I imagine
> that this would be very useful for mobile device users (cell phones
> mostly).
>
> I have 2 questions:
> 1) Does anyone see a case where this is a bad idea?

Many clients will send html as an attachment, so check that the
multi-part message actually doesn't just send the message in html.
If the mail server queries the laconica user table for the posting
email address at smtp time it won't hurt laconica. If any and all
messages hit php, who knows? Control recipients with a validity check
to the database.

> 2) I'm considering implementing this myself. Does anyone have any tips or
> helpful advice regarding attachments and/or the post by email system to
> help me with my implementation?

If message has attachment, avoid maildaemon.php. With another php
script, post 140 char message part, and store extracted payload of
multi-part message (uudecoded), confirmed as some type of media we
like (check another db table), in a directory similar to the avatar
directory, with a db flag.

Or you could store it in laconica db (postfix will already know about
the user table). Either way, a link to attachment grabs blob from db
or from filesystem.

Note also that 7-bit mime encoding is one of the most expensive and
inefficient ways to transmit data, not that it stops anyone...

>
> Thanks,
> ~Craig



Stefan

---
Stefan Caunter
m: 905 517 0702
o: 289 426 5011
Skype: stefan.caunter
http://nearsourceit.com/
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev

Reply via email to