8000 Add support for listing a sample of emails found in each specified mailbox/folder · Issue #3 · atc0005/check-mail · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for listing a sample of emails found in each specified mailbox/folder #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
atc0005 opened this issue Jan 31, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@atc0005
Copy link
Owner
atc0005 commented Jan 31, 2020

This was originally going to be included in the initial v0.1.0 release, but I rolled it back once I realized it was outside my initial scope. I plan to keep much of the prototype branch around for reference after a v0.1.0 lands. I can then work it back in as a later release alongside a port of the list-emails.py script/project.

@atc0005 atc0005 added the enhancement New feature or request label Jan 31, 2020
@atc0005
Copy link
Owner Author
atc0005 commented Feb 1, 2020

https://godoc.org/github.com/emersion/go-imap#Envelope

Fields list.

type Envelope struct {
    // The message date.
    Date time.Time
    // The message subject.
    Subject string
    // The From header addresses.
    From []*Address
    // The message senders.
    Sender []*Address
    // The Reply-To header addresses.
    ReplyTo []*Address
    // The To header addresses.
    To  []*Address
    // The Cc header addresses.
    Cc  []*Address
    // The Bcc header addresses.
    Bcc []*Address
    // The In-Reply-To header. Contains the parent Message-Id.
    InReplyTo string
    // The Message-Id header.
    MessageId string
}

This can be useful for choosing what fields to fetch, but also for figuring out a way to uniquely identify an email to see if it has been within a folder longer than X minutes (separate feature request).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant
0