summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--archive.c12
-rw-r--r--bubger.112
2 files changed, 4 insertions, 20 deletions
diff --git a/archive.c b/archive.c
index 3c5f12b..575bc56 100644
--- a/archive.c
+++ b/archive.c
@@ -82,7 +82,6 @@ static void createDirs(void) {
 
 int main(int argc, char *argv[]) {
 	int exitStatus = 0;
-	bool truncate = false;
 
 	const char *host = NULL;
 	const char *port = "imaps";
@@ -96,7 +95,7 @@ int main(int argc, char *argv[]) {
 
 	for (
 		int opt;
-		0 < (opt = getopt(argc, argv, "A:C:H:S:T:a:h:im:p:qs:tu:vw:y:"));
+		0 < (opt = getopt(argc, argv, "A:C:H:S:T:a:h:im:p:qs:u:vw:y:"));
 	) {
 		switch (opt) {
 			break; case 'A': concatIndexEntries = strtoul(optarg, NULL, 10);
@@ -114,7 +113,6 @@ int main(int argc, char *argv[]) {
 			break; case 'p': port = optarg;
 			break; case 'q': quiet = true; exitStatus = EXIT_FAILURE;
 			break; case 's': baseSubscribe = optarg;
-			break; case 't': truncate = true;
 			break; case 'u': baseURL = optarg;
 			break; case 'v': imapVerbose = true;
 			break; case 'w': passPath = optarg;
@@ -181,13 +179,7 @@ int main(int argc, char *argv[]) {
 	for (; resp = respOk(imapResp(&imap)), resp.tag != login; respFree(resp));
 	respFree(resp);
 
-examine:
-	if (truncate) {
-		int error = ftruncate(STDOUT_FILENO, 0);
-		if (error) warn("ftruncate");
-		rewind(stdout);
-	}
-
+examine:;
 	uint32_t uidNext = 0;
 	uint32_t uidValidity = 0;
 	enum Atom examine = atom("examine");
diff --git a/bubger.1 b/bubger.1
index 6f0c4d7..a456c19 100644
--- a/bubger.1
+++ b/bubger.1
@@ -1,4 +1,4 @@
-.Dd June  9, 2021
+.Dd June 11, 2021
 .Dt BUBGER 1
 .Os
 .
@@ -8,7 +8,7 @@
 .
 .Sh SYNOPSIS
 .Nm
-.Op Fl iqtv
+.Op Fl iqv
 .Op Fl A Ar entries
 .Op Fl C Ar path
 .Op Fl H Ar head
@@ -122,14 +122,6 @@ link of
 .Ar url
 to the index page navigation.
 .
-.It Fl t
-Attempt to truncate standard output
-before writing the list of updated files.
-With
-.Fl i ,
-truncate before each time
-files are updated.
-.
 .It Fl u Ar base
 Set the base URL for links in Atom feeds.
 .