File: cdrcptinfo.h

package info (click to toggle)
courier 0.60.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 52,288 kB
  • ctags: 12,677
  • sloc: ansic: 165,348; cpp: 24,820; sh: 16,410; perl: 6,839; makefile: 3,621; yacc: 289; sed: 16
file content (49 lines) | stat: -rw-r--r-- 1,205 bytes parent folder | download | duplicates (11)
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
/*
** Copyright 1998 - 2007 Double Precision, Inc.
** See COPYING for distribution information.
*/

#ifndef	cdrcptinfo_h
#define	cdrcptinfo_h

#if	HAVE_CONFIG_H
#undef	PACKAGE
#undef	VERSION
#include	"config.h"
#endif

#include	<string>
#include	<vector>
#include	<list>

class delinfo;
class drvinfo;
class msgq;
class pendelinfo;

class rcptinfo {
public:
    msgq	*msg;	// This is the message these receipients are part of
    drvinfo	*delmodule;	// Use this module
    pendelinfo  *pending;	// Not NULL if we're not delivering these
				// recipients yet.
    std::list<rcptinfo *>::iterator
	    pendingpos;		// My position in pendelinfo

    std::string envsender;	// Envelope sender rewritten to transport
				// format.
    std::string delhost;	// Deliver to this address on the host
    std::vector<std::string> addresses;	 // Deliver to these addresses
    std::vector<unsigned>  addressesidx; // Indexes of addresses in control file

    rcptinfo();
    ~rcptinfo();

    void init(msgq *newq, drvinfo *module, std::string host,
	      std::string address);
    void init_1rcpt(msgq *newq, drvinfo *module,
		    std::string host, std::string address,
		    std::string recipient);
} ;

#endif