Skip to main content

CLI tool that monitors Webex mentions and DMs, sends email summaries via Nylas

Project description

Webex Email Reminders

GitHub

CLI tool that checks Webex for mentions and direct messages from the last hour and sends an email summary via Nylas.

Prerequisites

  • Python 3.9+
  • Nylas CLI: brew install nylas/nylas-cli/nylas

Setup

pip install webex-email-reminders

Or install from source:

pip install -r requirements.txt

Environment Variables

export WEBEX_JWT="your-webex-personal-access-token"
export NYLAS_API_KEY="your-nylas-api-key"
export NYLAS_GRANT_ID="your-nylas-grant-id"

Usage

# Send summary email
webex-email-reminders --to your@email.com

# Send to multiple recipients from a file
webex-email-reminders --to-list recipients.txt

# Both single and list
webex-email-reminders --to your@email.com --to-list recipients.txt

# Custom time window
webex-email-reminders --to your@email.com --hours 2

# Filter DMs by contacts file
webex-email-reminders --to your@email.com --contacts contacts.txt

# Dry run (prints email content without sending)
webex-email-reminders --to your@email.com --dry-run

# Check version
webex-email-reminders --version

Options

Flag Description
--to Email address to send summary to
--to-list Text file with email addresses to send to (one per line)
--hours Look back period in hours (default: 1)
--minutes Look back period in minutes (overrides --hours)
--contacts Text file with email addresses to filter DMs
--include-all Include all messages in active spaces, not just mentions
--include-my-messages Include your own messages in DMs (excluded by default)
--dry-run Print email content to stdout without sending
--version Show version number

Local Development

python3 webex_reminders.py --to-list recipients.txt --hours 3

Contacts File (optional)

One email per line to filter which DMs to include:

person1@company.com
person2@company.com

Version Management

When releasing a new version, update the version in these files:

  1. pyproject.tomlversion = "X.Y.Z"
  2. webex_reminders.pyversion="%(prog)s X.Y.Z"

Then tag and deploy:

git tag vX.Y.Z
git push origin vX.Y.Z
./deploy.sh

Deploy

./deploy.sh

Crontab

Run hourly during work hours (8am–6pm EST, Mon–Fri):

0 8-18 * * 1-5 /path/to/your/reminders.sh

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

webex_email_reminders-0.5.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webex_email_reminders-0.5.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file webex_email_reminders-0.5.0.tar.gz.

File metadata

  • Download URL: webex_email_reminders-0.5.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for webex_email_reminders-0.5.0.tar.gz
Algorithm Hash digest
SHA256 e15623200125a68f967574b68f91110f92ca538f346b1ea3dedad9e8518b16f3
MD5 c7cd3e7540eb01f2c8a3bed14ce744f0
BLAKE2b-256 2ae63f50ce68cdad9b21da01fbd999b3faa428797234ae9a2281ef97f8b042c2

See more details on using hashes here.

File details

Details for the file webex_email_reminders-0.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for webex_email_reminders-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a9533ef433a834b8a925e23e6781ed68f51bbfddc211e98466a83de6a8eb5951
MD5 35bb97248382ab79ddcaab4ddb59b134
BLAKE2b-256 2d0d0e518b121376e53512ef5d78583564d260530aa399c7ef37b8d662cb198b

See more details on using hashes here.

Supported by

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