Framework for transparent handling of attachments, work in progress.