gucmail
Your GUC mailbox, in a terminal. Read, write, search, schedule and back up your mail without opening Outlook on the web. Calendar, contacts and tasks come along too. Everything works from the keyboard, and everything is scriptable.
It talks directly to the GUC Exchange server through Exchange Web Services (EWS), the same interface Outlook uses. There's nothing to install on the server and no third-party cloud in between. Your password stays in Windows Credential Manager and your mail stays on your machine. gucmail fetches headers in small pages, loads a message only when you open it, and keeps a local cache and search index you can wipe at any time.
It was made for GUC, but nothing in it is GUC-only. It works with any Exchange server that
offers EWS with a username and password, which covers most on-premises Exchange 2013–2019
installations. Point it at yours with gucmail config set endpoint https://mail.example.edu/EWS/Exchange.asmx.
Microsoft 365 isn't supported, because it only allows OAuth sign-in.
This is an independent project. I am not affiliated with the German University in Cairo or Microsoft.
Install
You need Python 3.11 or newer. pipx installs gucmail in its own
environment and puts the gucmail command on your PATH.
py -m pip install --user pipx
py -m pipx ensurepath # then open a new terminal
pipx install "gucmail[desktop]"
gucmail # opens the app and asks you to sign in
The first time, gucmail shows one sign-in screen with your GUC email, your password and
Test & save. It checks them with the server and saves the password only if they work.
A short tour follows. gucmail login does the same from the terminal.
Update with pipx upgrade gucmail. Run gucmail headless stop first if mail alerts are on. Plain pip install "gucmail[desktop]" works too.
Leave out [desktop] if you don't want Windows notifications.
Get around
Arrows move. Enter opens. Tab jumps between panes. c composes, r replies, / searches and ? shows every shortcut. Mouse and scroll wheel work too.
d deletes, e archives, ! flags and s saves attachments. None of them ask first, and Ctrl+Z undoes the last one.
Ctrl+K opens the command palette. Type what you want in plain words.
It shows what it understood and asks before it changes anything. It never guesses at deleting.
Write
Reply, reply-all and forward. Cc and Bcc, attachments, signatures and importance. Recipients autocomplete from your contacts and recent mail. It warns you about an empty subject, an attachment you mentioned but forgot, or a typo in an address.
Drafts save themselves. If your laptop dies mid-sentence, the draft is waiting next time. Undo Send holds a message for a few seconds before it leaves.
Send later
gucmail send --to laila.samir@guc.edu.eg --subject "Lab 6" --body-file report.txt --at "Monday 8:30"
gucmail send --to nada.mostafa@student.guc.edu.eg --subject "Reminder" --body "Submit thesis" --in "2 hours"
gucmail scheduled list
It shows the exact time and time zone before queuing, refuses ambiguous dates like 03/04,
and never sends anything twice. Messages go out from your PC, so it needs to be on.
Turning on notifications also sends scheduled mail in the background.
Calendar, contacts, tasks
Day, week, month and agenda views. Create events, accept or decline meetings, find a free
slot, catch clashes, and import or export .ics files.
| Contacts | Tasks |
|---|---|
Contacts find duplicates and merge them, and import and export vCards. Tasks have due dates, progress and repeats.
Search
gucmail search --sender "dr. mona" --after 2026-10-01 --has-attachments
gucmail search "rubric" --all-folders
gucmail advanced index build --include-bodies # build a local full-text index once…
gucmail search --local --fuzzy "gradng rubrik" # …then search it offline, typos and all
Saved searches, per-folder or whole-mailbox scope, and a filter box in every view.
Notifications, even with the terminal closed
In the app, press Ctrl+K and choose Turn on notifications. Or from the command line
gucmail notifications on
That one step sets everything up. It registers gucmail with Windows, starts a small background task that checks your Inbox about once a minute, and sends a test so you can see it works. The task has no window, starts again when you sign in, and also sends your scheduled messages on time. Clicking a notification opens the message.
gucmail notifications status # is it on, and is the background task running?
gucmail notifications off # stop notifications (scheduled mail still goes out)
Rules, quiet hours and webhooks are optional, under More in notification settings. Details.
Backups you can read without a connection
gucmail backup create --encrypt # full backup, password-protected
gucmail backup incremental # just what changed since
gucmail backup browse <id> # read it offline, even with Wi-Fi off
gucmail tui --offline # or browse cached mail in the app
Backups never mark anything read and never change the server. Restores are planned first, with exact counts, and you confirm before anything is written.
Make it yours
More than 600 themes with live preview, and your own colours or logo. Choose your columns, layouts and keyboard shortcuts in Settings, which you can search.
Scripts and automation
Every command has --json (one envelope) or --ndjson (one record per line), stable exit
codes, --yes for confirmations and --dry-run for anything that changes mail.
gucmail --json messages list --folder inbox --limit 5
gucmail --ndjson search --unread | ConvertFrom-Json | ? type -eq item | % { $_.data.subject }
gucmail --yes messages move msg_12 msg_13 --to "Courses/Distributed Systems"
gucmail quota # how full your mailbox is
gucmail doctor # checks everything, offline unless you ask
gucmail --help lists the everyday commands. gucmail advanced --help has the rest, such as
rules, automatic replies, insights, clustering and an EWS capability browser.
Good to know
- Some features depend on what GUC lets your account do, such as the directory, free/busy, rules, delegates and quota limits. When the server says no, gucmail tells you so and never invents a value.
- It's tested on Windows 11 and Linux. macOS should work but isn't tested yet.
- More in the user guide, all commands, troubleshooting and privacy and security.
Licence
MIT. See LICENSE.
Metadata
Release files for gucmail 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gucmail-1.5.0.tar.gz | 3.6 MB | Without provenance | Details for gucmail-1.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gucmail-1.5.0-py3-none-any.whl | Python 3 | none | any | Details for gucmail-1.5.0-py3-none-any.whl |
Total release size: 5.2 MB
Release files / gucmail-1.5.0.tar.gz
| Download URL | gucmail-1.5.0.tar.gz |
|---|---|
| Size | 3.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f3f9d2a058bf2080e7b5b7dab1f988735cf26485eb4e2a5ca0c02c622ab72227
|
|
BLAKE2b-256 checksum How to use checksums |
6098e537d146b511af85fa0da15756a120e6ae62b95b8ba278ef9da13419524b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.7
|
Release files / gucmail-1.5.0-py3-none-any.whl
| Download URL | gucmail-1.5.0-py3-none-any.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f0848e047a08a146df7f3bb035d64fc1d73a63ef957b78c266a6e835fd64a0a
|
|
BLAKE2b-256 checksum How to use checksums |
bfb8f0d5289915d5649a0d2be8544eac6f1c5a0d136b76575079e83b947249c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.7
|
Security for gucmail 1.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.