comparison include/prepstdreply.h @ 742:b00eb39643c1

Changes to how $originalmail$ works - No longer buffer the whole mail in memory, but copy a line at a time - Allow a line-count - Change to the indent/whitespace behaviour; to essentially get current behaviour, a space must be prepended to the lines currently containing $originalmail$ in the listtexts The interface to substitute() and substitute_one() has changed. They no longer take the original mail filename, and cannot be used to do $originalmail$ substitution. This was never used except by prepstdreply() which now incorporates that substitution itself.
author Ben Schmidt
date Mon, 20 Sep 2010 02:05:31 +1000
parents b72bcb7e08a2
children ecb991e41a4c
comparison
equal deleted inserted replaced
741:b72bcb7e08a2 742:b00eb39643c1
23 23
24 #ifndef PREPSTDREPLY_H 24 #ifndef PREPSTDREPLY_H
25 #define PREPSTDREPLY_H 25 #define PREPSTDREPLY_H
26 26
27 char *substitute(const char *line, const char *listaddr, const char *listdelim, 27 char *substitute(const char *line, const char *listaddr, const char *listdelim,
28 size_t datacount, char **data, const char* mailname); 28 size_t datacount, char **data);
29 char *substitute_one(const char *line, const char *listaddr, 29 char *substitute_one(const char *line, const char *listaddr,
30 const char *listdelim, size_t datacount, char **data, 30 const char *listdelim, size_t datacount, char **data);
31 const char* mailname);
32 int open_listtext(const char *listdir, const char *filename); 31 int open_listtext(const char *listdir, const char *filename);
33 char *prepstdreply(const char *listdir, const char *filename, const char *from, 32 char *prepstdreply(const char *listdir, const char *filename, const char *from,
34 const char *to, const char *replyto, size_t tokencount, 33 const char *to, const char *replyto, size_t tokencount,
35 char **data, const char *mailname); 34 char **data, const char *mailname);
36 35