mantisを案件管理に使用しています。 メールで受信した案件を手動でコピーし、mantisに登録しているのですが、 こういった面倒くさいことは自動でやりましょう。 ということで、受信したメールの内容をmantisに登録する Pythonプログラムを作って見ました。 まずは、PythonでIMAPのメールを読むプログラムです。 import imaplib,email,email.Header,email.Utils import os import time import string import re import base64 import japanesenkf OUTPUT_ENCODING = 'utf-8' INPUT_ENCODING = 'ISO-2022-JP' TMP_DIR = 'attach' #メールのタイトル等の文字列をデコード def imap4_d
![メールの内容を Python で mantis に自動登録 その1 | fujishinko 雑記帳](https://cdn-ak-scissors.b.st-hatena.com/image/square/de61a1148fd3a789a9a2630509e4ba25b465e7e9/height=288;version=1;width=512/https%3A%2F%2Fpds.exblog.jp%2Flogo%2F1%2F200406%2F14%2F18%2Fa002791820080213011450.jpg)