# Outlook email files attached to emails sent to Discourse are stripped and not delivered

**URL:** <https://meta.discourse.org/t/outlook-email-files-attached-to-emails-sent-to-discourse-are-stripped-and-not-delivered/98703>\
**Category:** Product Support\
**Tags:** unsupported-install\
**Created:** [4 oktober 2018 om 09:34 UTC](https://meta.discourse.org/t/outlook-email-files-attached-to-emails-sent-to-discourse-are-stripped-and-not-delivered/98703 "2018-10-04T09:34:40Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Adam\_Glebowicz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adam_glebowicz/32/341486_2.png) [@Adam\_Glebowicz](https://meta.discourse.org/u/Adam_Glebowicz)\
**Post date:** [4 oktober 2018 om 09:34 UTC](https://meta.discourse.org/t/outlook-email-files-attached-to-emails-sent-to-discourse-are-stripped-and-not-delivered/98703/1 "2018-10-04T09:34:40Z")

</div>

Hello,

I’m posting this here as I could not find any discussion touching my exact issue.  
We’re using the email-in functionality heavily in our Discourse instance.  
All email attachments are delivered properly to new topics in Discourse except the Outlook email files.  
The file gets stripped somewhere on the way and doesn’t arrive to Discourse.  
The email attachments we send have a “.msg” extension and when they arrive to the inbox (from which Discourse fetches emails) they are converted to the “.eml” extension.

I checked all related Discourse settings:

- attachment content type blacklist - I cleaned all values
- attachment filename blacklist - I cleaned all values
- authorized extensions - it’s set to “\*”

I can see the same files are allowed to be attached to posts when added from Discourse GUI - they are only blocked via email. When sent from email, those attachments don’t even get added to Discourse’s uploads table in DB - they’re stripped somewhere on the way. I checked the email & upload processing files, like:

- lib/email/receiver.rb
- lib/email/processor.rb
- lib/email.rb
- lib/upload\_creator.rb
- lib/validators/upload\_validator.rb  
but I don’t see any place where this stripping could occur in any hardcoded way.

Is this a known bug/feature?  
Do you know which file/method could be the culprit for this behavior?

Regards,  
Adam

---

_[View the full topic](https://meta.discourse.org/t/outlook-email-files-attached-to-emails-sent-to-discourse-are-stripped-and-not-delivered/98703)._
