bug? Decorator munging attachments?
Posted: Thu Nov 20, 2008 7:43 pm
This is related to the problems described in this thread: viewtopic.php?f=52&t=87046
I have discovered, in trying to get around the problems mentioned in that thread by attaching the info that I was previously prepending as a Swift_MessagePart, that Decorator will happily replace values in attachments that are in its allowed MIME type. I don't know if that's a bug or what, but there should definitely be a way to switch it off if not.
To reproduce, attach a file as text/plain that contains a replacement pattern for Decorator, and the resulting message will have the pattern replaced.
Presumably Decorator should not be touching anything with Content-Disposition: attachment.
This is Swift 3.3.2 on PHP 5.2.6.
I have discovered, in trying to get around the problems mentioned in that thread by attaching the info that I was previously prepending as a Swift_MessagePart, that Decorator will happily replace values in attachments that are in its allowed MIME type. I don't know if that's a bug or what, but there should definitely be a way to switch it off if not.
To reproduce, attach a file as text/plain that contains a replacement pattern for Decorator, and the resulting message will have the pattern replaced.
Presumably Decorator should not be touching anything with Content-Disposition: attachment.
This is Swift 3.3.2 on PHP 5.2.6.