MailArchivePluginとの死闘(二章)

続いてHTMLメールの扱い。そのままだと読めない状態なので、HTML部分をせめて添付ファイルの状態にしておく。
実のところ前に触れたのと同じ処理部を一部コメントアウトすればOK

            for part in msg.walk():
                content_type = part.get_content_type()
                self.print_debug('Content-Type:'+content_type)
                file_counter = 1

                if content_type == 'multipart/mixed':
                    pass
                # elif content_type == 'text/html' and self.is_file(part) == False:
                #     body = part.get_payload(decode=1)