projects
/
app.mailtrimmer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
db5b28b
)
src/strip.vala
author
Alan Knowles
<alan@roojs.com>
Mon, 7 May 2018 05:32:35 +0000
(13:32 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 7 May 2018 05:32:35 +0000
(13:32 +0800)
src/strip.vala
patch
|
blob
|
history
diff --git
a/src/strip.vala
b/src/strip.vala
index
23d3e01
..
4717940
100644
(file)
--- a/
src/strip.vala
+++ b/
src/strip.vala
@@
-82,6
+82,9
@@
public class StripApplication : GLib.Application {
public static int opt_limit = -1;
public static int opt_limit = -1;
+ public static int opt_min_age = 6;
+
+
public static bool opt_is_extracting = false;
public static bool opt_is_replacing = false;
public static bool opt_scan_imap = false;
public static bool opt_is_extracting = false;
public static bool opt_is_replacing = false;
public static bool opt_scan_imap = false;
@@
-115,6
+118,7
@@
public class StripApplication : GLib.Application {
{ "dump", 0, 0, OptionArg.NONE, ref opt_dump, "Print the replaced mail contents to stdout", null },
{ "limit", 0, 0, OptionArg.INT, ref opt_limit, "stop after X number of messages with attachments have been processed", null },
{ "dump", 0, 0, OptionArg.NONE, ref opt_dump, "Print the replaced mail contents to stdout", null },
{ "limit", 0, 0, OptionArg.INT, ref opt_limit, "stop after X number of messages with attachments have been processed", null },
+ { "min-age", 0, 0, OptionArg.INT, ref opt_limit, "minimum age of messages (default is 6 months)", null },
{ "scan-imap", 0, 0, OptionArg.NONE, ref opt_scan_imap, "scan an imap tree", null },
{ "scan-mailfort", 0, 0, OptionArg.NONE, ref opt_scan_mailfort, "scan a mailfort tree", null },
{ "scan-imap", 0, 0, OptionArg.NONE, ref opt_scan_imap, "scan an imap tree", null },
{ "scan-mailfort", 0, 0, OptionArg.NONE, ref opt_scan_mailfort, "scan a mailfort tree", null },