/* $Cambridge: hermes/src/prayer/session/msg.h,v 1.3 2008/09/16 09:59:58 dpc22 Exp $ */
/************************************************
 *    Prayer - a Webmail Interface              *
 ************************************************/

/* Copyright (c) University of Cambridge 2000 - 2008 */
/* See the file NOTICE for conditions of use and distribution. */

typedef struct msg_data {
    struct session *session;
    MAILSTREAM *stream;         /* stream */
    unsigned long msgno;        /* message number */
} MSGDATA;

void msg_string_init(STRING * s, void *data, unsigned long size);
char msg_string_next(STRING * s);
void msg_string_setpos(STRING * s, unsigned long i);

extern STRINGDRIVER msg_string;
