Defect #10721
Loss of attachments while fetching emails from IMAP (GMail)
Status: | New | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | Email receiving | |||
Target version: | Candidate for next major release | |||
Resolution: | Affected version: | 1.3.2 |
Description
When new issue is created by email fetched from gmail via redmine:email:receive_imap, attachments are ignored.
Steps to reproduce:
- send email with attachment to redmine GMail account.
- execute rake redmine:email:receive_imap RAILS_ENV=production
- go to issue list of the project
Expected: new issue was created with file attached to it. Mail in GMail box was cleared.
In fact: new issue is created but without attachments. Message is left in mailbox.
Related issues
History
#1
Updated by Максим Лазарев over 10 years ago
have the same problem, tell me, please, what's the problem?
#2
Updated by Gregory Engels over 10 years ago
see also related issue #11499 (with a patch)
#3
Updated by Steffen Zieger almost 10 years ago
- File redmine_attachments_save.diff
added
The following patch is working for me on Redmine 2.3.0
#4
Updated by Sebastian Paluch about 7 years ago
This is still needed for 3.2.0.
This is very minor change. Can this be addressed soon?
#5
Updated by Moritz D almost 7 years ago
I'm using 3.2.0
same problem as issue author
"new issue is created but without attachments. Message is marked read and left in mailbox"
applying redmine_attachments_save.diff did not help. should it resolve the problem? is noone else using email attachments?
any suggestions?
thank you in advance
#6
Updated by Prabhash Mishra over 6 years ago
I too am having the same problem on Redmine 3.2.3
IMAP and Gmail
Ticket gets created but attachment is ignored.
The patch does not work either.
Does anyone have a fix on this? Please help...
Thanks & Regards,
Prabhash
#7
Updated by Akhilesh Sabharwal over 6 years ago
Facing the same issue on Redmine 3.3.0.
Facing the same issue. All functions of retrieving mail working, except for attachments. On IMAP / POP3
Could this be a function of the IMAP server?
In which case will try an alternative.
Thanks,
Akhilesh
#8
Updated by Alexandr Meshkov over 6 years ago
It works on Redmine 3.3.0, if you run the command via cron
#9
Updated by Janeks Kamerovskis over 5 years ago
I have the same problem with:
Environment:
Redmine version 3.3.3.stable
Ruby version 2.3.1-p112 (2016-04-26) [x86_64-linux-gnu]
Rails version 4.2.7.1
Environment production
Database adapter Mysql2
Where could I look / dig to find the solution?
brgds
Janeks
#10
Updated by Nicolas Silberzahn almost 5 years ago
Please fix this! My Incomming emails from Evernote contains only inline images (hand writing)
#11
Updated by Yuichi HARADA over 2 years ago
- File 10721-fixed.patch
added
- The process to add the attachments is performed after
issue#save!
- Attachments are added directly to
issue#attachments
, but originally it must go through#saved_attachments
defined in acts_as_attachable.
I created a patch.
#12
Updated by Go MAEDA over 2 years ago
- Target version set to Candidate for next major release
#13
Updated by Wicky Hu almost 2 years ago
I tested 10721-fixed.path in latest 4.2.0, it seems only working for one attachment.
If there are two or more attachments in email, then only the first attachment shown in notification mail.
I guess the reason is new issue email is created when first attachment added and issue saved, after that, remaining attachments added and saved.
#14
Updated by anju dhiman almost 2 years ago
We also want to get all attachments from email when any ticket is creating.
Can you guys help us?
#15
Updated by Nicolas Silberzahn almost 2 years ago
+1 (3 years after!)
#16
Updated by anju dhiman almost 2 years ago
guys is there any possibility to have this feature?
#17
Updated by Wicky Hu almost 2 years ago
I think to change the add_attachments method could solve the issue, basically to change << to build, not yet fully tested, but seems working.
# obj.attachments << Attachment.create(:container => obj, # :file => attachment.body.decoded, # :filename => attachment.filename, # :author => user, # :content_type => attachment.mime_type) obj.attachments.build(:container => obj, :file => attachment.body.decoded, :filename => attachment.filename, :author => user, :content_type => attachment.mime_type)