nicm / fdm

fdm source code
269 stars 50 forks source link

Flag to keep mail unseen on the server for IMAP #135

Open danielfomin96 opened 1 year ago

danielfomin96 commented 1 year ago

This adds the optional flag 'unseen' to the account sections allowing these accounts to keep mail as unseen on the server if IMAP is used. This is helpful in the instance that fdm is used as a backup solution that should therefor not modify the state of mail on the server.

This is implemented by using the IMAP command BODY.PEEK[] instead of BODY[]. The consequence of this is that new mail can not be distinguished from old mail anymore.