1*ce7279d8Sjsg /* $OpenBSD: mail.local.h,v 1.8 2024/05/21 05:00:47 jsg Exp $ */ 209850d41Smillert 309850d41Smillert /*- 409850d41Smillert * Copyright (c) 1990 The Regents of the University of California. 509850d41Smillert * All rights reserved. 609850d41Smillert * 709850d41Smillert * Redistribution and use in source and binary forms, with or without 809850d41Smillert * modification, are permitted provided that the following conditions 909850d41Smillert * are met: 1009850d41Smillert * 1. Redistributions of source code must retain the above copyright 1109850d41Smillert * notice, this list of conditions and the following disclaimer. 1209850d41Smillert * 2. Redistributions in binary form must reproduce the above copyright 1309850d41Smillert * notice, this list of conditions and the following disclaimer in the 1409850d41Smillert * documentation and/or other materials provided with the distribution. 15e33d3bd3Smillert * 3. Neither the name of the University nor the names of its contributors 1609850d41Smillert * may be used to endorse or promote products derived from this software 1709850d41Smillert * without specific prior written permission. 1809850d41Smillert * 1909850d41Smillert * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2009850d41Smillert * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2109850d41Smillert * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2209850d41Smillert * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2309850d41Smillert * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2409850d41Smillert * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2509850d41Smillert * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2609850d41Smillert * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2709850d41Smillert * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2809850d41Smillert * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2909850d41Smillert * SUCH DAMAGE. 3009850d41Smillert */ 3109850d41Smillert 32c72b5b24Smillert int deliver(int, char *, int); 33c72b5b24Smillert void merr(int, const char *, ...); 34e1869fb3Smillert void mwarn(const char *, ...); 35c711e483Smillert int getlock(const char *, struct passwd *); 36c72b5b24Smillert void notifybiff(char *); 37c72b5b24Smillert void rellock(void); 38668b2622Sderaadt int storemail(char *); 39c711e483Smillert int lockspool(const char *, struct passwd *); 40c711e483Smillert void unlockspool(void); 41c72b5b24Smillert void usage(void); 42