1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-30 08:09:04 +00:00
Commit Graph

67 Commits

Author SHA1 Message Date
Richard M. Stallman
4b265472d6 Fix previous change. 2000-01-29 23:53:44 +00:00
Richard M. Stallman
55e30d2abd (main): Improve error message if can't create lock file. 2000-01-29 23:52:29 +00:00
Gerd Moellmann
476b279958 (popmail): Allow mailbox specifications of the
form `po:username:hostname'.
1999-12-10 09:53:01 +00:00
Paul Eggert
4ee9629e2b Add support for large files. Merge glibc 2.1.2.
* 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.
1999-10-19 07:17:20 +00:00
Andrew Innes
3288d108f4 (main) [WINDOWSNT]: Call ftruncate, which is now mapped to _chsize. 1999-05-02 09:31:32 +00:00
Karl Heuer
9b956af264 (popmail, pop_retr) [MAIL_USE_POP]: When displaying
an error message from POP, mention that it's from POP, to
distinguish it from local error messages.
1998-09-21 17:36:14 +00:00
Karl Heuer
a2997b0f43 [MAIL_USE_POP]: Add the "-r" flag to reverse the
order of messages downloaded from a POP server (e.g., if the
server stores messages in mailboxes in reverse order).
1998-09-04 20:14:16 +00:00
Andrew Innes
4822b2e57f (sys_wait): Rename to wait. 1998-06-01 14:09:21 +00:00
Richard M. Stallman
0d66b6f332 Undo this previous change:
[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.
1998-05-25 20:10:50 +00:00
Richard M. Stallman
677a7bcf90 [WINDOWSNT]: Undefine DISABLE_DIRECT_ACCESS. Force
all file i/o to be in binary mode.  Include ntlib.h.
1998-05-02 06:43:03 +00:00
Karl Heuer
a51623bcff [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.
1998-04-06 22:10:30 +00:00
Andreas Schwab
2e0a5ae090 Move cancelations up. Include <stdlib.h> if
available.
1998-04-06 10:17:33 +00:00
Andreas Schwab
b1cb2966f4 (main): Fix interwoven brace and cpp conditional nesting. 1998-01-23 11:06:49 +00:00
Karl Heuer
d89d024397 Allow messages retrieved from the POP
server to contain embedded nulls.
1997-12-04 06:44:56 +00:00
Paul Eggert
d04f50310a (mbx_write) [MAIL_USE_POP]: Disable the code which quotes with a
'>' 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 <eggert@twinsun.com>.
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 <eggert@twinsun.com>.
1997-12-03 07:11:43 +00:00
Richard M. Stallman
c4009c1f3d (rindex): Add declaration. 1997-07-05 03:19:16 +00:00
Karl Heuer
ff804ff548 (popmail): Remove some unnecessary function
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.
1997-02-23 08:47:57 +00:00
Karl Heuer
b89d503573 Delete duplicate inclusion of fcntl.h
and duplicate #undefs of open, read, write, close.
1997-02-14 00:07:22 +00:00
Richard M. Stallman
fea4325c82 (main): Do not display "[POP-password]" in the usage
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.
1997-01-21 01:54:39 +00:00
Richard M. Stallman
a4deff3cac Include maillock.h (conditionally).
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.
1997-01-20 07:30:40 +00:00
Richard M. Stallman
2502581572 (main): If the lock call fails with EBUSY or
EAGAIN, retry a few times.
1996-09-29 22:45:55 +00:00
Karl Heuer
e397a0172f Replaced all BSD with BSD_SYSTEM. 1996-09-17 02:37:17 +00:00
Richard M. Stallman
61946d674c (DIRECTORY_SEP, IS_DIRECTORY_SEP): Definitions copied from lisp.h. 1996-04-28 23:37:04 +00:00
Richard M. Stallman
7f75d5c619 (access, unlink) [WINDOWSNT]: Macros undefined.
(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.
1996-04-28 19:07:35 +00:00
Richard M. Stallman
88c40feb0e Comment change. 1996-02-22 22:37:14 +00:00
Erik Naggum
3b7ad313e0 Update FSF's address in the preamble. 1996-01-15 09:18:04 +00:00
Karl Heuer
8e6208c5d2 Comment fixes. 1996-01-05 10:03:17 +00:00
Richard M. Stallman
af7bd34e27 (main): Fix previous change.
Add error check for empty OUTNAME.
1995-08-06 23:57:31 +00:00
Richard M. Stallman
d0776f5c89 (main): Mention lock file name in error message. 1995-08-05 20:19:40 +00:00
Richard M. Stallman
f7f8635da5 Comment change. 1995-07-18 00:05:14 +00:00
Richard M. Stallman
b311219135 (main) [MAIL_USE_POP]: When a user specifies a
mailbox with "po:mailbox", the mailbox is everything after the "po:" prefix.
1995-06-30 01:10:20 +00:00
Richard M. Stallman
837a3add98 (main): Add newline in usage message. 1995-06-26 20:28:33 +00:00
Richard M. Stallman
66a8ad0fd4 (main): Increase lock timeout to five minutes. 1995-05-07 22:36:27 +00:00
Richard M. Stallman
2583d6d741 (xmalloc): Declare it to return long *. 1995-05-04 06:46:51 +00:00
Richard M. Stallman
0c22b79bad (main): Skip past the colon in inname. 1995-01-11 03:36:30 +00:00
Richard M. Stallman
b32701a7ff PopServer renamed to popserver throughout. 1994-10-20 20:35:57 +00:00
Richard M. Stallman
1a9654a0c3 Don't declare malloc. 1994-10-19 22:49:37 +00:00
David J. MacKenzie
340ff9deae Eliminate some -Wall warnings. 1994-10-12 20:21:51 +00:00
David J. MacKenzie
e2f9d9afab Make functions that return nothing void, not implicitly int.
(main): Improve usage message.
(error): Write to stderr, not stdout.
1994-10-12 19:20:24 +00:00
Richard M. Stallman
2e82e3c30a Improve POP code, move most of it into a separate file.
(mbx_delimit_end, mbx_delimit_begin): Check for errors.
(mbx_write): Check for errors and for From line.
(pop_retr, popmail): Use subroutines in pop.c to do the real work.
(get_errmsg, multiline, getline, putline, pop_stat, pop_command)
(pop_init): Functions deleted.
1994-09-27 19:45:00 +00:00
Richard M. Stallman
3b9ee81953 Include config.h first thing. 1994-08-04 23:15:35 +00:00
Richard M. Stallman
29beb080a9 [HAVE_UNISTD_H]: Include unistd.h. 1994-04-13 22:23:24 +00:00
Karl Heuer
d5216c2003 (main): Use setuid, not seteuid. 1994-04-12 01:28:10 +00:00
Richard M. Stallman
63cf923df4 (main): Fix up MAIL_USE_MMDF conditional where
the indesc open was moved inside a fork.
Handle MAIL_USE_LOCKF.
(MAIL_USE_SYSTEM_LOCK): New conditional macro.
Define it if either MAIL_USE_FLOCK or MAIL_USE_LOCKF.
1994-04-05 23:04:36 +00:00
Roland McGrath
e5f7ea6858 [! HAVE_STRERROR] (strerror): Define the function. 1994-01-09 01:00:04 +00:00
Roland McGrath
3935665143 (get_errmsg, pfatal_with_name, pfatal_and_delete): Call strerror instead of
using sys_errlist.
1994-01-08 21:50:14 +00:00
Richard M. Stallman
91cf09ac12 (malloc): Don't declare it.
(xmalloc): Cast result of malloc.
(strcpy): Don't declare it.

[MSDOS]: #undef `access'.
1994-01-06 03:57:28 +00:00
Richard M. Stallman
8ca83cfd88 Include syswait.h.
Fork a subprocess and use it to copy the mail file.
1994-01-04 06:46:12 +00:00
Richard M. Stallman
3f628ebde4 (main): When making tempname, cast result of xmalloc.
Include room for EXXXXXX in the size.
Don't use result of strcpy.
1993-12-24 02:17:52 +00:00
Richard M. Stallman
85ada1b986 (main): Fix error message text. 1993-11-12 06:25:16 +00:00