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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
188
2da457be244c New function to prepare a standard mail in an easy way.
mmj
parents:
diff changeset
1 /* Copyright (C) 2004 Mads Martin Joergensen <mmj at mmj.dk>
2da457be244c New function to prepare a standard mail in an easy way.
mmj
parents:
diff changeset
2 *
2da457be244c New function to prepare a standard mail in an easy way.
mmj
parents:
diff changeset
3 * $Id$
2da457be244c New function to prepare a standard mail in an easy way.
mmj
parents:
diff changeset
4 *
225
3f177909efc8 Goodbye GPL license, Welcome MIT
mmj
parents: 188
diff changeset
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
3f177909efc8 Goodbye GPL license, Welcome MIT
mmj
parents: 188
diff changeset
6 * of this software and associated documentation files (the "Software"), to
3f177909efc8 Goodbye GPL license, Welcome MIT
mmj
parents: 188
diff changeset
7 * deal in the Software without restriction, including without limitation the
3f177909efc8 Goodbye GPL license, Welcome MIT
mmj
parents: 188
diff changeset
8 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
3f177909efc8 Goodbye GPL license, Welcome MIT
mmj
parents: 188
diff changeset
9 * sell copies of the Software, and to permit persons to whom the Software is
3f177909efc8 Goodbye GPL license, Welcome MIT
mmj
parents: 188
diff changeset
10 * furnished to do so, subject to the following conditions:
3f177909efc8 Goodbye GPL license, Welcome MIT
mmj
parents: 188
diff changeset
11 *
3f177909efc8 Goodbye GPL license, Welcome MIT
mmj
parents: 188
diff changeset
12 * The above copyright notice and this permission notice shall be included in
3f177909efc8 Goodbye GPL license, Welcome MIT
mmj
parents: 188
diff changeset
13 * all copies or substantial portions of the Software.
3f177909efc8 Goodbye GPL license, Welcome MIT
mmj
parents: 188
diff changeset
14 *
3f177909efc8 Goodbye GPL license, Welcome MIT
mmj
parents: 188
diff changeset
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3f177909efc8 Goodbye GPL license, Welcome MIT
mmj
parents: 188
diff changeset
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3f177909efc8 Goodbye GPL license, Welcome MIT
mmj
parents: 188
diff changeset
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3f177909efc8 Goodbye GPL license, Welcome MIT
mmj
parents: 188
diff changeset
18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3f177909efc8 Goodbye GPL license, Welcome MIT
mmj
parents: 188
diff changeset
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
3f177909efc8 Goodbye GPL license, Welcome MIT
mmj
parents: 188
diff changeset
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
3f177909efc8 Goodbye GPL license, Welcome MIT
mmj
parents: 188
diff changeset
21 * IN THE SOFTWARE.
188
2da457be244c New function to prepare a standard mail in an easy way.
mmj
parents:
diff changeset
22 */
2da457be244c New function to prepare a standard mail in an easy way.
mmj
parents:
diff changeset
23
2da457be244c New function to prepare a standard mail in an easy way.
mmj
parents:
diff changeset
24 #ifndef PREPSTDREPLY_H
2da457be244c New function to prepare a standard mail in an easy way.
mmj
parents:
diff changeset
25 #define PREPSTDREPLY_H
2da457be244c New function to prepare a standard mail in an easy way.
mmj
parents:
diff changeset
26
520
734ce7aa42bb 1.2.9-RC1 with recipdelim patch
mmj
parents: 365
diff changeset
27 char *substitute(const char *line, const char *listaddr, const char *listdelim,
754
ecb991e41a4c Add $controlN$ substitution
Ben Schmidt
parents: 742
diff changeset
28 size_t datacount, char **data, const char *listdir);
520
734ce7aa42bb 1.2.9-RC1 with recipdelim patch
mmj
parents: 365
diff changeset
29 char *substitute_one(const char *line, const char *listaddr,
754
ecb991e41a4c Add $controlN$ substitution
Ben Schmidt
parents: 742
diff changeset
30 const char *listdelim, size_t datacount, char **data, const char *listdir);
652
00a1c5697fa6 Added unicode support to listtexts
mortenp
parents: 553
diff changeset
31 int open_listtext(const char *listdir, const char *filename);
188
2da457be244c New function to prepare a standard mail in an easy way.
mmj
parents:
diff changeset
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
2da457be244c New function to prepare a standard mail in an easy way.
mmj
parents:
diff changeset
35
2da457be244c New function to prepare a standard mail in an easy way.
mmj
parents:
diff changeset
36 #endif /* PREPSTDREPLY_H */