* 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:
char *
auxformat (struct mailname *mp, int extras)
{
- static char addr[BUFSIZ];
+ static char addr[BUFSIZ-4];
static char buffer[BUFSIZ];
if (mp->m_nohost)
strncpy (addr, FENDNULL(mp->m_mbox), sizeof(addr));
else if (mp->m_type != UUCPHOST) {
if (mp->m_host)
- snprintf (addr, sizeof(addr), "%s%s@%s", FENDNULL(mp->m_path),
+ snprintf (addr, sizeof(addr), "%s%s@%s", FENDNULL(mp->m_path),
FENDNULL(mp->m_mbox), mp->m_host);
else snprintf (addr, sizeof(addr), "%s%s", FENDNULL(mp->m_path),
- FENDNULL(mp->m_mbox));
+ FENDNULL(mp->m_mbox));
} else
snprintf (addr, sizeof(addr), "%s!%s", mp->m_host, mp->m_mbox);
*/
if (am == NULL) {
mq.m_next = NULL;
- mq.m_mbox = getusername ();
+ mq.m_mbox = getusername (0);
if ((am = context_find ("local-mailbox"))) {
/* Sigh, it turns out that the address parser gets messed up
* if you don't call getname() until it returns NULL. */
while (getname(am) != NULL)
- ;
+ ;
}
if ((am = context_find ("alternate-mailboxes")) == NULL)
- am = getusername();
+ am = getusername(0);
else {
mp = mq.m_next ? mq.m_next : &mq;
oops = false;