3 ms·
What do you use to fetch email? mbsync keeps messing up the UID of emails with gmail.
by msravi 2y ago
What do you use to fetch email? mbsync keeps messing up the UID of emails with gmail.
- jedisct1 2y agoJust Mutt's IMAP support.
- 0fflineuser 2y agoPersonnaly, I use https://gitlab.com/shackra/goimapnotify https://gitlab.com/shackra/goimapnotify , you can add a `~/.config/imapnotify/{{ youremailaddresshere }}.yaml` config file for each of your email addresses and enable and start it as a systemd service with `systemctl --user enable ---now goimapnotify@{{ youremailaddresshere }}.service` Here is and example of a config file for a gmail address : ``` host: imap.gmail.com port: 993 tls: true tlsOptions: rejectUnauthorized: false username: {{ youremailaddresshere }} password: '' passwordCMD: pass mw/{{ youremailaddresshere }} | head -n1 onNewMail: mailsync {{ youremailaddresshere }} | while read OUTPUT; do notify-send "" "$OUTPUT"; done onNewMailPost: '' onDeletedMail: '' onDeletedMailPost: '' boxes: - INBOX ```
- svilen_dobrev 2y ago> format indent it with 2+ spaces like this
- 0fflineuser 2y agoThanks!
- e12e 2y ago> tlsOptions: > rejectUnauthorized: false Means trust any cert?
- 0fflineuser 2y agoYes, thanks for pointing it out, it should be true. I took it from my config which I did a long time ago and I guess I didn't pay attention enough when doing it, my bad !
- kmarc 2y agoofflineimap does the job for me I use it with Gmail and owa (trough davmail)