summaryrefslogtreecommitdiffstats
path: root/maildir/maildirkwtest2.c
diff options
context:
space:
mode:
Diffstat (limited to 'maildir/maildirkwtest2.c')
-rw-r--r--maildir/maildirkwtest2.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/maildir/maildirkwtest2.c b/maildir/maildirkwtest2.c
new file mode 100644
index 0000000..9a1dd7d
--- /dev/null
+++ b/maildir/maildirkwtest2.c
@@ -0,0 +1,25 @@
+#define MAILDIRKW_MOCKTIME() \
+ do { \
+ const char *p=getenv("MOCKTIME"); \
+ if (p) \
+ t=atoi(p); \
+ } while (0)
+
+#define MAILDIRKW_MOCKTIME2() \
+ do { \
+ const char *eee=getenv("MOCKTIME"); \
+ \
+ if (eee && strcmp(eee, "1000") == 0 && \
+ strcmp(p, "004") == 0) \
+ { \
+ printf("Faked stale filename\n"); \
+ fflush(stdout); \
+ p=NULL; \
+ \
+ } \
+ } while(0); \
+ \
+ i=NULL; \
+ if (p)
+
+#include "maildirkeywords2.c"