Skip to content

Commit

Permalink
Update for bglibs v2
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceg committed Jan 31, 2015
1 parent 8e7e452 commit 9429559
Show file tree
Hide file tree
Showing 35 changed files with 99 additions and 97 deletions.
2 changes: 2 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- Updated for bglibs v2
-------------------------------------------------------------------------------
Changes in version 2.10

- Added new "rbl" plugin, to block messages from IPs in an RBL.
Expand Down
4 changes: 2 additions & 2 deletions README.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Development versions of @PACKAGE@ are available at:

Requirements:

- bglibs version 1.101
- cvm version 0.82
- bglibs version 2.01
- cvm version 0.97
- Lua version 5 or later (optional)

Installation:
Expand Down
6 changes: 3 additions & 3 deletions backend-echo.c
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include <sysdeps.h>
#include <bglibs/sysdeps.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include <msg/msg.h>
#include <str/iter.h>
#include <bglibs/msg.h>
#include <bglibs/striter.h>
#include "mailfront.h"

static response resp = { 250, 0 };
Expand Down
8 changes: 4 additions & 4 deletions backend-qmail.c
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#include <sysdeps.h>
#include <bglibs/sysdeps.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h>
#include <misc/misc.h>
#include <msg/msg.h>
#include <unix/sig.h>
#include <bglibs/misc.h>
#include <bglibs/msg.h>
#include <bglibs/sig.h>
#include "mailfront.h"
#include "conf_qmail.c"

Expand Down
10 changes: 5 additions & 5 deletions backend-queuedir.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#include "mailfront.h"

#include <sysdeps.h>
#include <systime.h>
#include <bglibs/sysdeps.h>
#include <bglibs/systime.h>
#include <errno.h>
#include <unistd.h>
#include <sys/stat.h>

#include <iobuf/iobuf.h>
#include <path/path.h>
#include <str/str.h>
#include <bglibs/iobuf.h>
#include <bglibs/path.h>
#include <bglibs/str.h>

static str destpath;
static str temppath;
Expand Down
6 changes: 3 additions & 3 deletions getprotoenv.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <systime.h>
#include <bglibs/systime.h>
#include <stdlib.h>
#include <msg/msg.h>
#include <msg/wrap.h>
#include <bglibs/msg.h>
#include <bglibs/wrap.h>
#include "mailfront.h"

static const char* proto;
Expand Down
6 changes: 3 additions & 3 deletions imapfront-auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
* http://www.FutureQuest.net/
* [email protected]
*/
#include <sysdeps.h>
#include <bglibs/sysdeps.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <cvm/sasl.h>
#include <cvm/v2client.h>
#include <iobuf/iobuf.h>
#include <str/str.h>
#include <bglibs/iobuf.h>
#include <bglibs/str.h>

const char program[] = "imapfront-auth";
const int msg_show_pid = 1;
Expand Down
6 changes: 3 additions & 3 deletions iobytes.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <iobuf/iobuf.h>
#include <msg/msg.h>
#include <str/str.h>
#include <bglibs/iobuf.h>
#include <bglibs/msg.h>
#include <bglibs/str.h>

