Switch to unified view

a/src/bincimapmime/iodevice.cc b/src/bincimapmime/iodevice.cc
...
...
23
 *  Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
23
 *  Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
24
 *  --------------------------------------------------------------------
24
 *  --------------------------------------------------------------------
25
 */
25
 */
26
#include "iodevice.h"
26
#include "iodevice.h"
27
#include "convert.h" // BincStream
27
#include "convert.h" // BincStream
28
#include "session.h" // getEnv/hasEnv
28
//#include "session.h" // getEnv/hasEnv
29
29
30
#include <stdlib.h>
30
#include <stdlib.h>
31
#include <unistd.h>
31
#include <unistd.h>
32
32
33
using namespace ::std;
33
using namespace ::std;
...
...
304
}
304
}
305
305
306
//------------------------------------------------------------------------
306
//------------------------------------------------------------------------
307
void IODevice::enableProtocolDumping(void)
307
void IODevice::enableProtocolDumping(void)
308
{
308
{
309
#if 0
309
  BincStream ss;
310
  BincStream ss;
310
  ss << "/tmp/bincimap-dump-" << (int) time(0) << "-" 
311
  ss << "/tmp/bincimap-dump-" << (int) time(0) << "-" 
311
     << Session::getInstance().getIP() << "-XXXXXX";
312
     << Session::getInstance().getIP() << "-XXXXXX";
312
  char *safename = strdup(ss.str().c_str());
313
  char *safename = strdup(ss.str().c_str());
313
  dumpfd = mkstemp(safename);
314
  dumpfd = mkstemp(safename);
314
  if (dumpfd == -1)
315
  if (dumpfd == -1)
315
    dumpfd = 0;
316
    dumpfd = 0;
316
  delete safename;
317
  delete safename;
318
#endif
317
}
319
}