2 Copyright (C) 2004-2005 SKYRIX Software AG
4 This file is part of SOPE.
6 SOPE is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with SOPE; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #ifndef __NGImap4_NGImap4EnvelopeAddress_H__
23 #define __NGImap4_NGImap4EnvelopeAddress_H__
25 #import <Foundation/NSObject.h>
28 NGImap4EnvelopeAddress
30 Wraps the raw mail address in the envelope as parsed from an IMAP4 fetch
36 @interface NGImap4EnvelopeAddress : NSObject < NSCopying >
39 NSString *personalName;
40 NSString *sourceRoute;
45 - (id)initWithPersonalName:(NSString *)_pname sourceRoute:(NSString *)_route
46 mailbox:(NSString *)_mbox host:(NSString *)_host;
47 - (id)initWithString:(NSString *)_str;
51 - (NSString *)personalName;
52 - (NSString *)sourceRoute;
53 - (NSString *)mailbox;
56 /* derived accessors */
58 - (NSString *)baseEMail; /* returns just: mailbox@host */
59 - (NSString *)email; /* returns: personalName <mailbox@host> */
63 #endif /* __NGImap4_NGImap4EnvelopeAddress_H__ */