/usr/include/mimetic/rfc822/group.h is in libmimetic-dev 0.9.8-6.
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 54 55 56 57 58 | /***************************************************************************
copyright : (C) 2002-2008 by Stefano Barbato
email : stefano@codesink.org
$Id: group.h,v 1.12 2008-10-07 11:06:27 tat Exp $
***************************************************************************/
#ifndef _MIMETIC_RFC822_GROUP_H_
#define _MIMETIC_RFC822_GROUP_H_
#include <string>
#include <vector>
#include <mimetic/rfc822/mailbox.h>
namespace mimetic
{
/// Represent the \e group type in the RFC822
/**
Groups class is a container class that stores Rfc822::Mailbox objects.
Use this class when you need to create or parse rfc822 \e email \e groups
Parsing:
\code
Rfc822::Group grp("drivers: first@do.com, second@dom.com, last@dom.com;");
Rfc822::Group::const_iterator bit(grp.begin()), eit(grp.end());
cout << "Group " << grp.name() << endl;
for(; bit != eit; ++bit)
cout << " " << *bit << endl;
\endcode
Building:
\code
Rfc822::Group grp;
grp.push_back("first@dom.com");
grp.push_back(Rfc822::Mailbox("second@dom.com"));
grp.push_back(string("last@dom.com"));
\endcode
\sa <a href="../RFC/rfc822.txt">RFC822</a>
*/
struct Group: public FieldValue, public std::vector<Mailbox>
{
Group();
Group(const char*);
Group(const std::string&);
void name(const std::string&);
std::string name(int bCanonical = 0) const;
void set(const std::string&);
std::string str() const;
protected:
FieldValue* clone() const;
private:
std::string m_text, m_name;
};
}
#endif
|