/[suikacvs]/messaging/manakai/lib/Message/Header/Message.pm
Suika

Contents of /messaging/manakai/lib/Message/Header/Message.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Mon Jul 8 11:47:20 2002 UTC (22 years, 4 months ago) by wakaba
Branch: MAIN
2002-07-08  Wakaba <w@suika.fam.cx>

	* Message.pm: New module.

1 wakaba 1.1
2     =head1 NAME
3    
4     Message::Header::Message --- Internet Messages -- Definition
5     for RFC 822 like header fields of message/* media types
6    
7     =cut
8    
9     require Message::Header::Default;
10     package Message::Header::Message;
11     use strict;
12     use vars qw($VERSION);
13     $VERSION=do{my @r=(q$Revision: 1.2 $=~/\d+/g);sprintf "%d."."%02d" x $#r,@r};
14    
15     package Message::Header::Message::DeliveryStatus;
16     our %OPTION = %Message::Header::Default::OPTION;
17     $OPTION{namespace_uri} = 'urn:x-suika-fam-cx:msgpm:header:message:delivery-status';
18    
19     $OPTION{use_ph_namespace} = 0;
20     $OPTION{namespace_phname} = '';
21     $OPTION{namespace_phname_goodcase} = '';
22    
23     $OPTION{case_sensible} = 0;
24     $OPTION{to_be_goodcase} = \&Message::Header::Default::_goodcase;
25    
26     $OPTION{goodcase} = {
27     'dsn-gateway' => 'DSN-Gateway',
28     'final-log-id' => 'Final-Log-ID',
29     #'original-envelope-id' => 'Original-Envelope-Id',
30     'received-from-mta' => 'Received-From-MTA',
31     'remote-mta' => 'Remote-MTA',
32     'reporting-mta' => 'Reporting-MTA',
33     };
34    
35     $OPTION{value_type} = {
36     ':default' => ['Message::Field::Unstructured'],
37    
38     action => ['Message::Field::ValueParams'],
39     'arival-date' => ['Message::Field::Date'],
40     'diagnostic-code' => ['Message::Field::TypedText'],
41     'dsn-gateway' => ['Message::Field::TypedText'],
42     'final-recipient' => ['Message::Field::TypedText',{
43     -separator => ';',
44     }],
45     'last-attempt-date' => ['Message::Field::Date'],
46     'original-recipient' => ['Message::Field::TypedText',{
47     -separator => ';',
48     }],
49     'received-from-mta' => ['Message::Field::TypedText'],
50     'remote-mta' => ['Message::Field::TypedText'],
51     'reporting-mta' => ['Message::Field::TypedText'],
52     status => ['Message::Field::Structured'],
53     'will-retry-until' => ['Message::Field::Date'],
54     'x-actual-recipient' => ['Message::Field::TypedText',{
55     -separator => ';',
56     }],
57     };
58    
59     $OPTION{uri_mailto_safe} = {
60     ':default' => 1,
61     };
62    
63     $Message::Header::NS_uri2phpackage{ $OPTION{namespace_uri} } = __PACKAGE__;
64    
65     package Message::Header::Message::DispositionNotification;
66     our %OPTION = %Message::Header::HTTP::OPTION;
67     our %OPTION = %Message::Header::Default::OPTION;
68     $OPTION{namespace_uri} = 'urn:x-suika-fam-cx:msgpm:header:message:disposition-notification';
69    
70     $OPTION{use_ph_namespace} = 0;
71     $OPTION{namespace_phname} = '';
72     $OPTION{namespace_phname_goodcase} = '';
73    
74     $OPTION{case_sensible} = 0;
75     $OPTION{to_be_goodcase} = \&Message::Header::Default::_goodcase;
76    
77     $OPTION{goodcase} = {
78     'mdn-gateway' => 'MDN-Gateway',
79     'original-message-id' => 'Original-Message-ID',
80     'reporting-ua' => 'Reporting-UA',
81     };
82    
83     $OPTION{value_type} = {
84     ':default' => ['Message::Field::Unstructured'],
85    
86     #disposition => ['Message::Field::MDNDisposition'],
87     'final-recipient' => ['Message::Field::TypedText',{
88     -separator => ';',
89     }],
90     'mdn-gateway' => ['Message::Field::TypedText'],
91     'original-message-id' => ['Message::Field::MsgID'],
92     'original-recipient' => ['Message::Field::TypedText',{
93     -separator => ';',
94     }],
95     #'reporting-ua' => ['Message::Field::CSV',{
96     # -separator => ';',
97     #}],
98     };
99    
100     $OPTION{uri_mailto_safe} = {
101     ':default' => 1,
102     };
103    
104     $Message::Header::NS_uri2phpackage{ $OPTION{namespace_uri} } = __PACKAGE__;
105    
106     =head1 LICENSE
107    
108     Copyright 2002 wakaba E<lt>w@suika.fam.cxE<gt>.
109    
110     This program is free software; you can redistribute it and/or modify
111     it under the terms of the GNU General Public License as published by
112     the Free Software Foundation; either version 2 of the License, or
113     (at your option) any later version.
114    
115     This program is distributed in the hope that it will be useful,
116     but WITHOUT ANY WARRANTY; without even the implied warranty of
117     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
118     GNU General Public License for more details.
119    
120     You should have received a copy of the GNU General Public License
121     along with this program; see the file COPYING. If not, write to
122     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
123     Boston, MA 02111-1307, USA.
124    
125     =head1 CHANGE
126    
127     See F<ChangeLog>.
128     $Date: 2002/07/06 11:36:39 $
129    
130     =cut
131    
132     1;

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24