diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-05-23 10:28:12 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-05-23 10:28:12 +0300 |
commit | b7fb81d841a26476da18349200dccce86c2de337 (patch) | |
tree | 9d539656ff304742a719be6b755c60b7dc18b3f8 /doc/mailfromd.texi | |
parent | d265dac0bf3d54ac0ef44a0c0b5d4f143f9e491d (diff) | |
download | mailfromd-b7fb81d841a26476da18349200dccce86c2de337.tar.gz mailfromd-b7fb81d841a26476da18349200dccce86c2de337.tar.bz2 |
Add new debugging function.
* mfd/bi_mudebug.m4: New file.
* mfd/Makefile.am (M4_FILES): Add bi_mudebug.m4
* NEWS, doc/mailfromd.texi: Update.
Diffstat (limited to 'doc/mailfromd.texi')
-rw-r--r-- | doc/mailfromd.texi | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/mailfromd.texi b/doc/mailfromd.texi index fe650309..4bbbea9b 100644 --- a/doc/mailfromd.texi +++ b/doc/mailfromd.texi @@ -234,6 +234,7 @@ Built-in and Library Functions * Current Message Functions:: * Mailbox functions:: * Message functions:: +* Debugging functions:: * Quarantine functions:: * Polling functions:: * Internet address manipulation functions:: @@ -5870,6 +5871,7 @@ in version @value{VERSION}. * Current Message Functions:: * Mailbox functions:: * Message functions:: +* Debugging functions:: * Quarantine functions:: * Polling functions:: * Internet address manipulation functions:: @@ -6877,6 +6879,30 @@ contents again. Rewind stream associated with message referred to by descriptor @var{nmsg}. @end deftypefn +@node Debugging functions +@subsubsection Debugging functions + +@deftypefn {Built-in Function} void mailutils_set_debug_level (string level) +Set debug level for the GNU Mailutils library. The @var{level} +argument is a valid debugging level, as described in @ref{Debug +Statement, debugging level, Debug Statement, mailutils, GNU Mailutils +Manual}. + +For example: + +@smallexample + mailutils_set_debug_level("mailbox=trace7") +@end smallexample + +This function always succeeds. If @var{level} is not a valid +Mailutils debugging level, the function issues appropriate diagnostics +using currently established logging channel and returns normally. +@end deftypefn + +This function is useful when debugging @acronym{MFL} scripts that use +mailbox or message functions, described in the previous two +subsections. + @node Quarantine functions @subsubsection Quarantine Functions |