]> diplodocus.org Git - nmh/blobdiff - h/mh.h
Added POSTLINK to remainder of executables in Makefile.am.
[nmh] / h / mh.h
diff --git a/h/mh.h b/h/mh.h
index f5fd66be34d4931f47fa8880cc4ccf766cde8c64..a47b7c20885c197bb71af05d902f0880f0f18998 100644 (file)
--- a/h/mh.h
+++ b/h/mh.h
@@ -79,7 +79,7 @@ struct swit {
 /*
  * Macros to use when declaring struct swit arrays.
  *
- * These macros are what known as X-Macros.  In your source code you
+ * These macros use a technique known as X-Macros.  In your source code you
  * use them like this:
  *
  * #define FOO_SWITCHES \
@@ -89,6 +89,10 @@ struct swit {
  *
  * The argument to each entry in FOO_SWITCHES are the switch name (sw),
  * the minchars field (see above) and the return value for this switch.
+ * Note that the last entry in the above definition must either omit the
+ * continuation backslash, or be followed by a blank line.  In the nmh
+ * code the style is to have every line include a backslash and follow
+ * the SWITCHES macro definition by a blank line.
  *
  * After you define FOO_SWITCHES, you instantiate it as follows:
  *
@@ -357,6 +361,17 @@ typedef struct m_getfld_state *m_getfld_state_t;
 
 #define NMH_ATTACH_HEADER "Nmh-Attachment"  /* Default header for -attach */
 
+/*
+ * credentials management
+ */
+struct nmh_creds {
+    char *host;
+    char *user;
+    char *password;
+};
+
+typedef struct nmh_creds *nmh_creds_t;
+
 /*
  * miscellaneous macros
  */
@@ -405,6 +420,7 @@ extern char *catproc;
 extern char *components;
 extern char *context;
 extern char *current;
+extern char *credentials_file;
 extern char *defaultfolder;
 extern char *digestcomps;
 extern char *distcomps;