Accept inline attachments, add variables in model templates