Description
For attachments (and message logging), we use a special output stream that once a threshold is reached (64K by default), it starts saving to temporary files on the file system. it would probably be good to update the code and if "new FileOutputStream(...)" fails, it would just proceed keeping it in memory.