*inbox*: if empty, only bypass *folder* to $MAIL or builtin default
[s-mailx.git] / COPYING
blobcfc692f9201340fc4fb41d4c46dd0ef489bd9695
1 /*
2  * Copyright (c) 2012 - 2015 Steffen (Daode) Nurpmeso.  All rights reserved.
3  *
4  * Permission to use, copy, modify, and/or distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  */
18  * Copyright (c) 2000
19  *      Gunnar Ritter. All rights reserved.
20  *
21  * Redistribution and use in source and binary forms, with or without
22  * modification, are permitted provided that the following conditions
23  * are met:
24  * 1. Redistributions of source code must retain the above copyright
25  *    notice, this list of conditions and the following disclaimer.
26  * 2. Redistributions in binary form must reproduce the above copyright
27  *    notice, this list of conditions and the following disclaimer in the
28  *    documentation and/or other materials provided with the distribution.
29  * 3. All advertising materials mentioning features or use of this software
30  *    must display the following acknowledgements:
31  *      This product includes software developed by the University of
32  *              California, Berkeley and its contributors.
33  *      This product includes software developed by Christos Zoulas.
34  *      This product includes software developed by Gunnar Ritter
35  *              and his contributors.
36  * 4. Neither the name of the University nor the names of its contributors
37  *    nor the name of Gunnar Ritter nor the names of his contributors
38  *    may be used to endorse or promote products derived from this software
39  *    without specific prior written permission.
40  *
41  * THIS SOFTWARE IS PROVIDED ``AS IS'', AND ANY EXPRESS OR IMPLIED WARRANTIES,
42  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
43  * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
44  * THE DEVELOPERS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
45  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
46  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
47  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
48  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
49  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
50  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
51  */
54  * Copyright (c) 1980, 1993
55  *      The Regents of the University of California.  All rights reserved.
56  * Copyright (c) 1996
57  *      Christos Zoulas.  All rights reserved.
58  *
59  * Redistribution and use in source and binary forms, with or without
60  * modification, are permitted provided that the following conditions
61  * are met:
62  * 1. Redistributions of source code must retain the above copyright
63  *    notice, this list of conditions and the following disclaimer.
64  * 2. Redistributions in binary form must reproduce the above copyright
65  *    notice, this list of conditions and the following disclaimer in the
66  *    documentation and/or other materials provided with the distribution.
67  * 3. Neither the name of the University nor the names of its contributors
68  *    may be used to endorse or promote products derived from this software
69  *    without specific prior written permission.
70  *
71  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
72  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
73  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
74  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
75  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
76  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
77  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
78  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
79  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
80  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
81  * SUCH DAMAGE.
82  */
84 ==========================================================================
85 mime_enc.c:
86 QP quoting idea, _b64_decode(), b64_encode():
89  * Copyright (c) 2006 The NetBSD Foundation, Inc.
90  * All rights reserved.
91  *
92  * This code is derived from software contributed to The NetBSD Foundation
93  * by Anon Ymous.
94  *
95  * Redistribution and use in source and binary forms, with or without
96  * modification, are permitted provided that the following conditions
97  * are met:
98  * 1. Redistributions of source code must retain the above copyright
99  *    notice, this list of conditions and the following disclaimer.
100  * 2. Redistributions in binary form must reproduce the above copyright
101  *    notice, this list of conditions and the following disclaimer in the
102  *    documentation and/or other materials provided with the distribution.
104  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
105  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
106  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
107  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
108  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
109  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
110  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
111  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
112  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
113  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
114  * POSSIBILITY OF SUCH DAMAGE.
115  */
117 ==========================================================================
118 nail.1:
120 The Institute of Electrical and Electronics Engineers and The Open Group,
121 have given us permission to reprint portions of their documentation.
123 In the following statement, the phrase ``this text'' refers to portions
124 of the system documentation.
126 Portions of this text are reprinted and reproduced in electronic form in
127 the 'nail' mail user agent, from IEEE Std 1003.1, 2003 Edition, Standard for
128 Information Technology -- Portable Operating System Interface (POSIX),
129 The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the
130 Institute of Electrical and Electronics Engineers, Inc and The Open Group.
131 In the event of any discrepancy between these versions and the original
132 IEEE and The Open Group Standard, the original IEEE and The Open Group
133 Standard is the referee document.
135 The original Standard can be obtained online at
136 http://www.opengroup.org/unix/online.html .
138 This notice shall appear on any product containing this material.
140 ==========================================================================
141 imap_gssapi.h, smtp_gssapi.h:
142 partially derived from sample code in:
145  * GSS-API Programming Guide
146  * Part No: 816-1331-11
147  * Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A.
149  * (c) 2002 Sun Microsystems
150  */
152  * Copyright 1994 by OpenVision Technologies, Inc.
153  * 
154  * Permission to use, copy, modify, distribute, and sell this software
155  * and its documentation for any purpose is hereby granted without fee,
156  * provided that the above copyright notice appears in all copies and
157  * that both that copyright notice and this permission notice appear in
158  * supporting documentation, and that the name of OpenVision not be used
159  * in advertising or publicity pertaining to distribution of the software
160  * without specific, written prior permission. OpenVision makes no
161  * representations about the suitability of this software for any
162  * purpose.  It is provided "as is" without express or implied warranty.
163  * 
164  * OPENVISION DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
165  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
166  * EVENT SHALL OPENVISION BE LIABLE FOR ANY SPECIAL, INDIRECT OR
167  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
168  * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
169  * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
170  * PERFORMANCE OF THIS SOFTWARE.
171  */
173 ==========================================================================
174 rfc1321.h:
175 derived from RFC 1321:
177 Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
178 rights reserved.
180 License to copy and use this software is granted provided that it
181 is identified as the "RSA Data Security, Inc. MD5 Message-Digest
182 Algorithm" in all material mentioning or referencing this software
183 or this function.
185 License is also granted to make and use derivative works provided
186 that such works are identified as "derived from the RSA Data
187 Security, Inc. MD5 Message-Digest Algorithm" in all material
188 mentioning or referencing the derived work.
190 RSA Data Security, Inc. makes no representations concerning either
191 the merchantability of this software or the suitability of this
192 software for any particular purpose. It is provided "as is"
193 without express or implied warranty of any kind.
195 These notices must be retained in any copies of any part of this
196 documentation and/or software.
198 ==========================================================================
199 hmac_md5():
200 derived from:
202 Network Working Group                                       H. Krawczyk
203 Request for Comments: 2104                                          IBM
204 Category: Informational                                      M. Bellare
205                                                                    UCSD
206                                                              R. Canetti
207                                                                     IBM
208                                                           February 1997
211              HMAC: Keyed-Hashing for Message Authentication
213 Status of This Memo
215    This memo provides information for the Internet community.  This memo
216    does not specify an Internet standard of any kind.  Distribution of
217    this memo is unlimited.
219 Appendix -- Sample Code