csup - Crystal rewrite of sup email client

Polling
Login

Polling

Csup polls for new messages differently from how Sup polls.

Sup polls for new message in a background thread, i.e. asynchronously to the main thread that awaits user commands.

Csup does not poll asynchronously. It polls in two situations:

poll_interval: 300

When Csup polls, it first calls the user's before-poll hook. This hook can fetch mail using fetchmail or any other mail retrieval program. The mail must be stored in a maildir visible to notmuch.

After Csup calls the before-poll hook, it runs notmuch new to tell notmuch to read and index any new messages.

Finally, Csup will tell all open thread index modes to incorporate any relevant new threads.

Loading new threads

By default, thread index modes in Csup load only enough threads to fill a screen. Csup will add more threads to the botton of a thread list if you attempt to move the cursor past the end of the buffer.

This behavior differs from Sup, which would load new threads asynchronously as the user moved the cursor to within a half screen of the end of the buffer. Csup does not load new threads asynchronously.