X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/9d211736c4ff802eef68d2264feacbe001f83e61..8e4f026486240fcc6397d5992e01ef997e3460fd:/config/config.c diff --git a/config/config.c b/config/config.c index 4024d305..a5cdfd9b 100644 --- a/config/config.c +++ b/config/config.c @@ -8,12 +8,11 @@ */ #include -#include #include #define nmhbindir(file) NMHBINDIR#file #define nmhetcdir(file) NMHETCDIR#file -#define nmhlibdir(file) NMHLIBDIR#file +#define nmhlibexecdir(file) NMHLIBEXECDIR#file /* @@ -103,6 +102,9 @@ char *mh_defaults = nmhetcdir (/mh.profile); /* default name of user profile */ char *mh_profile = ".mh_profile"; +/* name of credentials file, defaults to .netrc in either Path or $HOME. */ +char *credentials_file; + /* name of current message "sequence" */ char *current = "cur"; @@ -141,7 +143,7 @@ char *nmhaccessftp = "nmh-access-ftp"; /* profile entry for external url access command */ char *nmhaccessurl = "nmh-access-url"; -char *mhlibdir = NMHLIBDIR; +char *mhlibexecdir = NMHLIBEXECDIR; char *mhetcdir = NMHETCDIR; /* @@ -154,15 +156,11 @@ char *mhetcdir = NMHETCDIR; char *context = "context"; /* - * Default name of file for public sequences. If NULL, - * then nmh will use private sequences by default, unless the - * user defines a value using the "mh-sequences" profile entry. + * Default name of file for public sequences. If "\0" (an empty + * "mh-sequences" profile entry), then nmh will use private sequences by + * default. */ -#ifdef NOPUBLICSEQ -char *mh_seq = NULL; -#else char *mh_seq = ".mh_sequences"; -#endif /* * nmh globals @@ -241,7 +239,7 @@ char *moreproc = NULL; * for "Bcc:" recipients. */ -char *mhlproc = nmhlibdir (/mhl); +char *mhlproc = nmhlibexecdir (/mhl); /* * This is the super handy BBoard reading program, which is @@ -261,14 +259,14 @@ char *packproc = nmhbindir (/packf); * deliver mail to users. This is the interface to the MTS. */ -char *postproc = nmhlibdir (/post); +char *postproc = nmhlibexecdir (/post); /* * This is program is called by slocal to handle * the action `folder' or `+'. */ -char *rcvstoreproc = nmhlibdir (/rcvstore); +char *rcvstoreproc = nmhlibexecdir (/rcvstore); /* * This program is called to remove a message by rmm or refile -nolink. @@ -298,7 +296,7 @@ char *showmimeproc = nmhbindir (/mhshow); * that such message not be filtered in any way. */ -char *showproc = nmhlibdir (/mhl); +char *showproc = nmhlibexecdir (/mhl); /* * This program is called by vmh as the back-end to the window management