'Mark a message for deletion.
Move the message to the I{.Trash/} subfolder so it can be undeleted
by an administrator.
@type i: L{int}
@param i: The 0-based index of a message.
@raise IndexError: When the index does not correspond to a message in
the mailbox.'

def deleteMessage(self, i):

    trashFile = os.path.join(self.path, '.Trash', 'cur', os.path.basename(self.list[i]))
    os.rename(self.list[i], trashFile)
    self.deleted[self.list[i]] = trashFile
    self.list[i] = 0
