An Ollama bot made for E-mail. You can ask local models stuff via e-mail.
Find a file
Starstreak 4726e29373 revert 27623b14e2
revert Upload files to "/"
2026-08-19 08:48:37 +00:00
go.mod Update go.mod 2026-08-19 06:40:33 +00:00
LICENSE Initial commit 2026-08-19 05:09:50 +00:00
logo.avif Upload files to "/" 2026-08-19 05:38:16 +00:00
main.go revert 27623b14e2 2026-08-19 08:48:37 +00:00
main_test.go Upload files to "/" 2026-08-19 06:01:31 +00:00
README.md Update README.md 2026-08-19 08:30:18 +00:00

janeGPT

Logo

An Ollama bot made for E-mail. You can ask local models stuff via e-mail.

How

It works by scanning ~/Maildir to find new messages. Normally you give it its own account.

If it finds a request, it sends via "msmtp."

You will need to configure offlineimap and msmtp yourself before this tool will function.

Usage

./janeGPT --help
Usage of ./janeGPT:
  -admin string
        only accepted sender address unless -reply-anyone is enabled
  -archive string
        Archive Maildir path, relative to -maildir unless absolute (default "Archive")
  -from string
        optional From header; msmtp config may add it instead
  -interval duration
        scan interval; 0 means run once (default 1m0s)
  -maildir string
        Maildir root
  -max-body-bytes int
        maximum decoded prompt body size (default 2097152)
  -max-message-bytes int
        maximum incoming message file size (default 10485760)
  -max-page-bytes int
        maximum downloaded HTML page size (default 10485760)
  -max-web-context-bytes int
        maximum Org-mode webpage text included in the Ollama prompt (default 131072)
  -model string
        Ollama model (default "llama3.2")
  -msmtp string
        msmtp executable (default "msmtp")
  -msmtp-account string
        optional msmtp account name
  -offlineimap string
        offlineimap executable (default "offlineimap")
  -ollama-url string
        Ollama base URL (default "http://127.0.0.1:11434")
  -page-timeout duration
        timeout for fetching each URL (default 30s)
  -personality string
        system/personality prompt sent to Ollama
  -reply-anyone
        reply to any sender instead of only the configured admin
  -subject string
        static subject for replies (default "Ollama response")