diff options
| author | Sam Varshavchik | 2013-08-19 16:39:41 -0400 |
|---|---|---|
| committer | Sam Varshavchik | 2013-08-25 14:43:51 -0400 |
| commit | 9c45d9ad13fdf439d44d7443ae75da15ea0223ed (patch) | |
| tree | 7a81a04cb51efb078ee350859a64be2ebc6b8813 /sqwebmail/newmsg.h | |
| parent | a9520698b770168d1f33d6301463bb70a19655ec (diff) | |
| download | courier-libs-9c45d9ad13fdf439d44d7443ae75da15ea0223ed.tar.bz2 | |
Initial checkin
Imported from subversion report, converted to git. Updated all paths in
scripts and makefiles, reflecting the new directory hierarchy.
Diffstat (limited to 'sqwebmail/newmsg.h')
| -rw-r--r-- | sqwebmail/newmsg.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/sqwebmail/newmsg.h b/sqwebmail/newmsg.h new file mode 100644 index 0000000..37be835 --- /dev/null +++ b/sqwebmail/newmsg.h @@ -0,0 +1,73 @@ +/* +*/ +#ifndef newmsg_h +#define newmsg_h + +#if HAVE_CONFIG_H +#undef PACKAGE +#undef VERSION +#include "config.h" +#endif +#include "unicode/unicode.h" +/* +** Copyright 1998 - 2011 Double Precision, Inc. See COPYING for +** distribution information. +*/ + + +#include <stdlib.h> + +extern void newmsg_init(const char *, const char *); +extern void newmsg_do(const char *); + +extern char *newmsg_createdraft_do(const char *, const char *, int); +#define NEWMSG_SQISPELL 1 +#define NEWMSG_PCP 2 + + +struct wrap_info { + const char *output_chset; + void (*output_func)(const char *p, size_t l, void *arg); + void *arg; + + const unicode_char *uc; + size_t ucsize; + + size_t cur_index; + size_t word_start; + size_t word_width; + + size_t line_start; + size_t line_width; +}; + +void wrap_text_init(struct wrap_info *uw, + const char *output_chset, + void (*output_func)(const char *p, size_t l, void *arg), + void *arg); + +void wrap_text(struct wrap_info *uw, + const char *newmsg, + size_t newmsg_size); + + +/* +** Format flowed text format-encoded message for editing. +*/ + +struct show_textarea_info { + + size_t (*handler)(struct show_textarea_info *, const char *, size_t); + int seen_sig; + size_t sig_index; + + int stop_at_sig; +}; + +void show_textarea_init(struct show_textarea_info *info, + int stop_at_sig); + +void show_textarea(struct show_textarea_info *info, + const char *ptr, size_t cnt); + +#endif |
