xref: /netbsd-src/usr.bin/mail/format.h (revision ce099b40997c43048fb78bd578195f81d2456523)
1*ce099b40Smartin /*	$NetBSD: format.h,v 1.4 2008/04/28 20:24:14 martin Exp $	*/
2f1830357Schristos 
3f1830357Schristos /*-
4f1830357Schristos  * Copyright (c) 2006 The NetBSD Foundation, Inc.
5f1830357Schristos  * All rights reserved.
6f1830357Schristos  *
7f1830357Schristos  * This code is derived from software contributed to The NetBSD Foundation
8f1830357Schristos  * by Anon Ymous.
9f1830357Schristos  *
10f1830357Schristos  * Redistribution and use in source and binary forms, with or without
11f1830357Schristos  * modification, are permitted provided that the following conditions
12f1830357Schristos  * are met:
13f1830357Schristos  * 1. Redistributions of source code must retain the above copyright
14f1830357Schristos  *    notice, this list of conditions and the following disclaimer.
15f1830357Schristos  * 2. Redistributions in binary form must reproduce the above copyright
16f1830357Schristos  *    notice, this list of conditions and the following disclaimer in the
17f1830357Schristos  *    documentation and/or other materials provided with the distribution.
18f1830357Schristos  *
19f1830357Schristos  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20f1830357Schristos  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21f1830357Schristos  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22f1830357Schristos  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23f1830357Schristos  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24f1830357Schristos  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25f1830357Schristos  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26f1830357Schristos  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27f1830357Schristos  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28f1830357Schristos  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29f1830357Schristos  * POSSIBILITY OF SUCH DAMAGE.
30f1830357Schristos  */
31f1830357Schristos 
32f1830357Schristos #ifndef __FORMAT_H__
33f1830357Schristos #define __FORMAT_H__
34f1830357Schristos 
35f1830357Schristos char *smsgprintf(const char *, struct message *);
36f1830357Schristos void fmsgprintf(FILE *, const char *, struct message *);
37f1830357Schristos 
38d727506fSchristos void dateof(struct tm *, struct message *, int);
39f3098750Schristos 
40f1830357Schristos #define DEFAULT_PROMPT		"& "
41f3098750Schristos #define DEFAULT_HEADER_FORMAT	"%??%P%Q%?& ?%3i %-21.20f %a %b %e %R %3K/%-5O \"%q\""
42f1830357Schristos 
43f1830357Schristos #endif /* __FORMAT_H__ */
44