https://github.com/gonejack/import-mail
This command line imports .eml files into IMAP account.
https://github.com/gonejack/import-mail
email imap import
Last synced: about 1 month ago
JSON representation
This command line imports .eml files into IMAP account.
- Host: GitHub
- URL: https://github.com/gonejack/import-mail
- Owner: gonejack
- License: mit
- Created: 2021-04-05T07:08:22.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-02-19T06:54:15.000Z (about 2 years ago)
- Last Synced: 2024-06-20T10:05:48.738Z (over 1 year ago)
- Topics: email, imap, import
- Language: Go
- Homepage:
- Size: 77.1 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# import-mail
This command line tool imports .eml files into INBOX of IMAP account.


[](LICENSE)
### Install
```shell
> go get github.com/gonejack/import-mail
```
### Usage
```shell
> import-mail --host imap.example.com --username username --password password *.eml
```
```
Flags:
-h, --help Show context-sensitive help.
--host=STRING Set IMAP host.
--port=993 Set IMAP port.
--username=STRING Set IMAP username.
--password=STRING Set IMAP password.
--remote-dir="INBOX" Set IMAP directory.
--size-limit="20M" Set size limit, mail exceed this limit will be skipped.
--about Show about.
```