Mercurial > hg > mlmmj
annotate include/prepstdreply.h @ 754:ecb991e41a4c
Add $controlN$ substitution
The interfaces to substitute() and substitute_one() have changed, as they
now need to know the listdir to be able to find control files
author | Ben Schmidt |
---|---|
date | Wed, 06 Oct 2010 23:30:26 +1100 |
parents | b00eb39643c1 |
children | c3ee2bfaeb02 |
rev | line source |
---|---|
188 | 1 /* Copyright (C) 2004 Mads Martin Joergensen <mmj at mmj.dk> |
2 * | |
3 * $Id$ | |
4 * | |
225 | 5 * Permission is hereby granted, free of charge, to any person obtaining a copy |
6 * of this software and associated documentation files (the "Software"), to | |
7 * deal in the Software without restriction, including without limitation the | |
8 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
9 * sell copies of the Software, and to permit persons to whom the Software is | |
10 * furnished to do so, subject to the following conditions: | |
11 * | |
12 * The above copyright notice and this permission notice shall be included in | |
13 * all copies or substantial portions of the Software. | |
14 * | |
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | |
21 * IN THE SOFTWARE. | |
188 | 22 */ |
23 | |
24 #ifndef PREPSTDREPLY_H | |
25 #define PREPSTDREPLY_H | |
26 | |
520 | 27 char *substitute(const char *line, const char *listaddr, const char *listdelim, |
754 | 28 size_t datacount, char **data, const char *listdir); |
520 | 29 char *substitute_one(const char *line, const char *listaddr, |
754 | 30 const char *listdelim, size_t datacount, char **data, const char *listdir); |
652 | 31 int open_listtext(const char *listdir, const char *filename); |
188 | 32 char *prepstdreply(const char *listdir, const char *filename, const char *from, |
660
c26e97a2207b
Added support for the 'originalmail' keyword (Sascha Sommer)
mortenp
parents:
652
diff
changeset
|
33 const char *to, const char *replyto, size_t tokencount, |
741
b72bcb7e08a2
Arbitrary headers in listtexts, fix default Content-Transfer-Encoding: header,
Ben Schmidt
parents:
660
diff
changeset
|
34 char **data, const char *mailname); |
188 | 35 |
36 #endif /* PREPSTDREPLY_H */ |