Welcome to mirror list, hosted at ThFree Co, Russian Federation.

MailHeader.cs « System.Web.Mail « System.Web « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 291b81644484de4490161e340052ea335a51c204 (plain)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
//
// System.Web.Mail.MailHeader.cs
//
// Author(s):
//   Per Arneng <pt99par@student.bth.se>
//
//
using System;
using System.Collections;
using System.Collections.Specialized;

namespace System.Web.Mail {
    
    // This class represents the header of a mail with
    // all the header fields.
    internal class MailHeader {
	
	protected NameValueCollection data = new NameValueCollection();
	
	public string To {
	    get { return data[ "To" ]; }
	    set { data[ "To" ] = value; }
	}

	public string From {
	    get { return data[ "From" ]; }
	    set { data[ "From" ] = value; }
	}

	public string Cc {
	    get { return data[ "Cc" ]; }
	    set { data[ "Cc" ] = value; }
	}
	
	public string Bcc {
	    get { return data[ "Bcc" ]; }
	    set { data[ "Bcc" ] = value; }
	}
	
	public string Subject {
	    get { return data[ "Subject" ]; }
	    set { data[ "Subject" ] = value; }
	}

	public string Importance {
	    get { return data[ "Importance" ]; }
	    set { data[ "Importance" ] = value; }
	}
	
	public string Priority {
	    get { return data[ "Priority" ]; }
	    set { data[ "Priority" ] = value; }
	}
	
	public string MimeVersion {
	    get { return data[ "Mime-Version" ]; }
	    set { data[ "Mime-Version" ] = value; }
	}

	public string ContentType {
	    get { return data[ "Content-Type" ]; }
	    set { data[ "Content-Type" ] = value; }
	} 
	
	public string ContentTransferEncoding{
	    get { return data[ "Content-Transfer-Encoding" ]; }
	    set { data[ "Content-Transfer-Encoding" ] = value; }
	} 

	public string ContentDisposition {
	    get { return data[ "Content-Disposition" ]; }
	    set { data[ "Content-Disposition" ] = value; }
	} 

	public string ContentBase {
	    get { return data[ "Content-Base" ]; }
	    set { data[ "Content-Base" ] = value; }
	}
	
	public string ContentLocation {
	    get { return data[ "Content-Location" ]; }
	    set { data[ "Content-Location" ] = value; }
	}	
	
	
	public NameValueCollection Data {
	   get { return data; } 
	}
	
    }

}