From 9e6a0261f680886111cc536a01f271bf88bd954e Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 11 Dec 2020 00:39:43 -0500 Subject: Add -i to idle And rewrite the entire main flow as separate loops with labels. I think it's much clearer and, importantly, much less indented. --- bubger.1 | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'bubger.1') diff --git a/bubger.1 b/bubger.1 index d31f9b4..64007f0 100644 --- a/bubger.1 +++ b/bubger.1 @@ -1,4 +1,4 @@ -.Dd December 4, 2020 +.Dd December 10, 2020 .Dt BUBGER 1 .Os . @@ -8,7 +8,7 @@ . .Sh SYNOPSIS .Nm -.Op Fl qv +.Op Fl iqv .Op Fl C Ar path .Op Fl H Ar head .Op Fl S Ar search @@ -71,6 +71,16 @@ The default host is determined by SRV record lookup on the domain name of .Ar user . . +.It Fl i +Continually wait for +new messages in the mailbox +using IMAP IDLE. +Writes to +.Pa UIDNEXT +indicate that the +rendered archive +has been updated. +. .It Fl m Ar addr Set the mailto and reply Cc address for the archive. The default address is @@ -176,6 +186,15 @@ bubger -q list@example.org \e .Re .It .Rs +.%A B. Leiba +.%T IMAP4 IDLE command +.%I IETF +.%R RFC 2177 +.%D June 1997 +.%U https://tools.ietf.org/html/rfc2177 +.Re +.It +.Rs .%A E. Levinson .%T Content-ID and Message-ID Uniform Resource Locators .%I IETF -- cgit 1.4.1