X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/04fe5667ca51ed208fa4ba2e6e618904e9fb8702..2fd34743d19049035fc566b10a0d40cd88231c3c:/sbr/credentials.c diff --git a/sbr/credentials.c b/sbr/credentials.c index d8e4d2e4..82e3c292 100644 --- a/sbr/credentials.c +++ b/sbr/credentials.c @@ -1,4 +1,5 @@ -/* +/* credentials.c -- wrap configurable access to .netrc or similar files. + * * This code is Copyright (c) 2013, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -7,6 +8,7 @@ #include #include #include +#include "m_maildir.h" struct nmh_creds { char *host; /* Hostname corresponding to credentials */ @@ -15,7 +17,7 @@ struct nmh_creds { }; void -init_credentials_file () { +init_credentials_file(void) { if (credentials_file == NULL) { char *cred_style = context_find ("credentials"); @@ -38,7 +40,7 @@ init_credentials_file () { credentials_file = concat (mypath ? mypath : ".", "/", filename, NULL); if (stat (credentials_file, &st) != OK) { - admonish (NULL, "unable to find credentials file %s", + inform("unable to find credentials file %s, continuing...", filename); } } @@ -79,7 +81,7 @@ nmh_get_credentials (const char *host, const char *user) */ creds->user = user == NULL ? NULL : mh_xstrdup(user); } else { - admonish (NULL, "unknown credentials style %s", cred_style); + inform("unknown credentials style %s, continuing...", cred_style); return NULL; }