diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-11-17 21:07:52 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-11-17 21:22:31 +0200 |
commit | 6f309ce61dcfb461c3fe1270efe2b23a7ac5d676 (patch) | |
tree | b692f47baf255d70eaec3eb2e68dec5a2812ac52 /include/mailutils/sys | |
parent | 2ec525acff5a090dcba8a0c7c166bbe745340902 (diff) | |
download | mailutils-6f309ce61dcfb461c3fe1270efe2b23a7ac5d676.tar.gz mailutils-6f309ce61dcfb461c3fe1270efe2b23a7ac5d676.tar.bz2 |
Implement IMAP I/O functions for client and server.
* include/mailutils/imapio.h: New file.
* include/mailutils/sys/imapio.h: New file.
* libmailutils/imapio/create.c: New file.
* libmailutils/imapio/getline.c: New file.
* libmailutils/imapio/literal.c: New file.
* libmailutils/imapio/printf.c: New file.
* libmailutils/imapio/qstring.c: New file.
* libmailutils/imapio/send.c: New file.
* libmailutils/imapio/trace.c: New file.
* libmailutils/imapio/words.c: New file.
* libmailutils/imapio/xscript.c: New file.
* configure.ac: Build libmailutils/imapio/Makefile
* include/mailutils/Makefile.am (pkginclude_HEADERS): Add imapio.h.
* include/mailutils/imapio.h: New file.
* include/mailutils/sys/Makefile.am (sysinclude_HEADERS): Add imapio.h.
* include/mailutils/sys/imapio.h: New file.
* include/mailutils/types.hin (mu_imapio_t): New data type.
* libmailutils/Makefile.am (SUBDIRS): Add imapio.
* libmailutils/tests/Makefile.am: Build imapio
* libmailutils/tests/imapio.c: New source.
* libmailutils/tests/wsp.c: Handle escape argument
Diffstat (limited to 'include/mailutils/sys')
-rw-r--r-- | include/mailutils/sys/Makefile.am | 1 | ||||
-rw-r--r-- | include/mailutils/sys/imapio.h | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/include/mailutils/sys/Makefile.am b/include/mailutils/sys/Makefile.am index e46a294ab..86412d0f3 100644 --- a/include/mailutils/sys/Makefile.am +++ b/include/mailutils/sys/Makefile.am @@ -31,6 +31,7 @@ sysinclude_HEADERS = \ header_stream.h\ header.h\ imap.h\ + imapio.h\ iterator.h\ iostream.h\ list.h\ diff --git a/include/mailutils/sys/imapio.h b/include/mailutils/sys/imapio.h new file mode 100644 index 000000000..524c5beac --- /dev/null +++ b/include/mailutils/sys/imapio.h @@ -0,0 +1,35 @@ +/* GNU Mailutils -- a suite of utilities for electronic mail + Copyright (C) 2011 Free Software Foundation, Inc. + + GNU Mailutils is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + GNU Mailutils is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. */ + +#ifndef _MAILUTILS_SYS_IMAPIO_H +# define _MAILUTILS_SYS_IMAPIO_H + +#include <mailutils/types.h> +#include <mailutils/wordsplit.h> + +struct _mu_imapio +{ + mu_stream_t _imap_stream; + char *_imap_buf_base; + size_t _imap_buf_size; + size_t _imap_buf_level; + struct mu_wordsplit _imap_ws; + int _imap_ws_flags; + int _imap_transcript:1; + int _imap_reply_ready:1; +}; + +#endif |