* complete copyright information.
*/
-#include <h/mh.h>
-#include <h/addrsbr.h>
-#include <h/mf.h>
-#include <h/mts.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "snprintb.h"
+#include "strindex.h"
+#include "uprf.h"
+#include "getcpy.h"
+#include "context_find.h"
+#include "error.h"
+#include "h/addrsbr.h"
+#include "h/mf.h"
+#include "h/mts.h"
+#include "h/utils.h"
/* High level parsing of addresses:
static int eai = 0;
void
-enable_eai(void) {
+enable_eai(void)
+{
eai = 1;
}
bool
ismymbox (struct mailname *np)
{
- int oops;
+ bool oops;
int len, i;
char *cp;
char *pp;
struct mailname *mp;
static char *am = NULL;
static struct mailname mq;
- static int localmailbox = 0;
+ static bool localmailbox;
/*
* If this is the first call, initialize
if ((am = context_find ("local-mailbox"))) {
- localmailbox++;
+ localmailbox = true;
if ((cp = getname(am)) == NULL) {
inform("Unable to find address in local-mailbox, continuing...");
am = getusername();
else {
mp = mq.m_next ? mq.m_next : &mq;
- oops = 0;
+ oops = false;
while ((cp = getname (am))) {
if ((mp->m_next = getm (cp, NULL, 0, NULL, 0)) == NULL) {
inform("illegal address: %s, continuing...", cp);
- oops++;
+ oops = true;
} else {
mp = mp->m_next;
mp->m_type = W_NIL;