files_mails.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:spamscope 作者: SpamScope 项目源码 文件源码
def ack(self, tup_id):
        """Acknowledge tup_id, that is the path_mail. """

        if os.path.exists(tup_id):
            if self._what == "remove":
                os.remove(tup_id)
            else:
                try:
                    shutil.move(tup_id, self._where)
                except shutil.Error:
                    os.remove(tup_id)

        try:
            # Remove from tail analyzed mail
            self._queue.task_done()
            self._queue_tail.remove(tup_id)
            self.log("Mails to process: {}".format(len(self._queue_tail)))
        except KeyError, e:
            self.raise_exception(e, tup_id)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号