Skip to content

Conversation

@ElijahAhianyo
Copy link
Contributor

This is a continuation of #250

trkelly23 and others added 27 commits March 15, 2025 14:12
Initial commit of email.rs using lettre
Initial commit of Add email support using lettre crate
Added the message printout if debug mode is enabled
Added a test and deferred the extra headers and attachment features.
Added tests for config and send_email(ignore).
@github-actions github-actions bot added the C-lib Crate: cot (main library crate) label Dec 1, 2025
@ElijahAhianyo ElijahAhianyo requested a review from m4tx December 31, 2025 15:48
Copy link
Member

@m4tx m4tx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the last batch of comments - overall, it's really, really good, but I still have a few concerns. Nothing fundamental, mostly nitpicks!

cot/src/email.rs Outdated
type Error = EmailMessageError;

fn try_from(message: EmailMessage) -> Result<Self, Self::Error> {
let from_mailbox = message
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why can't we just add server_email: Option<String> to EmailConfig? What do you mean "there's no nice way to do that"?

@ElijahAhianyo ElijahAhianyo requested a review from m4tx January 6, 2026 11:51
Copy link
Member

@seqre seqre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work, last few changes and I'll gladly approve!

@ElijahAhianyo ElijahAhianyo requested a review from seqre January 6, 2026 18:50
Copy link
Member

@seqre seqre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nitpick, but otherwise it LGTM!

CI: true
SCCACHE_GHA_ENABLED: true
RUSTC_WRAPPER: sccache
RUST_NIGHTLY_VERSION: nightly-2025-11-11
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: please add comment why we pinned the nigthly

Copy link
Member

@seqre seqre Jan 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ElijahAhianyo, was it specific CI breakage you mean or general too many breakages so you pinned it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember there were a number of gneral breakages but the one that prompted pinning the nightly version was this linker error here: https://github.com/cot-rs/cot/actions/runs/20366889103/job/58529733940?pr=419.

I could also try to bump it to today to see if everything works fine

@ElijahAhianyo ElijahAhianyo force-pushed the elijah/trkelly23-fix-email branch from 594807a to 3936515 Compare January 7, 2026 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-ci Area: CI (Continuous Integration) C-cli Crate: cot-cli (issues and Pull Requests related to Cot CLI) C-lib Crate: cot (main library crate)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants