canmove, Confirmed users, Bureaucrats and Sysops emeriti
3,628
edits
(→POP: POP fakeserver now exists) |
(Add information on debugging.) |
||
| Line 101: | Line 101: | ||
== Using fakeserver in QA testing == | == Using fakeserver in QA testing == | ||
== Debug output from fakeservers == | |||
It is possible to get the fakeservers to dump to the console the commands they have sent and received. | |||
To enable/disable debugging, call <code>setDebugLevel</code> on your <code>nsMailServer</code> instance with one of the following options: | |||
const fsDebugNone = 0; // Dump nothing | |||
const fsDebugRecv = 1; // Dump just the received commands | |||
const fsDebugRecvSend = 2; // Dump received + sent commands, no data | |||
const fsDebugAll = 3; // Dump everything | |||
Debugging is set to None by default. | |||
== Specific fakeserver guidelines == | == Specific fakeserver guidelines == | ||
=== POP === | === POP === | ||