public GetHeaderField ( System name, System defaultvalue, bool uncomment, bool rfc2047decode ) : System.String | ||
name | System | Header field name |
defaultvalue | System | Value to return when the requested field is not present |
uncomment | bool | true to uncomment using |
rfc2047decode | bool | true to decode |
return | System.String |
public System.String GetHeaderField( System.String name, System.String defaultvalue, bool uncomment, bool rfc2047decode )
{
System.String tmp = this.getProperty(name);
if ( tmp==null )
tmp = defaultvalue;
else {
if ( uncomment )
tmp = anmar.SharpMimeTools.SharpMimeTools.uncommentString(tmp);
if ( rfc2047decode )
tmp = anmar.SharpMimeTools.SharpMimeTools.rfc2047decode(tmp);
}
return tmp;
}