aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src/movemail.c
Commit message (Collapse)AuthorAgeFilesLines
* Throughout, replace 0 destined for `exit' arg with `EXIT_SUCCESS'.Thien-Thi Nguyen2004-05-081-18/+22
| | | | | Likewise, replace 1 with `EXIT_FAILURE'. (main): Use `EXIT_SUCCESS' or `EXIT_FAILURE' for return value.
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* (main): Fix having macros in a printf statement.Juanma Barranquero2003-07-281-4/+3
|
* Check HAVE_LIBLOCKFILE like HAVE_LIBMAIL.Dave Love2003-05-201-1/+2
|
* Trailing whitespace deleted.Juanma Barranquero2003-02-041-5/+5
|
* (pop_retr): Declare comment.Dave Love2002-11-141-0/+1
|
* (popmail): Always pass two args to `error'.Richard M. Stallman2001-11-031-1/+1
|
* (index, rindex): Prototype conditionally.Dave Love2000-09-041-1/+6
|
* (toplevel): Remove redundant <fcntl.h>. Provide definitions for F_OKEli Zaretskii2000-09-011-8/+4
| | | | | and friends only after including both fcntl.h and unistd.h: some systems define them on unistd.h.
* Revert previous change.Dave Love2000-08-291-6/+0
|
* (toplevel) [HAVE_STRING_H]: Include string.h.Dave Love2000-08-281-15/+32
| | | | (toplevel) [HAVE_STRINGS_H]: Include strings.h.
* (main) [WINDOWSNT]: Force binary mode for fileio.Andrew Innes2000-08-221-2/+5
|
* Include config.h, not ../src/config.h.Dave Love2000-05-211-2/+3
| | | | (Errmsg): Bump length.
* Fix previous change.Richard M. Stallman2000-01-291-1/+1
|
* (main): Improve error message if can't create lock file.Richard M. Stallman2000-01-291-1/+1
|
* (popmail): Allow mailbox specifications of theGerd Moellmann1999-12-101-3/+20
| | | | form `po:username:hostname'.
* Add support for large files. Merge glibc 2.1.2.Paul Eggert1999-10-191-11/+1
| | | | | | | | | | | | | | | | | | * b2m.c, emacsclient.c, emacsserver.c, fakemail.c, make-docfile.c, movemail.c, pop.c: Do not include <stdlib.h>, as <config.h> does this now. * b2m.c, emacsserver.c, etags.c, profile.c: Include <config.h> before any system include files. * emacsclient.c, emacsserver.c, fakemail.c, movemail.c, pop.c, test-distrib.c: (read, write, open, close): Do not undef. * getopt.c, getopt1.c: Adopt glibc 2.1.2, with the following fix: (const): Do not define if HAVE_CONFIG_H; that's config.h's job. * getopt.h: Adopt glibc 2.1.2.
* (main) [WINDOWSNT]: Call ftruncate, which is now mapped to _chsize.Andrew Innes1999-05-021-1/+1
|
* (popmail, pop_retr) [MAIL_USE_POP]: When displayingKarl Heuer1998-09-211-6/+10
| | | | | an error message from POP, mention that it's from POP, to distinguish it from local error messages.
* [MAIL_USE_POP]: Add the "-r" flag to reverse theKarl Heuer1998-09-041-4/+32
| | | | | order of messages downloaded from a POP server (e.g., if the server stores messages in mailboxes in reverse order).
* (sys_wait): Rename to wait.Andrew Innes1998-06-011-1/+1
|
* Undo this previous change:Richard M. Stallman1998-05-251-37/+8
| | | | | | [MAIL_USE_POP]: Add support for "-g" and "-k" command-line flags to tell movemail to use GSS-API or Kerberos authentication if they are supported.
* [WINDOWSNT]: Undefine DISABLE_DIRECT_ACCESS. ForceRichard M. Stallman1998-05-021-2/+11
| | | | all file i/o to be in binary mode. Include ntlib.h.
* [MAIL_USE_POP]: Add support for "-g" and "-k"Karl Heuer1998-04-061-8/+37
| | | | | command-line flags to tell movemail to use GSS-API or Kerberos authentication if they are supported.
* Move cancelations up. Include <stdlib.h> ifAndreas Schwab1998-04-061-6/+10
| | | | available.
* (main): Fix interwoven brace and cpp conditional nesting.Andreas Schwab1998-01-231-1/+1
|
* Allow messages retrieved from the POPKarl Heuer1997-12-041-4/+5
| | | | server to contain embedded nulls.
* (mbx_write) [MAIL_USE_POP]: Disable the code which quotes with aPaul Eggert1997-12-031-0/+9
| | | | | | | | | | | | '>' any lines starting with "From " read from the POP server, but leave the code in place, wrapped in #ifdef MOVEMAIL_QUOTE_POP_FROM_LINES, in case we have to restore it later because it turns out that something is depending on it. Change suggested by Paul Eggert <[email protected]>. Convert the character \037 (^_) at the beginning of a line into the character '^' followed by the character '_', because otherwise Emacs can't parse the resulting file as a valid BABYL file. Change suggested by Paul Eggert <[email protected]>.
* (rindex): Add declaration.Richard M. Stallman1997-07-051-2/+3
|
* (popmail): Remove some unnecessary functionKarl Heuer1997-02-231-6/+5
| | | | | | | | declarations. (popmail, pop_retr): Since popmail always passes mbx_write and mbf into pop_retr, there's no reason to pass in mbx_write, and the file argument can be declared FILE * explicitly. This fixes a compilation problem on systems with 64-bit pointers.
* Delete duplicate inclusion of fcntl.hKarl Heuer1997-02-141-9/+0
| | | | and duplicate #undefs of open, read, write, close.
* (main): Do not display "[POP-password]" in the usageRichard M. Stallman1997-01-211-24/+59
| | | | | | | message when movemail is compiled without POP support. (main, popmail): Add the optional "-p" argument, which causes movemail to leave mail in the inbox after copying it into the output file.
* Include maillock.h (conditionally).Richard M. Stallman1997-01-201-70/+169
| | | | | | | | | Remove a redundant inclusion of <stdio.h>. (MAIL_USE_MAILLOCK): New macro, conditionally defined. (main): Add variable spool_name. Support the usage of maillock and mailunlock to lock and unlock mailboxes. (mail_spool_name): New function.
* (main): If the lock call fails with EBUSY orRichard M. Stallman1996-09-291-4/+38
| | | | EAGAIN, retry a few times.
* Replaced all BSD with BSD_SYSTEM.Karl Heuer1996-09-171-4/+4
|
* (DIRECTORY_SEP, IS_DIRECTORY_SEP): Definitions copied from lisp.h.Richard M. Stallman1996-04-281-0/+7
|
* (access, unlink) [WINDOWSNT]: Macros undefined.Richard M. Stallman1996-04-281-10/+38
| | | | | | | | | | | | | (fork, syswait, DISABLE_DIRECT_ACCESS) [WINDOWSNT]: Macros defined. [WINDOWSNT]: Include locking.h. (main): Update usage message. Use IS_DIRECTORY_SEP. (main) [DISABLE_DIRECT_ACCESS]: Don't check access if defined. (main) [WINDOWSNT]: Invoke locking instead of flock. (main) [MAIL_USE_SYSTEM_LOCK && WINDOWSNT]: Emulate ftruncate. (main) [MAIL_USE_POP]: Pass password to popmail if used. Include winsock.h; don't include unix inet headers. (popmail): Add password argument and pass it to pop_open. Open output file in binary mode.
* Comment change.Richard M. Stallman1996-02-221-1/+1
|
* Update FSF's address in the preamble.Erik Naggum1996-01-151-1/+2
|
* Comment fixes.Karl Heuer1996-01-051-1/+1
|
* (main): Fix previous change.Richard M. Stallman1995-08-061-2/+6
| | | | Add error check for empty OUTNAME.
* (main): Mention lock file name in error message.Richard M. Stallman1995-08-051-1/+5
|
* Comment change.Richard M. Stallman1995-07-181-2/+2
|
* (main) [MAIL_USE_POP]: When a user specifies aRichard M. Stallman1995-06-301-7/+2
| | | | mailbox with "po:mailbox", the mailbox is everything after the "po:" prefix.
* (main): Add newline in usage message.Richard M. Stallman1995-06-261-1/+1
|
* (main): Increase lock timeout to five minutes.Richard M. Stallman1995-05-071-2/+5
|
* (xmalloc): Declare it to return long *.Richard M. Stallman1995-05-041-3/+3
|
* (main): Skip past the colon in inname.Richard M. Stallman1995-01-111-0/+1
|
* PopServer renamed to popserver throughout.Richard M. Stallman1994-10-201-2/+2
|
* Don't declare malloc.Richard M. Stallman1994-10-191-1/+0
|