1
/***************************************************************************
2
copyright : (C) 2002-2005 by Stefano Barbato
3
email : stefano@codesink.org
5
$Id: mailboxlist.h,v 1.11 2005/02/23 10:26:15 tat Exp $
6
***************************************************************************/
8
/***************************************************************************
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
15
***************************************************************************/
16
#ifndef _MIMETIC_RFC822_MAILBOXLIST_H_
17
#define _MIMETIC_RFC822_MAILBOXLIST_H_
20
#include <mimetic/utils.h>
21
#include <mimetic/rfc822/mailbox.h>
26
/// List of Mailbox objects
28
MailboxList class is a container class that holds Mailbox objects
31
const char* str = "dest@domain.com, friends: one@friends.net, "
32
"two@friends.net;, last@users.com";
33
MailboxList aList(str);
34
MailboxList::const_iterator bit(aList.begin()), eit(aList.end());
35
for(; bit != eit; ++bit)
41
\sa <a href="../RFC/rfc822.txt">RFC822</a>
43
struct MailboxList: public FieldValue, public std::vector<Mailbox>
46
MailboxList(const char*);
47
MailboxList(const std::string&);
48
MailboxList(const std::string&, const std::string&);
50
std::string str() const;
52
FieldValue* clone() const;
54
void set(const std::string&);