/usr/include/mimetic/rfc822/mailboxlist.h is in libmimetic-dev 0.9.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | /***************************************************************************
copyright : (C) 2002-2008 by Stefano Barbato
email : stefano@codesink.org
$Id: mailboxlist.h,v 1.12 2008-10-07 11:06:27 tat Exp $
***************************************************************************/
#ifndef _MIMETIC_RFC822_MAILBOXLIST_H_
#define _MIMETIC_RFC822_MAILBOXLIST_H_
#include <string>
#include <vector>
#include <mimetic/utils.h>
#include <mimetic/rfc822/mailbox.h>
namespace mimetic
{
/// List of Mailbox objects
/*!
MailboxList class is a container class that holds Mailbox objects
\code
const char* str = "dest@domain.com, friends: one@friends.net, "
"two@friends.net;, last@users.com";
MailboxList aList(str);
MailboxList::const_iterator bit(aList.begin()), eit(aList.end());
for(; bit != eit; ++bit)
{
cout << *bit;
}
\endcode
\sa <a href="../RFC/rfc822.txt">RFC822</a>
*/
struct MailboxList: public FieldValue, public std::vector<Mailbox>
{
MailboxList();
MailboxList(const char*);
MailboxList(const std::string&);
MailboxList(const std::string&, const std::string&);
std::string str() const;
protected:
FieldValue* clone() const;
private:
void set(const std::string&);
istring m_name;
};
}
#endif
|