'Write data to the maildir file.
@type data: L{bytes}
@param data: Data to be written to the file.'

def write(self, data):

    try:
        self.oswrite(self.fh, data)
    except:
        self.fail()
