#4381 (Uploading photos or other media files via email (postfix/inbox plugin))
by Luc Saffre · in Hosting (system administration) · assigned to Luc Saffre
Kokkuvõte
Children
Kommentaarid
- 1 aasta, 11 kuud ago by Luc Saffre about #4381 (Uploading photos or other media files via email (postfix/inbox plugin)) : TODO: when processing an inbox message, we don't want Lino to create 1 comment for each attached file + one comment for the body text. We want a single comment per incoming message.
- 1 aasta, 11 kuud ago by Luc Saffre about #4381 (Uploading photos or other media files via email (postfix/inbox plugin)) : I accidentally found a solution for #4851 : replace bleach by BeautifulSoup. Seems very easy!
- 1 aasta, 11 kuud ago by Luc Saffre about #4381 (Uploading photos or other media files via email (postfix/inbox plugin)) : The process_message() function in the inbox plugin is not yet very mature.
- 1 aasta, 11 kuud ago by Luc Saffre about #4381 (Uploading photos or other media files via email (postfix/inbox plugin)) : The comment that announces a new upload should *not* include the picture. The comment is the equivalent of a desktop notification. Popular IM clients also don't include the image in such cases.
- 1 aasta, 11 kuud ago by Luc Saffre about #4381 (Uploading photos or other media files via email (postfix/inbox plugin)) : En passant I repaired the search.SiteSearch table, it was broken after recent changes regarding the view modes.
- 2 aastat, 1 kuu ago by Luc Saffre about #4381 (Uploading photos or other media files via email (postfix/inbox plugin)) : This is now waiting for spawned ticket #5727 (Move example photo files from xl to book).
- 2 aastat, 1 kuu ago by Luc Saffre about #4381 (Uploading photos or other media files via email (postfix/inbox plugin)) : I am still struggling with where to store incoming files. Today I learned that I can't use Django's FileField (which mainly handles uploading and creating the file in a file system, which we don't need because inbox writes itself the attachment to the file system). I will probably put them into a ...
- 2 aastat, 1 kuu ago by Luc Saffre about #4381 (Uploading photos or other media files via email (postfix/inbox plugin)) (1 reply) : The inbox plugin now uses "plus" addressing to specify the owner or the parent of the comment to create. Every incoming email that makes it through the conditions will create a comment, and every attachment with a filename will create an upload entry.
- 2 aastat, 1 kuu ago by Luc Saffre about #4381 (Uploading photos or other media files via email (postfix/inbox plugin)) (1 reply) : GitLab (and others) use an extended recipient address delimited by a + char. Postfix considers only the part before the "+". I wonder whether this is a standard.
- 2 aastat, 1 kuu ago by Luc Saffre about #4381 (Uploading photos or other media files via email (postfix/inbox plugin)) : I started a collection of sample messages. TODO: How configurable/extensible do we want the parsing feature? How to find out which comment the user is replying to?
- 2 aastat, 1 kuu ago by Luc Saffre about #4381 (Uploading photos or other media files via email (postfix/inbox plugin)) : I think that we want the feature that users are able to reply to an email notifications by email. But our current implementation is needs a review: (1) we don't need the username because the sender's email address tells us the user (2) we don't nee a reply link in the notification body, (3) is reply...
- 2 aastat, 1 kuu ago by Luc Saffre about #4381 (Uploading photos or other media files via email (postfix/inbox plugin)) (1 reply) : We can just add a choicelist "IncomingMailboxes" to the uploads plugin. It doesn't need to be a database model because anyway only a server manager can add new mailboxes.
- 2 aastat, 1 kuu ago by Luc Saffre about #4381 (Uploading photos or other media files via email (postfix/inbox plugin)) : This morning I realized that we don't need the alias trick nor any script. We can simply define a normal user "photos" and let Lino walk over the mailbox of that user.
- 2 aastat, 1 kuu ago by Luc Saffre about #4381 (Uploading photos or other media files via email (postfix/inbox plugin)) : The /etc/aliases defines an alias:
photos: "|/home/photos/bin/photos.py"
and i will now play with the /home/photos/bin/photos.py script.