aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail-features.html
Commit message (Collapse)AuthorAgeFilesLines
* Revise a bunch of links.Matthias Andree2006-03-311-1/+1
| | | | | | | Remove UWIMAP and qpopper propaganda from FAQ, replace by a Dovecot plug, and warn of qmail. svn path=/branches/BRANCH_6-3/; revision=4762
* Enable Date replacement.Matthias Andree2005-08-281-2/+2
| | | |
/*	$NetBSD: strlcat.c,v 1.16 2003/10/27 00:12:42 lukem Exp $	*/
/*	$OpenBSD: strlcat.c,v 1.10 2003/04/12 21:56:39 millert Exp $	*/

/*
 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND TODD C. MILLER DISCLAIMS ALL
 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL TODD C. MILLER BE LIABLE
 * FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

#include <sys/types.h>
#include <assert.h>
#include <string.h>

#ifndef HAVE_STRLCAT
/*
 * Appends src to string dst of size siz (unlike strncat, siz is the
 * full size of dst, not space left).  At most siz-1 characters
 * will be copied.  Always NUL terminates (unless siz <= strlen(dst)).
 * Returns strlen(src) + MIN(siz, strlen(initial dst)).
 * If retval >= siz, truncation occurred.
 */
size_t
strlcat(char *dst, const char *src, size_t siz)
{
	char *d = dst;
	const char *s = src;
	size_t n = siz;
	size_t dlen;

	/* Find the end of dst and adjust bytes left but don't go past end */
	while (n-- != 0 && *d != '\0')
		d++;
	dlen = d - dst;
	n = siz - dlen;

	if (n == 0)
		return(dlen + strlen(s));
	while (*s != '\0') {
		if (n != 1) {
			*d++ = *s;
			n--;
		}
		s++;
	}
	*d = '\0';

	return(dlen + (s - src));	/* count does not include NUL */
}
#endif
gheader'>
* First cut at ODMR support.Eric S. Raymond2001-02-071-2/+4
| | | | svn path=/trunk/; revision=3028
* Samuel Leo's LMTP enhancement.Eric S. Raymond2000-12-061-2/+4
| | | | svn path=/trunk/; revision=2995
* The retry patch.Eric S. Raymond2000-12-011-2/+4
| | | | svn path=/trunk/; revision=2994
* David Taylor's fixes for the UIDL code.Eric S. Raymond2000-08-061-2/+6
| | | | svn path=/trunk/; revision=2943
* Added dropdelivered.Eric S. Raymond2000-07-231-2/+9
| | | | svn path=/trunk/; revision=2931
* Julian Haight's changes.Eric S. Raymond2000-06-071-3/+11
| | | | svn path=/trunk/; revision=2900
* Ready to merge in Julian Haight's changes.Eric S. Raymond2000-06-071-5/+7
| | | | svn path=/trunk/; revision=2899
* BeOS support.Eric S. Raymond2000-04-081-2/+5
| | | | svn path=/trunk/; revision=2866
* speed improvement by usingh SEARCH UNSEEN.Eric S. Raymond2000-04-071-2/+10
| | | | svn path=/trunk/; revision=2863
* We now match suffixes.Eric S. Raymond2000-03-131-3/+7
| | | | svn path=/trunk/; revision=2819
* Implemented support for RFC2177 IDLE command.Eric S. Raymond2000-03-061-3/+7
| | | | svn path=/trunk/; revision=2790
* LinuxWorld hacks.Eric S. Raymond2000-02-051-2/+6
| | | | svn path=/trunk/; revision=2729
* Reread .fetchmailrc when it's changed in daemon mode.Eric S. Raymond1999-12-211-2/+6
| | | | svn path=/trunk/; revision=2674
* IPv6 patches.Eric S. Raymond1999-12-191-3/+5
| | | | svn path=/trunk/; revision=2666
* This preliminary SSL patch goes to Mike.Eric S. Raymond1999-10-271-2/+7
| | | | svn path=/trunk/; revision=2643
* NTLM support integrated.Eric S. Raymond1999-09-141-2/+4
| | | | svn path=/trunk/; revision=2554
* CRAM-MD5 authentication support a la RFC2195.Eric S. Raymond1999-06-081-2/+4
| | | | svn path=/trunk/; revision=2485
* Enable expunge to controil POP2 and POP3 checkpointing.Eric S. Raymond1999-04-181-2/+7
| | | | svn path=/trunk/; revision=2439
* FreeBSD support.Eric S. Raymond1999-02-071-2/+4
| | | | svn path=/trunk/; revision=2376
* Make the mimedecode default TRUE.Eric S. Raymond1999-01-101-3/+4
| | | | svn path=/trunk/; revision=2346
* Typo fix.Eric S. Raymond1999-01-071-3/+3
| | | | svn path=/trunk/; revision=2342
* HTML cleanup.Eric S. Raymond1999-01-021-5/+4
| | | | svn path=/trunk/; revision=2310
* RFC1894 conformance.Eric S. Raymond1998-12-301-3/+3
| | | | svn path=/trunk/; revision=2297
* gcc -Wall cleanup.Eric S. Raymond1998-12-151-4/+6
| | | | svn path=/trunk/; revision=2278
* Added bouncemail.Eric S. Raymond1998-11-291-2/+4
| | | | svn path=/trunk/; revision=2230
* Internationalization support via GNU gettext().Eric S. Raymond1998-11-261-2/+4
| | | | svn path=/trunk/; revision=2208
* Gerald Britton's support for mixed Kerberos and Hesiod.Eric S. Raymond1998-11-171-2/+4
| | | | svn path=/trunk/; revision=2183
* Added BSMTP option.Eric S. Raymond1998-10-301-2/+4
| | | | svn path=/trunk/; revision=2152
* Now we can use --limit with daemon mode.Eric S. Raymond1998-10-161-3/+6
| | | | svn path=/trunk/; revision=2091
* Documentation improvements.Eric S. Raymond1998-10-091-3/+3
| | | | svn path=/trunk/; revision=2082