## overrides that are used to select different library options from the
## default.
##
-## Note that a few programs link in extra files (specifically, popsbr.c)
-## if POP3 support is compiled in. An Automake conditional is used for
-## this purpose.
-##
-
uip_ali_SOURCES = uip/ali.c uip/aliasbr.c
uip_anno_SOURCES = uip/anno.c uip/annosbr.c
cscope:
echo "-I $(srcdir)/h -I $(srcdir)/sbr -I $(srcdir)/uip -I $(srcdir)/mts/smtp" > cscope.files
find $(srcdir) \( -name \*.c -o -name \*.l \) -print | grep -v dtimep.c >> cscope.files
+
+##
+## Rules to upload the distribution to savannah
+##
+
+upload: dist
+ @if test -z "$(SAVANNAH_USERNAME)"; then \
+ echo "You need to set SAVANNAH_USERNAME to the your username on savannah.gnu.org." ;\
+ echo "You can set it either in your environment or on the make command line."; \
+ false; \
+ fi
+ @echo "Did you run 'make distcheck' already?"
+ @if test -z "$(SKIP_GPG_SIG)"; then \
+ echo "Creating GPG signature (set SKIP_GPG_SIG to bypass this step)"; \
+ gpg --output $(DIST_ARCHIVES).sig --detatch-sig $(DIST_ARCHIVES); \
+ fi
+ @echo "Setting permissions for savannah.gnu.org"
+ chmod 664 $(DIST_ARCHIVES)
+ if test -f $(DIST_ARCHIVES).sig; then \
+ chmod 664 $(DIST_ARCHIVES).sig; \
+ fi
+ @echo "Uploading to savannah"
+ scp -p $(DIST_ARCHIVES)* $(SAVANNAH_USERNAME)@savannah.gnu.org:/releases/nmh
+.PHONY: upload
- New format instructions %(putlit) and %(concataddr) have been implemented.
- The --enable-pop configure option has been removed; POP support is now
compiled in always.
+- You can now filter the body of a message through a user-defined filter
+ program inside of repl (the idea is that it will be used by repl).
+ See mhl(1), specifically the "format" keyword and "formatproc" in
+ mh-profile(5).
void mnfree(struct mailname *);
int ismymbox(struct mailname *);
char *getname(char *);
-char *adrsprintf(char *, char *);
+char *getlocaladdr(void);
char *auxformat(struct mailname *, int);
struct mailname *getm(char *, char *, int, int, char *);
directive at the \*(lqWhat now?\*(rq prompt.
.RE
.PP
+.BR formatproc :
+.RS 5
+Program called by
+.B mhl
+to filter a component when it is tagged with the \*(lqformat\*(rq variable
+in the mhl filter. See
+.BR mhl (5)
+for more information.
+.RE
+.PP
.BR incproc :
%bindir%/inc
.RS 5
/*
- * address specific "sprintf"
+ * This used to be adrsprintf() (where it would format an address for you
+ * given a username and a domain). But somewhere we got to the point where
+ * the only caller was post, and it only called it with both arguments NULL.
+ * So the function was renamed with a more sensible name.
*/
char *
-adrsprintf (char *username, char *domain)
+getlocaladdr(void)
{
int snprintf_return;
+ char *username, *domain;
static char addr[BUFSIZ];
- if (username == NULL)
- username = getusername();
+ username = getusername();
if (username_extension_masquerading) {
/* mts.conf contains "masquerade:[...]username_extension[...]", so tack
return username;
- if (domain == NULL)
- domain = LocalName();
+ domain = LocalName();
snprintf_return = snprintf (addr, sizeof(addr), "%s@%s", username, domain);
mygid = getgid ();
time (&tclock);
- strncpy (from, adrsprintf (NULL, NULL), sizeof(from));
+ strncpy (from, getlocaladdr(), sizeof(from));
strncpy (myhost, LocalName (), sizeof(myhost));
for (cp = myhost; *cp; cp++)
if ((cp = getfullname ()) && *cp) {
strncpy (sigbuf, cp, sizeof(sigbuf));
snprintf (signature, sizeof(signature), "%s <%s>",
- sigbuf, adrsprintf (NULL, NULL));
+ sigbuf, getlocaladdr());
if ((cp = getname (signature)) == NULL)
adios (NULL, "getname () failed -- you lose extraordinarily big");
if ((mp = getm (cp, NULL, 0, AD_HOST, NULL)) == NULL)
while (getname (""))
continue;
} else {
- strncpy (signature, adrsprintf (NULL, NULL), sizeof(signature));
+ strncpy (signature, getlocaladdr(), sizeof(signature));
}
}