Recent HR personnel Little sister asked me to look for a Python gadget that crawled a mailbox in a Txt/word document when I first entered the job. Because it is the new period written, very humble, but can use.
I put the link here with the need for pickup:
https://github.com/chenyaoyu/custom_tools/tree/27fc4f8d19b27b0b636b1ec66df13d6932aec53f
The following is a description of the tool:
I. Preparing the tool environment (note: The path does not have Chinese or strange symbols):
1. Install "Python-2.7.7.msi"
2.32-bit system installs "pywin32-221.win32-py2.7", 64-bit system installs "pywin32-221.win-amd64-py2.7"
3. Right click on "My Computer", select "Properties", select "Advanced System Configuration", in the "System Properties" window into the "Advanced" column, check "Environment variables", in the "System variables" column to find the "Path", if any, select "Edit" and add the Python installation directory.
Two. Use of the tool: Copy the findmail.py to the directory where the document needs to be retrieved (no sub-directory traversal is done here), double-click to execute, and select command line execution. It will generate:
Mailbox Fetch Result: Result.txt
Scan trace log: Trace.log, if there is a missing file, there will be "cout:0" word.
Three. Exception Handling:
1. If the script execution is unsuccessful, first check if the directory named "Fm_temp" exists, delete it.
2. If the script execution is unsuccessful, check that the directory is in Chinese.
3. Forcibly close the WPS temp file that may be left with a "~" prefix and delete it.
4. If the script execution is unsuccessful, please find the program.
Python gadget that captures txt text/word email addresses in documents