-
/*
* config.c -- master nmh configuration file
*
*/
char *msgprot = "600";
-
-
/*
* addrsbr.h -- definitions for the address parsing system
*/
-
/*
* aliasbr.h -- definitions for the aliasing system
*
-
/*
* crawl_folders.h -- crawl folder hierarchy
*/
-
/*
* dropsbr.h -- definitions for maildrop-style files
*/
int map_read (char *, long, struct drop **, int);
int map_write (char *, int, int, long, off_t, off_t, long, int, int);
int map_chk (char *, int, struct drop *, long, int);
-
-
/*
* fmt_compile.h -- format types
*/
-
/*
* fmt_scan.h -- definitions for fmt_scan()
*/
void MD5Init PROTO_LIST ((MD5_CTX *));
void MD5Update PROTO_LIST ((MD5_CTX *, unsigned char *, unsigned int));
void MD5Final PROTO_LIST ((unsigned char [16], MD5_CTX *));
-
-
/*
* mf.h -- include file for mailbox filters
*/
*/
char *legal_person (const char *);
struct adrx *getadrx (const char *, int);
-
extern void (*done) (int) NORETURN;
#include <h/prototypes.h>
-
-
/*
* mhcachesbr.h -- definitions for manipulating MIME content cache
*/
-
/*
* mhparse.h -- definitions for parsing/building of MIME content
* -- (mhparse.c/mhbuildsbr.c)
-
/*
* mime.h -- definitions for MIME
*/
#define BPERLIN (CPERLIN / 4)
#define LPERMSG 632
#define CPERMSG (LPERMSG * CPERLIN)
-
-
/*
* mts.h -- definitions for the mail system
*/
-
/*
* nmh.h -- system configuration header file
*/
-
/*
* picksbr.h -- definitions for picksbr.c
*/
-
/*
* popsbr.h -- header for POP client subroutines
*/
-
/*
* prototypes.h -- various prototypes
*
-
/*
* rcvmail.h -- rcvmail hook definitions
*/
-
/*
* scansbr.h -- definitions for scan()
*/
-
/*
* signals.h -- header file for nmh signal interface
*/
-
/*
* tws.h
*/
void set_dotw (struct tws *);
struct tws *dparsetime (char *);
-
-
/*
* utils.h -- utility prototypes
*/
-
/*
* smtp.h -- definitions for the nmh SMTP Interface
*/
/* is return value negative? */
#define rp_isbad(val) (((signed char)(val)) < 0)
-
-
/*
* addrsbr.c -- parse addresses 822-style
*
-
/*
* ambigsw.c -- report an ambiguous switch
*
-
/*
* arglist.c -- Routines for handling argument lists for execvp() and friends
*
-
/*
* atooi.c -- octal version of atoi()
*
-
/*
* brkstring.c -- (destructively) split a string into
* -- an array of substrings
-
/*
* check_charset.c -- routines for character sets
*
-
/*
* client.c -- connect to a server
*
-
/*
* closefds.c -- close-up fd's
*
-
/*
* concat.c -- concatenate a variable number (minimum of 1)
* of strings in managed memory
-
/*
* context_del.c -- delete an entry from the context/profile list
*
-
/*
* context_find.c -- find an entry in the context/profile list
*
-
/*
* context_foil.c -- foil search of profile and context
*
return 0;
}
-
-
/*
* context_replace.c -- add/replace an entry in the context/profile list
*
-
/*
* context_save.c -- write out the updated context file
*
-
/*
* copyip.c -- copy a string array and return pointer to end
*
-
/*
* cpydata.c -- copy all data from one fd to another
*
-
/*
* cpydgst.c -- copy from one fd to another in encapsulating mode
* -- (do dashstuffing of input data).
-
/*
* crawl_folders.c -- crawl folder hierarchy
*
-
/*
* done.c -- terminate the program
*
-
/*
* dtime.c -- time/date routines
*
-
/*
* error.c -- main error handling routines
*
-
/*
* fdcompare.c -- are two files identical?
*
-
/*
* fmt_addr.c -- format an address field (from fmt_scan)
*
-
/*
* fmt_compile.c -- "compile" format strings for fmt_scan
*
-
/*
* fmt_new.c -- read format file/string and normalize
*
-
/*
* fmt_rfc2047.c -- decode RFC-2047 header format
*
-
/*
* fmt_scan.c -- format string interpretation
*
-
/*
* folder_addmsg.c -- Link message into folder
*
-
/*
* folder_delmsgs.c -- "remove" SELECTED messages from a folder
*
-
/*
* folder_free.c -- free a folder/message structure
*
-
/*
* folder_pack.c -- pack (renumber) the messages in a folder
* -- into a contiguous range from 1 to n.
-
/*
* folder_read.c -- initialize folder structure and read folder
*
-
/*
* folder_realloc.c -- realloc a folder/msgs structure
*
-
/*
* getarguments.c -- Get the argument vector ready to go.
*
-
/*
* getcpy.c -- copy a string in managed memory
*
-
/*
* geteditor.c -- Determine the default editor to use
*
-
/*
* getfolder.c -- get the current or default folder
*
-
/*
* lock.c -- routines to lock/unlock files
*
-
/*
* m_atoi.c -- Parse a string representation of a message number, and
* -- return the numeric value of the message. If the string
-
/*
* m_backup.c -- construct a backup file
*
-
/*
* m_convert.c -- parse a message range or sequence and set SELECTED
*
-
/*
* m_draft.c -- construct the name of a draft message
*
-
/*
* m_getfld.c -- read/parse a message
*
-
/*
* m_gmprot.c -- return the msg-protect value
*
-
/*
* m_maildir.c -- get the path for the mail directory
*
-
/*
* m_name.c -- return a message number as a string
*
-
/*
* m_popen.c -- Interface for a popen() call that redirects the current
* process standard output to the popen()d process.
-
/*
* makedir.c -- make a directory
*
-
/*
* md5.c -- md5 message digest algorithm
* taken from RFC-1321/Appendix A.3
output[i] = ((UINT4)input[j]) | (((UINT4)input[j+1]) << 8) |
(((UINT4)input[j+2]) << 16) | (((UINT4)input[j+3]) << 24);
}
-
-
/*
* mf.c -- mail filter subroutines
*
-
/*
* mts.c -- definitions for the mail transport system
*
-
/*
* netsec.c -- Network security routines for handling protocols that
* require SASL and/or TLS.
-
/*
* path.c -- return a pathname
*
-
/*
* pidstatus.c -- report child's status
*
-
/*
* pidwait.c -- wait for child to exit
*
-
/*
* print_help.c -- print a help message, and possibly the
* -- profile/context entries for this command
-
/*
* print_sw.c -- print switches
*
-
/*
* print_version.c -- print a version string
*
-
/*
* push.c -- push a fork into the background
*
done (0);
}
}
-
-
/*
* putenv.c -- (un)set an envariable
*
-
/*
* r1bindex.c -- Given a string and a character, return a pointer
* -- to the right of the rightmost occurrence of the
-
/*
* read_switch.c -- prompt the user for an answer from the list
*
-
/*
* read_switch_multiword.c -- get an answer from the user and return a string array
*
-
/*
* read_switch_multiword_via_readline.c -- get an answer from the user, with readline
*
return NULL;
}
#endif /* READLINE_SUPPORT */
-
-
/*
* read_yes_or_no_if_tty.c -- get a yes/no answer from the user
*
-
/*
* readconfig.c -- base routine to read nmh configuration files
* -- such as nmh profile, context file, or mhn.defaults.
-
/*
* refile.c -- call the "fileproc" to refile the
* -- msg or draft into another folder
-
/*
* remdir.c -- remove a directory
*
-
/*
* seq_add.c -- add message(s) to a sequence
*
-
/*
* seq_bits.c -- return the snprintb() string for a sequence
*
-
/*
* seq_del.c -- delete message(s) from a sequence
*
-
/*
* seq_getnum.c -- find the index for a sequence
* -- return -1 if sequence doesn't exist
-
/*
* seq_list.c -- Get all messages in a sequence and return them
* -- as a space separated list of message ranges.
-
/*
* seq_nameok.c -- check if a sequence name is ok
*
-
/*
* seq_print.c -- Routines to print sequence information.
*
-
/*
* seq_read.c -- read the .mh_sequence file and
* -- initialize sequence information
-
/*
* seq_save.c -- 1) synchronize sequences
* -- 2) save public sequences
-
/*
* seq_setcur.c -- set the current message ("cur" sequence) for a folder
*
-
/*
* seq_setprev.c -- set the Previous-Sequence
*
-
/*
* seq_setunseen.c -- add/delete all messages which have the SELECT_UNSEEN
* -- bit set to/from the Unseen-Sequence
-
/*
* showfile.c -- invoke the `lproc' command
*
-
/*
* signals.c -- general signals interface for nmh
*
-
/*
* smatch.c -- match a switch (option)
*
-
/*
* snprintb.c -- snprintf a %b string
*
-
/*
* ssequal.c -- check if a string is a substring of another
*
-
/*
* strindex.c -- "unsigned" lexical index
*
-
/*
* termsbr.c -- termcap support
*
-
/*
* trimcpy.c -- strip leading and trailing whitespace,
* -- replace internal whitespace with spaces,
-
/*
* uprf.c -- "unsigned" lexical prefix
*
-
/*
* utils.c -- various utility routines
*
-
/*
* vfgets.c -- virtual fgets
*
-
/*
* ali.c -- list nmh mail aliases
*
-
/*
* aliasbr.c -- new aliasing mechanism
*
-
/*
* anno.c -- annotate messages
*
-
/*
* annosbr.c -- prepend annotation to messages
*
-
/*
* ap.c -- parse addresses 822-style
*
-
/*
* burst.c -- explode digests into individual messages
*
-
/*
* comp.c -- compose a message
*
-
/*
* dist.c -- re-distribute a message
*
-
/*
* distsbr.c -- routines to do additional "dist-style" processing
*
-
/*
* dp.c -- parse dates 822-style
*
-
/*
* dropsbr.c -- create/read/manipulate mail drops
*
-
/*
* fmtdump.c -- compile format file and dump out instructions
*
-
/*
* fmttest.c -- A program to help test and debug format instructions
*
-
/*
* folder(s).c -- set/list the current message and/or folder
* -- push/pop a folder onto/from the folder stack
-
/*
* forw.c -- forward a message, or group of messages.
*
-
/*
* forwsbr.c -- subroutine to build a draft from a component file
*
-
/*
* inc.c -- incorporate messages from a maildrop into a folder
*
-
/*
* mark.c -- add message(s) to sequences in given folder
* -- delete messages (s) from sequences in given folder
-
/*
* mhbuild.c -- expand/translate MIME composition files
*
-
/*
* mhbuildsbr.c -- routines to expand/translate MIME composition files
*
-
/*
* mhcachesbr.c -- routines to manipulate the MIME content cache
*
-
/*
* mhfree.c -- routines to free the data structures used to
* -- represent MIME messages
-
/*
* mhl.c -- the nmh message listing program
*
-
/*
* mhlist.c -- list the contents of MIME messages
*
-
/*
* mhlistsbr.c -- routines to list information about the
* -- contents of MIME messages
-
/*
* mhlsbr.c -- main routines for nmh message lister
*
-
/*
* mhparse.c -- misc routines to process MIME messages
*
-
/*
* mhn.c -- display, list, cache, or store the contents of MIME messages
*
-
/*
* mhoutsbr.c -- routines to output MIME messages
* -- given a Content structure
-
/*
* mhparam.c -- print mh_profile values
*
-
/*
* mhparse.c -- routines to parse the contents of MIME messages
*
-
/*
* mhpath.c -- print full pathnames of nmh messages and folders
*
-
/*
* mhshow.c -- display the contents of MIME messages
*
-
/*
* mhshowsbr.c -- routines to display the contents of MIME messages
*
-
/*
* mhstore.c -- store the contents of MIME messages
*
-
/*
* mhstoresbr.c -- routines to save/store the contents of MIME messages
*
-
/*
* msgchk.c -- check for mail
*
-
/*
* new.c -- as new, list all folders with unseen messages
* -- as fnext, move to next folder with unseen messages
-
/*
* packf.c -- pack a nmh folder into a file
*
-
/*
* pick.c -- search for messages by content
*
-
/*
* picksbr.c -- routines to help pick along...
*
-
/*
* prompter.c -- simple prompting editor front-end
*
-
/*
* rcvdist.c -- asynchronously redistribute messages
*
-
/*
* rcvpack.c -- append message to a file
*
-
/*
* rcvstore.c -- asynchronously add mail to a folder
*
-
/*
* rcvtty.c -- a rcvmail program (a lot like rcvalert) handling IPC ttys
*
-
/*
* refile.c -- move or link message(s) from a source folder
* -- into one or more destination folders
-
/*
* repl.c -- reply to a message
*
-
/*
* replsbr.c -- routines to help repl along...
*
-
/*
* rmf.c -- remove a folder
*
-
/*
* rmm.c -- remove a message(s)
*
-
/*
* scan.c -- display a one-line "scan" listing of folder or messages
*
-
/*
* scansbr.c -- routines to help scan along...
*
-
/*
* send.c -- send a composed message
*
-
/*
* sendsbr.c -- routines to help WhatNow/Send along
*
-
/*
* slocal.c -- asynchronously filter and deliver new mail
*
-
/*
* sortm.c -- sort messages in a folder by date/time
*
-
/*
* viamail.c -- send multiple files in a MIME message
*
-
/*
* whatnow.c -- the nmh `WhatNow' shell
*
-
/*
* whatnowproc.c -- exec the "whatnowproc"
*
-
/*
* whatnowsbr.c -- the WhatNow shell
*
-
/*
* whom.c -- report to whom a message would be sent
*