Bug #8386
closedPost by email did not include attachment
0%
Description
Hi Ray--
I sent an email post to the CUNY DHI group. The post went through, but the attachment did not. Are attachments (PDF, in this case) supposed to be posted or are they routinely ignored?
Orignal message attached and here is the post -- https://commons.gc.cuny.edu/groups/digital-humanities-initiative/forum/topic/job-brooklyn-waterfront-research-center-project-coordinator/
Files
Updated by Raymond Hoh over 7 years ago
Hi Matt,
Attachments via RBE are currently not supported.
I can work on this for the next milestone if this is deemed important.
Updated by Matt Gold over 7 years ago
Hi Ray,
I do think it would be a cool feature to add. Let's add it to the next milestone if you feel like it is doable.
Updated by Boone Gorges over 7 years ago
- Target version set to Future release
Ray - please drop into a milestone once you've done some initial work on feasibility. Thank you!
Updated by Raymond Hoh over 7 years ago
- Target version changed from Future release to 1.12
This is going to require a bit of work.
Moving to 1.12.
Updated by Boone Gorges about 7 years ago
- Target version changed from 1.12 to 1.13
Hi Ray - I'm assuming that this won't happen for 1.12, but please feel free to move back if I'm wrong.
Updated by Raymond Hoh about 7 years ago
- Target version changed from 1.13 to 1.12
I'm getting very close for this one. I hope to have this done by Friday.
If I can't get it done by then, will bump to 1.13.
Updated by Raymond Hoh about 7 years ago
- Status changed from Assigned to Testing Required
Okay, I've added support to add attachments to group forum items when replying by email.
Related commits:
- https://github.com/cuny-academic-commons/cac/commit/ad3e1b7856c0d5fd6562074c25ded2feb9e20cd2
- https://github.com/cuny-academic-commons/cac/commit/1d41144b2b0a7ea4a8d22293fe6bfe1480e6df9a
It's a little late here, so I'll configure the development server tomorrow afternoon EDT. I'll update this thread with more info so we can get people to test this feature later next week.
Updated by Raymond Hoh about 7 years ago
This feature is ready to test on the development server.
To test:
1. Post a reply to a group forum thread to trigger an email notification.
2. Reply to that email from your email client and add an attachment.
3. If all goes well, you should see the attachments in the group forum thread as well as in group emails to anyone subscribed to the group.
I've tested with various image files and a PDF and this appears to be working.
Some caveats:
- We abide by the filesize restriction settings of the GD bbPress Attachments plugin. On the dev server, the max filesize is 3MB.
- We abide by the maximum number of attachments you can upload setting from GD bbPress Attachments. On the dev server, this is 4.
- You should be able to upload any file that you can upload into the WordPress Media library.
- Currently, no feedback email is sent back to the author if the attachment filesize is too big. This should probably be added, but I haven't done so yet.
Updated by Stephen Real about 7 years ago
- File email generated by post.png email generated by post.png added
- File Small document.docx Small document.docx added
- File RBE message with attachment.png RBE message with attachment.png added
My test with a small file did not work.
This is the link to the forum I tried to post to--
https://commons.gc.cuny.edu/groups/test-group-1761529915/forum/topic/testing-thread-for-rbe-attachments/
The post succeeded, but the attachment is missing.
I am including the small MS Word file I attached and screenshots of the RBE email that I sent plus the emai generated by the post.
Updated by Raymond Hoh about 7 years ago
Thanks for testing, Steve.
I tested with the same .docx file and it works for me. However, I used the Thunderbird email client for attaching. It looks like you are using GMail web. I'll do some further testing on GMail web to see if I can duplicate the problem.
Updated by Raymond Hoh about 7 years ago
- File gmail-web.png gmail-web.png added
I just tested attaching the .docx file in GMail web and I was able to see the attachment.
Steve, can I ask how you attached the file?
Updated by Stephen Real about 7 years ago
I used my Airmail email client. I will try with other email clients to see if I get different results.
Updated by Stephen Real about 7 years ago
At this moment, none of my RBE's from Outlook are going through--even those with no attachment.
Updated by Stephen Real about 7 years ago
- File Outlook RBE.png Outlook RBE.png added
OK. From Outlook, I am able to successfully send attachments RBE. However, the post is kind of funky including other (extraneous, imo) info from the message. See the screenshot. The same info appears on RBE posts from Outlook even when there is no attachment.
Updated by Raymond Hoh about 7 years ago
Hi Steve,
Glad to hear that the attachment works.
About the extraneous info, this is expected behavior and isn't due to the new attachment code. The extraneous info is due to the text just before the "--- Reply ABOVE THIS LINE to add a comment ---" line when you make a reply. This is created by certain email clients.
I've made some attempts at stripping this text in the past, but it's hard to accommodate for all email clients. In this case, the text block beginning with "From" and ending with the email's subject line is hard to do a match for.
Updated by Stephen Real about 7 years ago
I am getting very inconsistent results testing this. More details later.
Updated by Stephen Real about 7 years ago
I have gotten this to work with several clients, but it consistently fails when using Airmail desktop client with Exchange served email messages. The text of the reply posts successfully to the forum, but the attachment is lost. The Airmail client does work with Gmail served messages.
Updated by Boone Gorges about 7 years ago
- Status changed from Testing Required to Resolved