jonhoo / jonhoo/rust-imap

Delay in receiving emails with IDLE in Rust compared to Node.js

Open
#307 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
583
Forks
94
PR merge metrics
No merged PRs in 30d

Description

I’m rewriting a Node.js program in Rust that listens for new emails using the IMAP IDLE command and reacts to incoming messages. However, after implementing the same behavior in Rust, I noticed a significant delay in email reception compared to the Node.js version.

The Node.js application receives emails almost instantly, while the Rust implementation lags behind by 20-30 seconds. Both applications:
- Use the same email account for sending and receiving
- Utilize the IDLE mechanism to wait for new emails
- Are tested under the same conditions (same mail server, same network)

I'm using rust-imap 3.0.0-alpha.15

Any insights or similar experiences would be appreciated!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.