Skip to main content

Script renames all eml files in a directory using mail metadata

Project description

eml_rename project

Script renames all eml files in a directory using mail metadata

Idea

I needed this tool to classify and order my mail files at work.

I took this idea from an article of Armand Niculescu (August 20, 2014) at https://www.media-division.com/using-python-to-batch-rename-email-files/ , so thanks an I hope you like this code.

Features

  • Automatically renames all *.eml files in a directory, using email metadata.
  • Renamed files will have this format is 'YYYYMMDD HHMM [From] Subject'
  • If 'YYYYMMDD HHMM [From]' format is detected the script won't rename the file. With this feature user can change subject manually and the script won't overwrite it.
  • If you use --force parameter the script will overwrite all files even they have the 'YYYYMMDD HHMM [From]' format.
  • Length of the new name will have 140 character as maximum, although you can change it with the --length parameter
  • --save parameter renames files. If you don't use this parameter it will only pretend the result
  • It uses concurrency to make process faster

Changelog

0.3.0 (2023-04-17)

  • setup.py migrated to poetry
  • Fix bug with CEST time zones

0.2.0 (2022-11-12)

  • Now mail datetime uses local system time zone

0.1.0 (2022-11-06)

  • First version
  • Added main features

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

eml_rename-0.3.0.tar.gz (19.2 kB view details)

Uploaded Source

Built Distribution

eml_rename-0.3.0-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

Details for the file eml_rename-0.3.0.tar.gz.

File metadata

  • Download URL: eml_rename-0.3.0.tar.gz
  • Upload date:
  • Size: 19.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.10 Linux/6.2.1-gentoo

File hashes

Hashes for eml_rename-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4a03d72eeafea0e03b669e0ff09056c77868586b79cdf4170e36c78401dbb34a
MD5 a8acb4da98809fa3eb4e9af0ec598f72
BLAKE2b-256 3bd2e739f20c4b26bc323f2cd7b658ab91a42902377b821aa82ec1e469a6f4b1

See more details on using hashes here.

File details

Details for the file eml_rename-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: eml_rename-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.10 Linux/6.2.1-gentoo

File hashes

Hashes for eml_rename-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9f41ffacfa2c402d388f1e03d2d077a638023906ad0348aa66e95803b7cf8ffb
MD5 8c7870b565a5a2e3d8eab6d2e9af5943
BLAKE2b-256 3450caa2979213bbbb99e5d5ae8f26e185ffceecb6acca79427272eda1c31a33

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page