-char *r1bindex(char *, int) PURE;
-int refile (char **, char *);
-
-/*
- * Read our credentials file and (optionally) ask the user for anything
- * missing.
- *
- * Arguments:
- *
- * host - Hostname (to scan credentials file)
- * aname - Pointer to filled-in username
- * apass - Pointer to filled-in password
- * flags - One or more of RUSERPASS_NO_PROMPT_USER,
- * RUSERPASS_NO_PROMPT_PASSWORD
- */
-void ruserpass (const char *host, char **aname, char **apass, int flags);
-#define RUSERPASS_NO_PROMPT_USER 0x01
-#define RUSERPASS_NO_PROMPT_PASSWORD 0x02
-
-void scan_detect_mbox_style (FILE *);
-void scan_finished(void);
-
-/*
- * Read the sequence files for the folder referenced in the given
- * struct msgs and populate the sequence entries in the struct msgs.
- *
- * Arguments:
- *
- * mp - Folder structure to add sequence entries to
- * lockflag - If true, obtain a write lock on the sequence file.
- * Additionally, the sequence file will remain open
- * and a pointer to the filehandle will be stored in
- * folder structure, where it will later be used by
- * seq_save().
- *
- * Return values:
- * OK - successfully read the sequence files, or they don't exist
- * NOTOK - failed to lock sequence file
- */
-int seq_read (struct msgs * mp, int lockflag);
-void seq_save (struct msgs *);
-void seq_setcur (struct msgs *, int);
-void seq_setprev (struct msgs *);
-void seq_setunseen (struct msgs *, int);
-int showfile (char **, char *);
-int smatch(const char *, const struct swit *) PURE;
-
-/*
- * prototypes for some routines in uip
- */
-int annotate (char *, char *, char *, bool, bool, int, bool);
-void annolist(char *, char *, char *, int);
-void annopreserve(int);
-int mhl(int, char **);
-int mhlsbr(int, char **, FILE *(*)(char *));
-int distout (char *, char *, char *);
-int sendsbr (char **, int, char *, char *, struct stat *, int, const char *);
-int what_now (char *, int, int, char *, char *,
- int, struct msgs *, char *, int, char *, int);
-int WhatNow(int, char **) NORETURN;