Skip to content

Instantly share code, notes, and snippets.

View aurelf's full-sized avatar

aurelf

View GitHub Profile
@aurelf
aurelf / netlink_restart_goimapnotify.c
Created July 15, 2025 22:07
goimapnotivy is not reconnecting after a network change, this code monitors new PI addresses and restarts goimapnotify
@aurelf
aurelf / IDLE with asyncio + imaplib + mbsyncrc
Created July 5, 2023 14:44 — forked from boris-arzur/IDLE with asyncio + imaplib + mbsyncrc
I use a mail stack based on mbsync & notmuch. I want to run mbsync on new mails. IDLE allows watching efficiently one folder in my mailbox. Async makes is easy to watch a few connections.
#!python3
import imaplib
import os
import asyncio
loop = asyncio.get_event_loop()
conf = [x.strip().split() for x in open('mbsyncrc')]