diff options
Diffstat (limited to 'pop3d/extra.c')
-rw-r--r-- | pop3d/extra.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pop3d/extra.c b/pop3d/extra.c index 52bb220f5..461cd529e 100644 --- a/pop3d/extra.c +++ b/pop3d/extra.c @@ -338,3 +338,23 @@ pop3d_undelete_all () mu_attribute_unset_deleted (attr); } } + +int +set_xscript_level (int xlev) +{ + if (pop3d_transcript) + { + if (xlev != XSCRIPT_NORMAL) + { + mu_log_level_t n = xlev == XSCRIPT_SECURE ? + MU_DEBUG_TRACE6 : MU_DEBUG_TRACE7; + + if (mu_global_debug_level ("pop3") & MU_DEBUG_LEVEL_MASK (n)) + return XSCRIPT_NORMAL; + } + + if (mu_stream_ioctl (iostream, MU_IOCTL_LEVEL, &xlev) == 0) + return xlev; + } + return 0; +} |