Glenn Morris
4a9f99bdfb
Switch license to GPLv3 or later.
2007-07-25 05:08:27 +00:00
Glenn Morris
b3d90e4611
Update copyright for years from Emacs 21 to present (mainly adding
...
2001).
2007-01-16 03:47:24 +00:00
Richard M. Stallman
5e5b35c7ec
(main): Check for negative value from `read'.
2006-04-29 18:55:19 +00:00
Thien-Thi Nguyen
273dc16aaf
Update years in copyright notice; nfc.
2006-02-06 11:28:28 +00:00
Thien-Thi Nguyen
92b47a4a99
Update years in copyright notice; nfc.
2005-08-07 10:56:27 +00:00
Lute Kamstra
364c38d3af
Update FSF's address.
2005-07-04 15:47:28 +00:00
Andreas Schwab
a9eedf40f4
(fatal): Accept third parameter and pass down to
...
error.
(pfatal_with_name): Pass error string as format parameter instead
of as part of format string.
(pfatal_and_delete): Likewise.
(main): Adjust call to fatal.
(xmalloc): Likewise.
2005-02-04 22:11:43 +00:00
Richard M. Stallman
17a60964b9
(popmail): Don't use Errmsg as format string.
2005-01-29 16:56:30 +00:00
Thien-Thi Nguyen
65396510c3
Throughout, replace 0 destined for exit' arg with EXIT_SUCCESS'.
...
Likewise, replace 1 with `EXIT_FAILURE'.
(main): Use `EXIT_SUCCESS' or `EXIT_FAILURE' for return value.
2004-05-08 15:26:33 +00:00
Miles Bader
ab5796a9f9
Add arch taglines
2003-09-01 15:45:59 +00:00
Juanma Barranquero
bb5618fe38
(main): Fix having macros in a printf statement.
2003-07-28 22:10:30 +00:00
Dave Love
dd843b6af3
Check HAVE_LIBLOCKFILE like HAVE_LIBMAIL.
2003-05-20 16:34:35 +00:00
Juanma Barranquero
177c0ea743
Trailing whitespace deleted.
2003-02-04 14:56:31 +00:00
Dave Love
b553981f42
(pop_retr): Declare comment.
2002-11-14 14:09:51 +00:00
Richard M. Stallman
08fa58c940
(popmail): Always pass two args to `error'.
2001-11-03 19:03:48 +00:00
Dave Love
517699cac6
(index, rindex): Prototype conditionally.
2000-09-04 15:26:16 +00:00
Eli Zaretskii
f72adc12d5
(toplevel): Remove redundant <fcntl.h>. Provide definitions for F_OK
...
and friends only after including both fcntl.h and unistd.h: some
systems define them on unistd.h.
2000-09-01 13:50:50 +00:00
Dave Love
fab407405d
Revert previous change.
2000-08-29 17:15:31 +00:00
Dave Love
cc3b64e8ff
(toplevel) [HAVE_STRING_H]: Include string.h.
...
(toplevel) [HAVE_STRINGS_H]: Include strings.h.
2000-08-28 18:56:15 +00:00
Andrew Innes
9112a2a976
(main) [WINDOWSNT]: Force binary mode for fileio.
2000-08-22 21:20:07 +00:00
Dave Love
752fb47256
Include config.h, not ../src/config.h.
...
(Errmsg): Bump length.
2000-05-21 11:02:50 +00:00
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
Roland McGrath
18160b98ce
Include <config.h> instead of "config.h".
1993-09-10 06:15:46 +00:00
Jim Blandy
12a0565a22
* movemail.c [MAIL_USE_POP] (main): Don't use non-portable
...
string-handling functions.
1993-05-30 19:26:11 +00:00
Jim Blandy
d8cafeb502
entered into RCS
1992-06-30 13:55:35 +00:00
Richard M. Stallman
cecf0f21e1
*** empty log message ***
1992-05-07 20:13:17 +00:00
Jim Blandy
0856496329
*** empty log message ***
1992-04-01 11:14:15 +00:00
Richard M. Stallman
906ad89def
*** empty log message ***
1992-03-28 21:00:42 +00:00
Jim Blandy
9fd54390a8
*** empty log message ***
1992-03-15 03:47:41 +00:00
David J. MacKenzie
e97dd18354
*** empty log message ***
1992-03-09 17:40:11 +00:00
Richard M. Stallman
08d0752fde
*** empty log message ***
1992-01-18 22:46:00 +00:00
Richard M. Stallman
cfa191ff73
*** empty log message ***
1991-12-07 22:01:44 +00:00
Richard M. Stallman
06000e3c72
*** empty log message ***
1991-07-25 05:31:52 +00:00
Richard M. Stallman
70da2b8669
*** empty log message ***
1990-11-29 22:33:22 +00:00
Richard M. Stallman
b1ce62a86f
*** empty log message ***
1990-11-13 05:11:43 +00:00
Joseph Arceneaux
93320c2386
*** empty log message ***
1989-10-31 16:00:17 +00:00
Richard M. Stallman
4ec9a77ab6
*** empty log message ***
1989-06-15 16:52:48 +00:00
Richard M. Stallman
4293ba7fe6
*** empty log message ***
1989-05-14 22:52:53 +00:00
Richard M. Stallman
237e001615
Initial revision
1989-04-28 03:54:04 +00:00