Release.Notes
上传用户:dayuan858
上传日期:2007-01-04
资源大小:194k
文件大小:31k
源码类别:

网络编程

开发平台:

Unix_Linux

  1. Acknowlegements:
  2. This is a joint effort between Qualcomm and the rest of the net, and
  3. that your comments, features, bug reports, and fixes are very much
  4. appreciated.
  5. If you have any questions on installation and usage of the popper
  6. please send your messages to qpopper@qualcomm.com. 
  7. Work on the most recent versions has been done by Praveen Yaramada.
  8. Features 
  9. These are features which have been added to the standard Berkeley
  10.     popper since the '91 release.
  11. 1) Popper idle timeout (UIUC 1.831)
  12. 2) Bulletin board (2.0)
  13. 3) Statistics gathering (2.0)
  14. 4) xlst command (eXtended LiST) (2.0)
  15. 5) uidl command (Unique IDentifier List) (2.1.1)
  16. 6) Kerberos (2.1.2)
  17. 7) Shadow password (may work for you, may not) (2.1.1)
  18. 8) rpop (uses /etc/hosts.equiv and .rhosts.  Not recommended) (2.1.2)
  19. 9) Popper authorization file (2.1.2)
  20. 10) Sending mail via POP is now logged to mail debug (2.1.2)
  21. 11) MMDF handling (autodetect) (2.1.4)
  22. 12) Content-Length: header processing (2.1.4)
  23. 13) APOP authententication (2.1.4-r4)
  24. 14) Large site support - Server mode (2.2)
  25. 15) Database for bulletin tracking (2.2)
  26. 16) Kerberos enabled no enableable by a switch (2.2)
  27. 17) Configure Script to ease installation(2.4)
  28. 18) Root exploit via buffer over run fixes. (2.5)
  29. This popper diverges from the POP RFC in that it acknowledges
  30.     the delete command when it is issued.  It also marks messages as
  31.     being read after they have been retrieved.  The maildrop is updated
  32.     reguardless of whether the popper session has been aborted or not.
  33.     Pop clients which do not flush messages from the IO buffers before
  34.     issuing a delete may lose messages.  Eudora does flush its buffers
  35.     before issuing the popper delete command.  This feature is very good
  36.     when a dialup session is terminated due to a bad phone connection
  37.     where getting dropped is a common occurance.
  38. This popper also diverges in that the timeout can be set to less
  39.     than 10 minutes.  Practically I have found a timeout of 30 seconds
  40.     to be adequate for most circumstances.  It needs to be a little
  41.     greater for 2400baud slip connections.  I have defaulted this code
  42.     to 2 minutes.  The RFC specifies 10 minutes.  The timer is used to
  43.     cleanup an aborted connection.  A short timeout allows for the user
  44.     to reconnect without getting that pesky little error which states
  45.     that the pop drop file is already locked.  Otherwise the admin will
  46.     get a phone call, walk the user through the connection, and find
  47.     everything works.  Frustrating for both admin and user.  On the minus
  48.     side, if the client takes to long to respond, the connection will be
  49.     dropped prematurely.  Time timeout choice is yours.
  50. Future enhancments - In no particular order
  51. 1) Add MSG facility.  Similar to the bulletin board.
  52. 2) Add the "AUTH" pop command to allow for multiple authorization
  53.    mechanisms.
  54. 3) Add Kerberos V support (GSS?).
  55. Release Notes
  56. 2.53 Fixes compile problems with Enhanced security on HPUX10 & DGUX4.0b-d.
  57.      Also fixes general compilation problems with SCO & Ultrix.
  58. 2.52 Fixes compile problems with GDBM and bulletins.
  59.      Fixes a problem compiling with strerror() on some UNIXs
  60.      Updated license agreement allow redistribution
  61. 2.51 Bug fix with Bulletins with DB. New License. (not release)
  62. 2.5  Root exploit via buffer over-runs are fixed. The four were:
  63.      1. long unknown commands
  64.      2. long x-uidl headers in mailboxes
  65.      3. long From: header fields in mailboxes
  66.      4. Certain command input sent directly to syslog
  67. 2.41 Rectified the problem with X-UIDL string to check the validity of the 
  68.  string. 
  69. 2.4
  70. Added configure script. Running configure script generates the Makefile
  71. for the platform. 
  72. Added timeout for the the xtnd xmit command. Now the information for 
  73. xtnd xmit command is read from the same read statement as any other 
  74. command. 
  75. 2.3
  76. Fixed the bug with NOUPDATEONABORT. Now if the connection aborts with
  77. the client the messages in temporary file are copied back to original
  78. mail drop and the temporary file is deleted.
  79. Added the macro GDBM, if defined will make use of GNU's DBM library.
  80. Fixed the bug in pop_dropcopy.c, where the process changes the UID and
  81. GID to that of the user's, but leaves the Supplementary group IDs.
  82. Strictly enforcing BINMAIL_IS_SETGID for IRIX.
  83. 2.2
  84. Added SERVER_MODE.  This feature should only be used on systems
  85.     that do not allow users to use access their mailspools directly.
  86. Added several mail spool access methods.  If your site is large
  87.     and you wish to improve mail spool file access you might want to use
  88.     these.  They require modification to the local mail delivery program.
  89.     One method hashes the username into one of 26 possible directories,
  90.     the other method creates a hierarchy off the name such as /m/ma/mark.
  91. Added date/time and PID to tracefile lines.
  92. Fixed bug in message size reporting.
  93. Added a flag to force RFC 1725 style update on aborts.
  94. Added a flag to not change Status headers.
  95. Change the way temporary file ownership/permissions verification
  96.     was done.
  97. Added a fix for nulls left at the beginning of mail spools.
  98. Change From separator recognition to a simpler (?) macro from Mark
  99.     Crispin's c-client.
  100. Added support to track bulletins in a single database, no user
  101.     home directories required.
  102. Added checking for valid shells to enable admins to lockout users. 
  103. Rewrote fgets to fix a problem on some operating systems.  If a
  104.     packet of "dele 1<cr><lf>dele 2<cr><lf>..." was sent, only the first
  105.     would be read by the popper.
  106. LARGESITE no longer available.  Now if you want verbose logging use
  107.     DEBUG and enable messages with -b at the command line
  108. When Kerberos support is compiled it, it must be activated with
  109.     the -k switch.  For those who insisted on one popper for both Kerberos
  110.     and non kerberos accessing.
  111. 2.1.4-r4 - NOT Released
  112. Changed how the popdrop file was being created and checked.  If
  113.     the file existed it was possible to create one owned by someone else
  114.     and snoop mail.
  115. Removed O_APPEND from the open call of the the popdrop.  Wasn't
  116.     needed.
  117. Leftover code in pop_pass for SCO caused some headaches.
  118. Pop_pass now checks both regular and extended crypt calls for
  119.     systems that support both.
  120. Added APOP option.  Several users sent in code but I used the
  121.     submission from Ian Donaldson (iand@labtam.oz.au).  This code is
  122.     derived from the MH code.  I added a -delete option to popauth so
  123.     that a user entry could be removed.  I also rewrote some of it to
  124.     allow for longer passwords.  The GNU getpass() routine was added
  125.     which is enabled by a compiler flag.  Getline was not available on
  126.     Solaris 2.3 so a flag NO_GETLINE was also added.  The password
  127.     database is now permuted so that greps don't find cleartext words.
  128.     NOTE: This verion of the popauth database is not compatible with
  129.   earlier beta versions.
  130. UID bug fixed.  Only a "From:" header was searched for before
  131.     X-UIDL insertion.  Now "To:" is checked for with a fallback of
  132.     inserting UID before the Status header.
  133. Changed the location and method of creating UID so that it is
  134.     now the first header after the message separator.
  135. UIDs are now created by pushing headers through MD5.  This makes
  136.     UIDs RFC complient to be consistant between sessions even if the popper
  137.     aborts.
  138. Somewhere a bug was introduced which caused the copyback (update)
  139.     to fail if the filesystem filled or the user was overquota.  Fixed.
  140. Added support for NIS+.  Your mileage may vary.  Code provided by
  141.     Andy Smith (abs@maunsell.co.uk).
  142. Changed where CONTENT_LENGTH was defined, now it must be added to
  143.     the build line.
  144. Fixed problems with building Linux, BSDi 2.x, and FreeBSD systems.
  145. Fixed a bug in pop_msg and pop_log.  Va_end(ap) was run prematurely.
  146. RSET didn't reset status fields correctly.  Fixed.
  147. Fixed a problem with From line separator recognition.  A blank <addr>
  148.     would cause the separator to be missed.
  149. X.400 addresses failed to parse correctly if they had imbedded "
  150.     characters.  Fixed.
  151. 2.1.4-r3
  152. Fixed a bug in UID caching.  Some messages that appeared to have
  153.     valid from lines but no received lines caused the UIDL header to not
  154.     be initialized and the cached value was undefined.  The popper would
  155.     crash if debugging was turned on or the UIDL command was issued (since
  156.     2.1.4-r2). 
  157. Fixed sequence problem in UIDL caching.  The cache was one more
  158.     than the actual message sequence.  This caused messages to be retrieved
  159.     twice.
  160. Changed the way UIDL is cached and handled to facilitate moving
  161.     of the header for old UID enabled qpopper and reduce the number of
  162.     string compares.  UILD is not inserted before the From: header.  This
  163.     feature creates a time where if the popper/system crash, the cached
  164.     (newly created) UID information will be lost.  UIDL headers which
  165.     already exist will be retained.
  166. Changed the internal calculation of message size to facilitate the
  167.     Content-Length: header.  Implemented Content-length processing.
  168. Added a define for (off_t), (gid_t), (pid_t), (uid_t), and (gid_t)
  169.     types.  Some OS's are not compiling/running well without them and most
  170.     support the types.  The default is to use these defines.  Change popper.h
  171.     if your OS does not support these types.
  172. Move the set_auth_parameters() call ahead of the umask() system
  173.     call and add the parameters argc, and argv.
  174. Swapped order of seuid & setgid so that the setgid call was first.
  175.     Setgid would fail after setuid call.
  176. Fixed a bug in the last command.  Deleted messages were included
  177.     as the last message retrieved.
  178. Changed the check of the From line from a dynamic setting to a
  179.     compiler define.  This was done to fix a bug in the way bulletins
  180.     are validated.  An improper From header was accepted causing subsequent
  181.     runs of the popper to concatenate the previous message with the bulletin.
  182. Fixed MMDF handling.  I implemented it wrong the first time :-(
  183. Added __RES checks to pop_init.
  184. Added support for Sequent (PTX) (w/sockets).  This isn't working
  185.     very well yet.  Help requested.
  186. Added support for maildrops existing in users home directories
  187.     (needed for supporting PTX and MMDF maildrops).
  188. Changed strcpy to strncpy in pop_user.c.
  189. Fixed more compile problems with OSF/1, AIX, A/UX, BSDi 2.0, IRIX,
  190.     and a few other operating systems.
  191. Changed the process wait code in pop_xmit to use pidwait exclusively.
  192.     Seems to work on most systems.
  193. 2.1.4-r2
  194. Fixed numerous (more :-[) compilation problems.
  195. Added UIDL caching in the message structure.  Scanning the file
  196.     took much to long.
  197. SunOS 4.1.x does not use 'x' when C2 shadow passwords are enabled.
  198.     The check was removed and was reported to work at several sites.
  199. Fixed an unreported bug in grabbing info on leftover .user.pop
  200.     files.  It use to create one large message :-(
  201. (Mark Erikson 4/95)
  202. 2.1.4-r1
  203. Fixed numerous compilation problems with AIX, OSF/1, SCO, AUX.
  204. Updated the INSTALL doc.
  205. 2.1.4-b3
  206. Fixed an error in bulletins.  UID was not implemented corectly :-(
  207. 2.1.4-b2
  208. Fixed compilation errors for the SCO and OSF/1 ports.
  209. Added password expiration for Linux.  Now Linux, Solaris, and
  210.     UnixWare check for expired passwords.
  211. Changed OSF/1 ifdefs in popper.c.  If you have enhance security
  212.     then you will want to define OSF1 and AUTH.  AUTH enables shadow
  213.     password checking.  Defining OSF1 and AUTH will enable the call to
  214.     set_auth_parameters().  If you do not set AUTH, then standard password
  215.     checking is done.
  216. Fixed a bug where a corrupted mail spool can cause popper to
  217.     expand the file.  If there is more than one "From " line in the
  218.     header, the popper got confused.  Now, the second From is used as
  219.     the start of the message and the first part of the header is tossed.
  220. Fixed a bug in UID handling for bulletins.
  221. Rewrote password routines to be more consistant with each other.
  222. 2.1.4-b1
  223. Added changes for a Unixware port.
  224. Added changes for an OSF/1 port.
  225. Added changes for a Linux port.
  226. Fixed a file locking problem.  When transfering a mail spool file
  227.     to the temp file, a reopen was issued which removed the lock from the
  228.     original file.
  229. Zero length files are now dealt with more efficiently.
  230. Added a minimum bulletin count for new users.  The value will be
  231.     subtracted from the max bulletin value.  Pretty much guarenteed to
  232.     receive at least one message, more if bulletins are in strict sequence.
  233. Solaris2.x handling of expired passwords.  Fixed NIS handling (I
  234.     really thought it was done correctly.  Sigh).  If you would like other
  235.     OSs to handle the expiration fields, please send me your code fragments.
  236.     I don't have the appropriate systems to do the ports myself.
  237. Added NIS fixes for other OS's.
  238. Fixed gethostbyname bug where the static area was being overwritten.
  239. Added MMDF handling.  As far as I know, it only requires placing a
  240.     special string before and after each message.  The default character
  241.     string that this popper recognizes is ^A (<CTL>-A).  Popper.h needs to
  242.     be modified if your string is different.  If there is something else
  243.     that needs to be done in handling MMDF files please let me know.
  244. Fixed total mail drop size report.
  245. Modified X-UIDL header insertion so that it doesn't conflict with
  246.     other mailers.  The header is now inserted after the last Received:
  247.     header.  This will cause problems with earlier versions of qpopper
  248.     since it does not check for other X-UIDL headers.  Clients already
  249.     using qpopper and UID will have all email redelivered once.
  250. Modified popper so that if it receives a bad username/password
  251.     it exits after a 15sec timeout.
  252. 2.1.3-r5
  253. Forgot to put a Status header out during a retrieve.
  254. Added a fix to pop bulletin code to ensure a valid value exists
  255.     in the .pop_bull file when the filesystem fills up.
  256. (Ray Davison ray@sfu.ca)
  257. (Mark Erikson  12/94)
  258. 2.1.3-r4
  259. Fixed a problem with UID and Unix mailers.  The UIDL header was
  260.     being appended to the header (after the Status header).  Some mail
  261.     programs didn't like this and removed the UIDL header, which caused
  262.     Leave Mail On Server to break for Eudora 2.1.
  263. Fixed a bug in error handling of the temporary mail file.  If
  264.     new messages were appended to the temp file but an error occured
  265.     during addition of bulletins, the temp mail file was truncated back
  266.     to the original length before new messages were added causing messages
  267.     to get tossed. (Ray Davison ray@sfu.ca)
  268. 2.1.3-r3
  269. Finally got the bugs out of left over .user.pop files and the
  270.     bulletins.
  271. Added the last command just because I was in there and it was
  272.     easy to do.
  273. (Mark Erikson 11/94)
  274. 2.1.3-r2
  275. Almost fixed retrival of .user.pop files.  Now it works much better.
  276. Fixed the random addition of messages getting appended to the
  277.     maildrop.
  278. (Mark Erikson 11/94)
  279. 2.1.3-r1
  280. Fixed another nasty bug.  If the user had a .user.pop file then
  281.     it got ignored and removed.  Since this popper cleans up after itself
  282.     so well, this condition rarely, if ever, occured.
  283. Fixed the bulletin board feature.  In combining the info gathering
  284.     pass with the mailbox copy pass, the info was never gathered on the
  285.     added bulletins.
  286. Fixed a bug where copying the pop drop back to the mail spool file
  287.     did not always detect errors.  Messages could be lost.
  288. Added a suggested fix for a problem with resetting resolver options?
  289.     Something about crypt using gethostbyname without fully qualified domain
  290.     names?  I've never heard of this problem but I put a conditional compile
  291.     in just in case.
  292. Fixed a typo in pop_passwd for running shadow passwords.
  293. Made /usr/mail the default spool directory for IRIX.
  294. Reported to AIX and Ultrix.  Still have to report to OSF1.
  295. (Mark Erikson  11/94)
  296. 2.1.2-r4
  297. Fixed a nasty bug where copying the .user.pop file back to the
  298.     maildrop could cause all the messages to be removed.
  299. (Mark Erikson 10/94)
  300. 2.1.2-r3
  301. Fixed a bug introduced in logging during init.  Caused code to
  302.     coredump on startup.
  303. (Mark Erikson  10/94)
  304. 2.1.2-r2
  305. Fixed a make problem for IRIX.  Required a -cckr option (what ever
  306.     that does).
  307. Added user information in addition to the system info already
  308. Fixed a bug in pop_parse.  It left cr/lf chars after the password
  309.     string.  Removed, now works for Sunos.
  310. Changed the service name for Kerberos from pop to rcmd.  This makes
  311.     administering srvtab files easier by not requiring them to be changed
  312.     in order to add the popper.  (requested by Paul Pomes p-pomes@uiuc.edu)
  313. (Mark Erikson  10/94)
  314. 2.1.2-r1
  315. Added Kerberos IV option to popper.  Add -DKERBEROS to your make.OS
  316.     file if you want to build a Kerberos only popper.  Mods supplied by
  317.     Christopher Davis ckd@loiosh.kei.com.
  318. Added rpop.  This feature uses the host.equiv and .rhosts files
  319.     to validate a user.  This opens up a security hole since it is quite
  320.     easy to pose as another user and PC.  I do not recommend using this
  321.     feature if you have security concerns.  Enabled by defining -DRPOP
  322.     in your make.OS file.  Mods supplied by spike@world.std.com.
  323. Fixed a bug that does not allow spaces in the middle or end of
  324.     a password.  Mods supplied by spike@world.std.com.
  325.     
  326. Removed HPUX make flag.  Added a bug in 2.1.1 for HPUX, removed
  327.     the bug and simply compiled a sysv version.  Seems to work well.
  328. Added authfile validation.  This file contains a list of users
  329.     (one each line) which have access to popper.  Enabled by defining
  330.     AUTHFILE to an authorization file in your make.OS file
  331.     (eg: -DAUTHFILE="/etc/authfile").  Mods supplied by 
  332.     spike@world.std.com.
  333. Implemented shadow passwords for SunOS4.x.  You must define
  334.     AUTH and SUNOS4 to use this feature.  You must also make sure you
  335.     have loaded C2 security.  Mods supplied by spike@world.std.com.
  336. Added mkstemp (supplied by Christopoer Davis ckd@loiosh.kei.com)
  337.     to create temporary files to get around a race condition which allowed
  338.     users to break root.  Bug pointed out by bugtraq mailing list.
  339. Added logging to mail debug of pop xtnd xmit.  This is to allow
  340.     easier tracking of messages sent via popper.  Before, a message just
  341.     showed up in the log but no account was made from where it came.
  342. Fixed a bug which allowed copying of the mail spool file to a
  343.     temporary location.  The copy did not check if there was an error
  344.     (ie: File system full) so the maildrop could be lost.  Pretty nasty.
  345.     Bug discoverd by Douglas Gatchell dgg@lanl.gov.
  346. (Mark Erikson  9/94)
  347. 2.1.1
  348. Ported popper to OSF, IRIX, BSDi, SCO, Ultrix, AU/X, AIX, SunOS4,
  349.     Solaris2, HPUX, Pyramid, generic SVR4, and BSD OS's.  Created a Makefile
  350.     to help the sysadmins generate the correct popper with little fuss.
  351. Added SIGPIP signal.  When the socket was closed but the popper
  352.     continued to send data, it core dumped.  This signal catches this.
  353. Added reset of signals to the signal handler.  This fixes the
  354.     SVR4 bug and does not harm BSD systems.
  355. Modified the popper struct to fix a system dependant parameter
  356.     for hostname length.  Several revisions of this code exist.  This
  357.     problem caused interesting mailbox names to be referenced.
  358. Picked up a flock code which ifdefs to the correct values depending
  359.     on your OS.  Does the right thing for BSD and SYSV systems.  Unknown
  360.     author.
  361. Added uidl command.  This feature gives each message a unique
  362.     identifier to help facilitate sharing of mail between several clients.
  363.     In addition to adding this command the copying and information gathering
  364.     of the maildrop were merged into a single pass which improved performance
  365.     when maildrops get large.  (Mark Erikson  8/94)
  366. 2.0
  367. Properly clean up on abnormal termination and rewrite the mail
  368.     drop file. The QC3 mods to catch SIGHUP signals and time out reads
  369.     were not enough. You also have to catch SIGPIPE signals to avoid
  370.     being killed when the client connection is aborted while the server
  371.     is writing (e.g., if you cancel downloading a large message in Eudora,
  372.     a common operation).
  373. Fixed some bad log messages.
  374. Added a mod from Don Lewis <gdonl@gv.ssi1.com>. Under SunOS 4.1.3,
  375.     and possibly other systems, the check for null passwords doesn't work.
  376.     QC3 checked only for a null password pointer in the struct returned by
  377.     getpwnam. You also have to check for an empty string returned by
  378.     getpwnam.
  379. Added a -s command line option to generate statistics messages in
  380.     the log. One message is issued for each session:
  381. Stats: username aaa bbb ccc ddd
  382. where:
  383. aaa = number of messages deleted. 
  384. bbb = number of bytes deleted. 
  385. ccc = number of messages left on server. 
  386. ddd = number of bytes left on server.
  387. Added a "POP bulletin" feature. This feature gives system
  388.     administrators a way to send important announcements to all POP users
  389.     without having to do sendmail mass mailings.
  390. The feature is enabled via the -b command line option. This option
  391.     is followed by the path of the bulletin directory.
  392. The bulletin directory contains one file per bulletin. Each file
  393.     contains a complete single mail message with header and body in
  394.     mailbox format. The first line of each such bulletin must be a "From "
  395.     line. The easiest way for sysadmins to create such bulletins is to
  396.     mail themselves a copy of the bulletin (using the account to which
  397.     they want replies to be sent), then use their mail program to save the
  398.     message to a file in the bulletin directory in mailbox format. The
  399.     bulletin directory must be world readable.
  400. The name of each bulletin file begins with the bulletin number,
  401.     and may optionally continue with any other characters. E.g., the file
  402.     name of bulletin number 23 might be:
  403.         23.pophost_down_sunday
  404. Popper creates a file named ".popbull" in the home directory of
  405.     each user. This file contains a single line recording the highest
  406.     numbered bulletin received by the user.
  407. Bulletins are processed by popper in pop_dropcopy.c, immediately
  408.     after copying the mail drop to the temporary mail drop, but before
  409.     building the temporary mail drop index. All bulletins which this user
  410.     has not received previously are appended to the temporary mail drop
  411.     file.
  412. When bulletins are copied to the temporary mail drop file, all
  413.     "To" header lines are replaced by "To: username@myhost". Any "Status:"
  414.     header lines are deleted. Otherwise, the bulletins are copied as is.
  415. When a new user checks for mail the first time, popper creates
  416.     the .popbull file in the user's home directory and seeds it with the
  417.     current maximum bulletin number. Thus new users do not get old
  418.     bulletins.
  419. All errors are logged and cause the bulletins to not be copied.
  420.     E.g., if the bulletin directory cannot be located, or the .popbull
  421.     file doesn't contain a number, or a bulletin does not begin with a
  422.     "From " line, or a bulletin name does not begin with a number, etc.
  423. I use bulletin numbers instead of last mod date/times because I
  424.     want to make it possible for a sysadmin to, for example, fix a
  425.     spelling error in a bulletin without having to force all pop users
  426.     to receive a new copy of the bulletin.
  427. Changed the default timeout from 30 to 300 seconds (5 minutes).
  428.     This value should be reasonably "safe" for even slow dialup connections.
  429. Included a mod from Steve Dorner to implement a new "XTND XLST"
  430.     command.
  431. Updated the manpage.
  432. Changed the version number to just plain version 2.0.
  433. John Norstad of Northwestern University (j-norstad@nwu.edu) (6/94).
  434. 1.831-2Q3
  435. This version fixes a bug in the cleanup code.  If an error occurs
  436.     during the login phase then a core file is dumped.  Annoying but not
  437.     serious since the .user.pop file is unlocked and the popper deals with
  438.     this old file as a matter of course.
  439.    (Mark Erikson 4/94)
  440. 1.831-2Q2
  441. Add HPUX file locking calls and a shorter timeout.  The timeout
  442.     was modified to be configureable at the command line.
  443.     
  444. The timer starts after a command or message has been delivered and
  445.     the popper is expecing input from the client.  If the response takes
  446.     longer than the timeout then the popper closes down the socket and
  447.     cleans up the files.  A value of 120 seconds seems to be pretty
  448.     for even 1200baud slip links.  Your mileage may vary.
  449.     (Mark Erikson 2/94)
  450. 1.831-2Q1
  451.     Write out changes to the temporary pop log on an abort (SIGHUP).
  452.     NOTE: This diverts from the Popper RFC but it made our users life much
  453.     easier for dialup users.
  454.     
  455. The next feature is only useful with Eudora's "Leave mail on
  456.     Server" switch set (or any other client that leaves mail on the
  457.     server).  Basically, if a user has read 5 out of 10 messages and
  458.     the session dies, the first 5 messages are marked as read.  If the
  459.     5th message is good but you only receive part of it then it will
  460.     be skipped (bad).  But if the message was bad and caused the mail
  461.     client to abort then you can continue to receive the rest of your
  462.     mail (good).  There is no switch to disable this feature.
  463.     (Keith Pilotti 1/94)
  464. 1.831uiuc2
  465. Unlinking temporary drop file (safely). (Steve Dorner, 12/12/91)
  466. 1.831uiuc1
  467. Make sure user's shell is in /etc/shells. (Paul Pomes)
  468. Timeout added. (Steve Dorner, 12/5/91)
  469. 1.83    Make sure that everything we do as root is non-destructive.
  470. (Cliff Frost poptest@nettlesome.berkeley.edu)
  471. 1.831beta
  472. is no longer beta 30 July 91
  473. (Cliff Frost poptest@nettlesome.berkeley.edu)
  474. 1.831beta.tar.Z 03 April 91
  475. Changed mkstemp to mktemp for Ultrix.  Sigh.
  476. (Cliff Frost poptest@nettlesome.berkeley.edu)
  477. 1.83beta.tar.Z 02 April 91
  478. This version makes certain that while running as root we do nothing
  479. at all destructive.
  480. (Cliff Frost poptest@nettlesome.berkeley.edu)
  481. 1.82
  482. Make the /usr/spool/mail/.userid.pop file owned by the user rather
  483. than owned by root.
  484. (Cliff Frost poptest@nettlesome.berkeley.edu)
  485. 1.82beta.tar.Z 27 March 91
  486. This version fixes problems on Encore MultiMax and some Sun releases
  487. which wouldn't allow a user to ftruncate() a file from an open
  488. file descripter unless the user owns the file.  Now the user
  489. owns the /usr/spool/mail/.userid.pop file.  Thanks to Ben Levy
  490. of FTP Software and Henry Holtzman of Apple.
  491. (Cliff Frost poptest@nettlesome.berkeley.edu)
  492. 1.81
  493. There were two versions of 1.7 floating around, 1.7b4 and 1.7b5.
  494. The difference is that 1.7b5 attempted to save disk space on 
  495. /usr/spool/mail by deleting the users permanent maildrop after
  496. making the temporary copy.  Unfortunately, if compiled with 
  497. -DDEBUG, this version could easily wipe out a users' mail file.
  498. This is now fixed.
  499. This version also fixes a security hole for systems that have
  500. /usr/spool/mail writeable by all users.
  501. With this version we go to all new SCCS IDs for all files.  This
  502. is unfortunate, and we hope it is not too much of a problem.
  503. Thanks to Steve Dorner of UIUC for pointing out the major problem.
  504. (Cliff Frost poptest@nettlesome.berkeley.edu)
  505. 1.81beta.tar.Z 20 March 91
  506. This version of popper is supposed to fix three problems reported
  507. with various versions of popper (all called 1.7 or 1.7something).
  508. 1)  Dropped network connections meant lost mail files.  Some 1.7
  509.     versions also risked corrupting mail files.
  510. 2)  Some versions of 1.7 created temporary drop files with world
  511.     read and write permissions.
  512. 3)  Some versions of 1.7 were not careful about opening the temporary
  513.     drop file.
  514. (Cliff Frost poptest@nettlesome.berkeley.edu)
  515. 1.7     Extensive re-write of the maildrop processing code contributed by 
  516.         Viktor Dukhovni <viktor@math.princeton.edu> that greatly reduces the
  517.         possibility that the maildrop can be corrupted as the result of
  518.         simultaneous access by two or more processes.
  519.         Added "pop_dropcopy" module to create a temporary maildrop from
  520.         the existing, standard maildrop as root before the setuid and 
  521.         setgid for the user is done.  This allows the temporary maildrop
  522.         to be created in a mail spool area that is not world read-writable.
  523.         This version does *not* send the sendmail "From " delimiter line
  524.         in response to a TOP or RETR command.
  525.         Encased all debugging code in #ifdef DEBUG constructs.  This code can
  526.         be included by specifying the DEGUG compiler flag.  Note:  You still
  527.         need to use the -d or -t option to obtain debugging output.
  528. (Cliff Frost poptest@nettlesome.berkeley.edu)
  529. 1.6     Corrects a bug that causes the server to crash on SunOS
  530.         4.0 systems.
  531.         Uses varargs and vsprintf (if available) in pop_log and
  532.         pop_msg.  This is enabled by the "HAVE_VSPRINTF"
  533.         compiler flag.
  534.         For systems with BSD 4.3 bind, performs a cannonical
  535.         name lookup and searches the returned address(es) for
  536.         the client's address, logging a warning message if it
  537.         is not located.  This is enabled by the "BIND43"
  538.         comiler flag.
  539.         Removed all the includes from popper.h and distributed
  540.         them throughout the porgrams files, as needed.
  541.         Reformatted the source to convert tabs to spaces and
  542.         shorten lines for display on 80-column terminals.
  543. (Cliff Frost poptest@nettlesome.berkeley.edu)
  544. 1.5     Creates the temporary maildrop with mode "600" and
  545.         immediately unlinks it.
  546.         Uses client's IP address in lieu of a canonical name if
  547.         the latter cannot be obtained.
  548.         Added "-t <file-name>" option.  The presence of this
  549.         option causes debugging output to be placed in the file
  550.         "file-name" using fprintf instead of the system log
  551.         file using syslog.
  552.         Corrected maildrop parsing problem.
  553. (Cliff Frost poptest@nettlesome.berkeley.edu)
  554. 1.4     Copies user's mail into a temporary maildrop on which
  555.         all subsequent activity is performed.
  556.         Added "pop_log" function and replaced "syslog" calls
  557.         throughout the code with it.
  558. (Cliff Frost poptest@nettlesome.berkeley.edu)
  559. 1.3     Corrected updating of Status: header line.
  560.         Added strncasecmp for systems that do not have one.
  561.         Used strncasecmp in all appropriate places.  This is
  562.         enabled by the STRNCASECMP compiler flag.
  563. (Cliff Frost poptest@nettlesome.berkeley.edu)
  564. 1.2     Support for version 4.2 syslogging added.  This is
  565.         enabled by the SYSLOG42 compiler flag.
  566. (Cliff Frost poptest@nettlesome.berkeley.edu)
  567. 1.1     Several bugs fixed.
  568. (Cliff Frost poptest@nettlesome.berkeley.edu)
  569. 1.0     Original version.
  570. (Cliff Frost poptest@nettlesome.berkeley.edu)
  571. Limitations
  572. +   The POP server copies the user's entire maildrop to /tmp and
  573.     then operates on that copy.  If the maildrop is particularly
  574.     large, or inadequate space is available in /tmp, then the
  575.     server will refuse to continue and terminate the connection.
  576. Credits
  577. Original Writers : Edward Moy, Austin Shelton
  578. Contributions and Changes : 
  579. Robert Campbell (U.C. Berkeley), Viktor Dukhovni (Princeton University),
  580. Austin Shelton (U.C. Berkeley), Steve Dorner(UIUC), Paul Pomes(UIUC), 
  581. Keith Pilotti (QUALCOMM), Mark Erikson(QUALCOMM), John Norstand (QUALCOMM),
  582. Laurence Lundblade(QUALCOMM), Praveen Yaramada (QUALCOMM)
  583. Footnotes
  584. [1] Copyright (c) 1990 Regents of the University of California.
  585.     All rights reserved.  The Berkeley software License Agreement
  586.     specifies the terms and conditions for redistribution.  Unix is
  587.     a registered trademark of AT&T corporation.  HyperCard and
  588.     Macintosh are registered trademarks of Apple Corporation.
  589. [2] M. Rose, Post Office Protocol - Version 3.  RFC  1081, NIC, 
  590.     November 1988.
  591. [3] M. Rose, Post Office Protocol - Version 3 Extended Service 
  592.     Offerings.  RFC 1082, NIC, November 1988.