X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Ffmt_compile.c;h=0b739cf98a62e319492a9f96bdd721e754387b47;hb=deceb473fdbaf526c46ff696a8d7afc3a81e4d90;hp=239243fa53569e583d030714dff9352fbb241f9f;hpb=42340d0aa25e0d0ec9c53bc81a7c5bf14283fbd7;p=mmh diff --git a/sbr/fmt_compile.c b/sbr/fmt_compile.c index 239243f..0b739cf 100644 --- a/sbr/fmt_compile.c +++ b/sbr/fmt_compile.c @@ -78,6 +78,7 @@ extern struct mailname fmt_mnull; #define TF_NOP 8 /* like expr but no result */ #define TF_MYNAME 9 /* special - get current name of user */ #define TF_MYHOST 10 /* special - get "local" hostname */ +#define TF_LMBOX 11 /* special - get full local mailbox */ /* ftable->flags */ /* NB that TFL_PUTS is also used to decide whether the test @@ -158,6 +159,7 @@ static struct ftable functable[] = { { "me", TF_MYBOX, FT_LS_LIT, 0, TFL_PUTS }, { "myname", TF_MYNAME, FT_LS_LIT, 0, TFL_PUTS }, { "myhost", TF_MYHOST, FT_LS_LIT, 0, TFL_PUTS }, + { "localmbox", TF_LMBOX, FT_LS_LIT, 0, TFL_PUTS }, { "plus", TF_NUM, FT_LV_PLUS_L, 0, TFL_PUTN }, { "minus", TF_NUM, FT_LV_MINUS_L, 0, TFL_PUTN }, { "divide", TF_NUM, FT_LV_DIVIDE_L, 0, TFL_PUTN }, @@ -601,6 +603,10 @@ do_func(char *sp) LS(t->f_type, LocalName(0)); break; + case TF_LMBOX: + LS(t->f_type, getlocalmbox()); + break; + case TF_NOW: LV(t->f_type, time((time_t *) 0)); break;