void report_io_bytes(void)
{
Expand Down
2 changes: 1 addition & 1 deletion mailfront-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define MAIL_FRONT__MAILFRONT_INTERNAL__H__

#include "mailfront.h"
#include <adt/ghash.h>
#include <bglibs/ghash.h>

struct session
{
Expand Down
8 changes: 4 additions & 4 deletions mailfront.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
#include <string.h>
#include <unistd.h>

#include <systime.h>
#include <msg/msg.h>
#include <path/path.h>
#include <str/str.h>
#include <bglibs/systime.h>
#include <bglibs/msg.h>
#include <bglibs/path.h>
#include <bglibs/str.h>

#include "mailfront-internal.h"

Expand Down
4 changes: 2 additions & 2 deletions mailfront.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#define MAIL_FRONT__MAILFRONT__H__

#include "responses.h"
#include <iobuf/iobuf.h>
#include <str/str.h>
#include <bglibs/iobuf.h>
#include <bglibs/str.h>
#include "constants.h"

#define FLAG_NEED_FILE (1<<0)
Expand Down
2 changes: 1 addition & 1 deletion modules.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <dlfcn.h>
#include <stdlib.h>
#include <string.h>
#include <msg/msg.h>
#include <bglibs/msg.h>
#include "mailfront-internal.h"
#include "conf_modules.c"

Expand Down
4 changes: 2 additions & 2 deletions netstring.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <iobuf/iobuf.h>
#include <str/str.h>
#include <bglibs/iobuf.h>
#include <bglibs/str.h>
#include "mailfront.h"

int get_netstring_len(ibuf* in, unsigned long* i)
Expand Down
4 changes: 2 additions & 2 deletions plugin-add-received.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <systime.h>
#include <bglibs/systime.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <msg/msg.h>
#include <bglibs/msg.h>
#include "mailfront.h"

static str received;
Expand Down
10 changes: 5 additions & 5 deletions plugin-clamav.c
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#include "mailfront.h"

#include <sysdeps.h>
#include <bglibs/sysdeps.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>

#include <msg/msg.h>
#include <net/resolve.h>
#include <net/socket.h>
#include <uint32.h>
#include <bglibs/msg.h>
#include <bglibs/resolve.h>
#include <bglibs/socket.h>
#include <bglibs/uint32.h>

static RESPONSE(no_hostname,451,"4.3.0 Could not resolve virus scanner hostname");
static RESPONSE(no_scan,451,"4.3.0 Could not virus scan message");
Expand Down
2 changes: 1 addition & 1 deletion plugin-counters.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "mailfront.h"
#include <stdlib.h>
#include <string.h>
#include <str/iter.h>
#include <bglibs/striter.h>

static RESPONSE(too_big, 552, "5.2.3 The message would exceed the maximum message size.");
static RESPONSE(too_long, 552, "5.2.3 Sorry, that message exceeds the maximum message length.");
Expand Down
2 changes: 1 addition & 1 deletion plugin-lua.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#include <msg/msg.h>
#include <bglibs/msg.h>
#include "mailfront.h"

static int l_msg(lua_State *L)
Expand Down
10 changes: 5 additions & 5 deletions plugin-mailrules.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

#include "mailfront.h"

#include <cdb/cdb.h>
#include <dict/dict.h>
#include <dict/load.h>
#include <iobuf/iobuf.h>
#include <str/str.h>
#include <bglibs/cdb.h>
#include <bglibs/dict.h>
#include <bglibs/dict.h>
#include <bglibs/iobuf.h>
#include <bglibs/str.h>

static RESPONSE(erropen,421,"4.3.0 Could not open $MAILRULES file");
static RESPONSE(syntax,421,"4.3.0 Syntax error in $MAILRULES");
Expand Down
8 changes: 4 additions & 4 deletions plugin-patterns.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include <stdlib.h>
#include <string.h>

#include <iobuf/iobuf.h>
#include <msg/msg.h>
#include <msg/wrap.h>
#include <str/str.h>
#include <bglibs/iobuf.h>
#include <bglibs/msg.h>
#include <bglibs/wrap.h>
#include <bglibs/str.h>

#include "mailfront.h"

Expand Down
8 changes: 4 additions & 4 deletions plugin-qmail-validate.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include <unistd.h>
#include "mailfront.h"
#include <iobuf/iobuf.h>
#include <dict/dict.h>
#include <dict/load.h>
#include <bglibs/iobuf.h>
#include <bglibs/dict.h>
#include <bglibs/dict.h>
#include "conf_qmail.c"
#include <cdb/cdb.h>
#include <bglibs/cdb.h>

static RESPONSE(accept,250,0);
static RESPONSE(no_chdir,451,"4.3.0 Could not change to the qmail directory.");
Expand Down
10 changes: 5 additions & 5 deletions plugin-rbl.c
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#include <string.h>

#include <msg/msg.h>
#include <msg/wrap.h>
#include <net/dns.h>
#include <net/ipv4.h>
#include <str/str.h>
#include <bglibs/msg.h>
#include <bglibs/wrap.h>
#include <bglibs/dns.h>
#include <bglibs/ipv4.h>
#include <bglibs/str.h>

#include "mailfront.h"

Expand Down
8 changes: 4 additions & 4 deletions plugin-spamassassin.c
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#include "mailfront.h"

#include <sysdeps.h>
#include <bglibs/sysdeps.h>
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>

#include <msg/msg.h>
#include <net/resolve.h>
#include <net/socket.h>
#include <bglibs/msg.h>
#include <bglibs/resolve.h>
#include <bglibs/socket.h>

static RESPONSE(no_hostname,451,"4.3.0 Could not resolve SpamAssassin hostname");
static RESPONSE(no_scan,451,"4.3.0 Could not SpamAssassin scan message");
Expand Down
2 changes: 1 addition & 1 deletion plugin-starttls-ucspi.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "mailfront.h"
#include <stdlib.h>
#include <unistd.h>
#include <iobuf/iobuf.h>
#include <bglibs/iobuf.h>

static RESPONSE(start, 220, "2.0.0 Ready to start TLS");
static RESPONSE(earlytalker, 500, "5.5.1 Unexpected pipelined commands following STARTTLS");
Expand Down
4 changes: 2 additions & 2 deletions pop3-capa.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* [email protected]
*/
#include <string.h>
#include <iobuf/obuf.h>
#include <str/str.h>
#include <bglibs/obuf.h>
#include <bglibs/str.h>
#include <cvm/sasl.h>
#include "pop3.h"

Expand Down
4 changes: 2 additions & 2 deletions pop3-mainloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
*/
#include <stdlib.h>
#include <string.h>
#include <iobuf/iobuf.h>
#include <str/str.h>
#include <bglibs/iobuf.h>
#include <bglibs/str.h>
#include "pop3.h"

const int msg_show_pid = 1;
Expand Down
4 changes: 2 additions & 2 deletions pop3-response.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <iobuf/iobuf.h>
#include <msg/msg.h>
#include <bglibs/iobuf.h>
#include <bglibs/msg.h>
#include "pop3.h"

const char err_internal[] = "-ERR Internal error";
Expand Down
6 changes: 3 additions & 3 deletions pop3front-auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
#include <string.h>
#include <unistd.h>
#include <cvm/v2client.h>
#include <iobuf/iobuf.h>
#include <str/iter.h>
#include <str/str.h>
#include <bglibs/iobuf.h>
#include <bglibs/striter.h>
#include <bglibs/str.h>
#include <cvm/sasl.h>
#include "pop3.h"

Expand Down
8 changes: 4 additions & 4 deletions pop3front-maildir.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sysdeps.h>
#include <iobuf/iobuf.h>
#include <msg/msg.h>
#include <str/str.h>
#include <bglibs/sysdeps.h>
#include <bglibs/iobuf.h>
#include <bglibs/msg.h>
#include <bglibs/str.h>
#include "pop3.h"

typedef struct
Expand Down
8 changes: 4 additions & 4 deletions protocol-qmqp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
#include <string.h>
#include <unistd.h>

#include <systime.h>
#include <iobuf/iobuf.h>
#include <msg/msg.h>
#include <str/str.h>
#include <bglibs/systime.h>
#include <bglibs/iobuf.h>
#include <bglibs/msg.h>
#include <bglibs/str.h>

#include "mailfront.h"
#include "qmtp.h"
Expand Down
8 changes: 4 additions & 4 deletions protocol-qmtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
#include <string.h>
#include <unistd.h>

#include <systime.h>
#include <iobuf/iobuf.h>
#include <msg/msg.h>
#include <str/str.h>
#include <bglibs/systime.h>
#include <bglibs/iobuf.h>
#include <bglibs/msg.h>
#include <bglibs/str.h>

#include "mailfront.h"
#include "qmtp.h"
Expand Down
Loading

0 comments on commit 9429559

Please sign in to comment.