# Problem with Actionmailer/TMail & decoding Apple Mail Attachments

**URL:** <https://www.ruby-forum.com/t/problem-with-actionmailer-tmail-decoding-apple-mail-attachments/119732>\
**Category:** Rails\
**Created:** [November 9, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/problem-with-actionmailer-tmail-decoding-apple-mail-attachments/119732 "2007-11-09T18:02:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bertz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/45deac/32.png) [@bertz](https://www.ruby-forum.com/u/bertz)\
**Post date:** [November 9, 2007, 6:02pm UTC](https://www.ruby-forum.com/t/problem-with-actionmailer-tmail-decoding-apple-mail-attachments/119732/1 "2007-11-09T18:02:43Z")

</div>

Im having problems with Apple Mail and decoding attachments that are  
sent from it. I’m not 100% sure but I think it might have something to  
do with them being inline. I’m a bit stumped, I haven’t managed to  
find anything about this anywhere and just wondered if anyone had come  
up again this?

def receive(email)…

if email.has\_attachments?  
email.attachments.each do |attachment|…

the array of attachments is valid but is empty. This and looking at  
what gets chucked at the method is what lead me to believe that inline  
might be the problem.

Any ideas?

T
