Logo Search packages:      
Sourcecode: mailfront version File versions  Download package

plugin-require-auth.c

#include "mailfront.h"

static RESPONSE(mustauth, 530, "5.7.1 You must authenticate first.");

static const response* sender(str* s)
{
  if (!session_getnum("authenticated", 0)
      && session_getenv("RELAYCLIENT") == 0)
    return &resp_mustauth;
  return 0;
  (void)s;
}

struct plugin plugin = {
  .version = PLUGIN_VERSION,
  .sender = sender,
};

Generated by  Doxygen 1.6.0   Back to index