zimbra_wsdl 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +70 -0
- data/Rakefile +10 -0
- data/doc/ZPL.txt +492 -0
- data/doc/soap-admin.txt +2507 -0
- data/doc/soap-calendar.txt +1357 -0
- data/doc/soap-context-extension.txt +58 -0
- data/doc/soap-im.txt +570 -0
- data/doc/soap-mobile.txt +136 -0
- data/doc/soap-right.txt +806 -0
- data/doc/soap-waitset.txt +347 -0
- data/doc/soap-wiki.txt +290 -0
- data/doc/soap.txt +3554 -0
- data/examples/savon.rb +27 -0
- data/examples/zimbra_authentication_example.rb +3 -0
- data/lib/zimbra.wsdl +1144 -0
- data/lib/zimbra_wsdl/version.rb +3 -0
- data/lib/zimbra_wsdl.rb +19 -0
- data/spec/minitest_helper.rb +8 -0
- data/spec/zimbra_wsdl_spec.rb +11 -0
- data/zimbra_wsdl.gemspec +19 -0
- metadata +87 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2012 Jorge Calás Lozano
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
# ZimbraWsdl
|
2
|
+
|
3
|
+
ZimbraWsdl just provides a valid WSDL document for the VMware Zimbra Soap API
|
4
|
+
that can be used with any soap library.
|
5
|
+
|
6
|
+
The gem just provides a valid document and a method that returns the path to
|
7
|
+
it, so you can just require this gem in your Gemfile and you get a (hopefully)
|
8
|
+
updated and community backed version of the Zimbra API WSDL.
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add this line to your application's Gemfile:
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
gem 'zimbra_wsdl'
|
16
|
+
```
|
17
|
+
|
18
|
+
And then execute:
|
19
|
+
|
20
|
+
$ bundle
|
21
|
+
|
22
|
+
Or install it yourself as:
|
23
|
+
|
24
|
+
$ gem install zimbra_wsdl
|
25
|
+
|
26
|
+
## Usage
|
27
|
+
|
28
|
+
The only method provided is `ZimbraWsdl.admin_wsdl` and returns the absolute path to the wsdl document. You can then use the document however you want.
|
29
|
+
|
30
|
+
Example usage with savon:
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
require 'savon'
|
34
|
+
require 'zimbra_wsdl'
|
35
|
+
|
36
|
+
ZIMBRA_SERVER = "zimbra.example.com"
|
37
|
+
ZIMBRA_ADMIN_USERNAME = "admin@zimbra.example.com"
|
38
|
+
ZIMBRA_ADMIN_PASSWORD = "YOUR_PASSWORD"
|
39
|
+
|
40
|
+
Savon.configure do |config|
|
41
|
+
config.log = false
|
42
|
+
config.log_level = :info
|
43
|
+
# config.logger = Logger.new('/tmp/zimbra_wsdl_savon_example.log')
|
44
|
+
end
|
45
|
+
|
46
|
+
client = Savon::Client.new do
|
47
|
+
wsdl.document = ZimbraWsdl.admin_wsdl
|
48
|
+
wsdl.endpoint = "https://#{ZIMBRA_SERVER}:7071/service/admin/soap"
|
49
|
+
http.auth.ssl.verify_mode = :none
|
50
|
+
end
|
51
|
+
|
52
|
+
# Authenticate your client (NOTICE: ruby 1.9 hash syntax)
|
53
|
+
client.request :auth_request, body: { name: ZIMBRA_ADMIN_USERNAME, password: ZIMBRA_ADMIN_PASSWORD }
|
54
|
+
|
55
|
+
# Once authenticated you can call any api method
|
56
|
+
accounts_response = client.request :get_all_accounts_request
|
57
|
+
accounts = accounts_response.to_array(:get_all_accounts_response, :account)
|
58
|
+
|
59
|
+
accounts.each do |account|
|
60
|
+
puts account[:@name]
|
61
|
+
end
|
62
|
+
```
|
63
|
+
|
64
|
+
## Contributing
|
65
|
+
|
66
|
+
1. Fork it
|
67
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
68
|
+
3. Commit your changes (`git commit -am 'Added some feature'`)
|
69
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
70
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
data/doc/ZPL.txt
ADDED
@@ -0,0 +1,492 @@
|
|
1
|
+
Zimbra Public License (ZPL)
|
2
|
+
Version 1.2
|
3
|
+
---------------
|
4
|
+
|
5
|
+
1. Definitions.
|
6
|
+
|
7
|
+
1.0.1. "Commercial Use" means distribution or otherwise making the
|
8
|
+
Covered Code available to a third party.
|
9
|
+
|
10
|
+
1.1. "Contributor" means each entity that creates or contributes to
|
11
|
+
the creation of Modifications.
|
12
|
+
|
13
|
+
1.2. "Contributor Version" means the combination of the Original
|
14
|
+
Code, prior Modifications used by a Contributor, and the Modifications
|
15
|
+
made by that particular Contributor.
|
16
|
+
|
17
|
+
1.3. "Covered Code" means the Original Code or Modifications or the
|
18
|
+
combination of the Original Code and Modifications, in each case
|
19
|
+
including portions thereof.
|
20
|
+
|
21
|
+
1.4. "Electronic Distribution Mechanism" means a mechanism generally
|
22
|
+
accepted in the software development community for the electronic
|
23
|
+
transfer of data.
|
24
|
+
|
25
|
+
1.5. "Executable" means Covered Code in any form other than Source
|
26
|
+
Code.
|
27
|
+
|
28
|
+
1.6. "Initial Developer" means the individual or entity identified
|
29
|
+
as the Initial Developer in the Source Code notice required by Exhibit
|
30
|
+
A.
|
31
|
+
|
32
|
+
1.7. "Larger Work" means a work which combines Covered Code or
|
33
|
+
portions thereof with code not governed by the terms of this License.
|
34
|
+
|
35
|
+
1.8. "License" means this document.
|
36
|
+
|
37
|
+
1.8.1. "Licensable" means having the right to grant, to the maximum
|
38
|
+
extent possible, whether at the time of the initial grant or
|
39
|
+
subsequently acquired, any and all of the rights conveyed herein.
|
40
|
+
|
41
|
+
1.9. "Modifications" means any addition to or deletion from the
|
42
|
+
substance or structure of either the Original Code or any previous
|
43
|
+
Modifications. When Covered Code is released as a series of files, a
|
44
|
+
Modification is:
|
45
|
+
|
46
|
+
A. Any addition to or deletion from the contents of a file
|
47
|
+
containing Original Code or previous Modifications.
|
48
|
+
|
49
|
+
B. Any new file that contains any part of the Original Code or
|
50
|
+
previous Modifications.
|
51
|
+
|
52
|
+
1.10. "Original Code" means Source Code of computer software code
|
53
|
+
which is described in the Source Code notice required by Exhibit A as
|
54
|
+
Original Code, and which, at the time of its release under this
|
55
|
+
License is not already Covered Code governed by this License.
|
56
|
+
|
57
|
+
1.10.1. "Patent Claims" means any patent claim(s), now owned or
|
58
|
+
hereafter acquired, including without limitation, method, process,
|
59
|
+
and apparatus claims, in any patent Licensable by grantor.
|
60
|
+
|
61
|
+
1.11. "Source Code" means the preferred form of the Covered Code for
|
62
|
+
making modifications to it, including all modules it contains, plus
|
63
|
+
any associated interface definition files, scripts used to control
|
64
|
+
compilation and installation of an Executable, or source code
|
65
|
+
differential comparisons against either the Original Code or another
|
66
|
+
well known, available Covered Code of the Contributor's choice. The
|
67
|
+
Source Code can be in a compressed or archival form, provided the
|
68
|
+
appropriate decompression or de-archiving software is widely available
|
69
|
+
for no charge.
|
70
|
+
|
71
|
+
1.12. "You" (or "Your") means an individual or a legal entity
|
72
|
+
exercising rights under, and complying with all of the terms of, this
|
73
|
+
License or a future version of this License issued under Section 6.1.
|
74
|
+
For legal entities, "You" includes any entity which controls, is
|
75
|
+
controlled by, or is under common control with You. For purposes of
|
76
|
+
this definition, "control" means (a) the power, direct or indirect,
|
77
|
+
to cause the direction or management of such entity, whether by
|
78
|
+
contract or otherwise, or (b) ownership of more than fifty percent
|
79
|
+
(50%) of the outstanding shares or beneficial ownership of such
|
80
|
+
entity.
|
81
|
+
|
82
|
+
2. Source Code License.
|
83
|
+
|
84
|
+
2.1. The Initial Developer Grant.
|
85
|
+
The Initial Developer hereby grants You a world-wide, royalty-free,
|
86
|
+
non-exclusive license, subject to third party intellectual property
|
87
|
+
claims:
|
88
|
+
|
89
|
+
(a) under intellectual property rights (other than patent or
|
90
|
+
trademark) Licensable by Initial Developer to use, reproduce,
|
91
|
+
modify, display, perform, sublicense and distribute the Original
|
92
|
+
Code (or portions thereof) with or without Modifications, and/or
|
93
|
+
as part of a Larger Work; and
|
94
|
+
|
95
|
+
(b) under Patents Claims infringed by the making, using or
|
96
|
+
selling of Original Code, to make, have made, use, practice,
|
97
|
+
sell, and offer for sale, and/or otherwise dispose of the
|
98
|
+
Original Code (or portions thereof).
|
99
|
+
|
100
|
+
(c) the licenses granted in this Section 2.1(a) and (b) are
|
101
|
+
effective on the date Initial Developer first distributes
|
102
|
+
Original Code under the terms of this License.
|
103
|
+
|
104
|
+
(d) Notwithstanding Section 2.1(b) above, no patent license is
|
105
|
+
granted: 1) for code that You delete from the Original Code; 2)
|
106
|
+
separate from the Original Code; or 3) for infringements caused
|
107
|
+
by: i) the modification of the Original Code or ii) the
|
108
|
+
combination of the Original Code with other software or devices.
|
109
|
+
|
110
|
+
2.2. Contributor Grant.
|
111
|
+
Subject to third party intellectual property claims, each Contributor
|
112
|
+
hereby grants You a world-wide, royalty-free, non-exclusive license
|
113
|
+
|
114
|
+
(a) under intellectual property rights (other than patent or
|
115
|
+
trademark) Licensable by Contributor, to use, reproduce, modify,
|
116
|
+
display, perform, sublicense and distribute the Modifications
|
117
|
+
created by such Contributor (or portions thereof) either on an
|
118
|
+
unmodified basis, with other Modifications, as Covered Code
|
119
|
+
and/or as part of a Larger Work; and
|
120
|
+
|
121
|
+
(b) under Patent Claims infringed by the making, using, or
|
122
|
+
selling of Modifications made by that Contributor either alone
|
123
|
+
and/or in combination with its Contributor Version (or portions
|
124
|
+
of such combination), to make, use, sell, offer for sale, have
|
125
|
+
made, and/or otherwise dispose of: 1) Modifications made by that
|
126
|
+
Contributor (or portions thereof); and 2) the combination of
|
127
|
+
Modifications made by that Contributor with its Contributor
|
128
|
+
Version (or portions of such combination).
|
129
|
+
|
130
|
+
(c) the licenses granted in Sections 2.2(a) and 2.2(b) are
|
131
|
+
effective on the date Contributor first makes Commercial Use of
|
132
|
+
the Covered Code.
|
133
|
+
|
134
|
+
(d) Notwithstanding Section 2.2(b) above, no patent license is
|
135
|
+
granted: 1) for any code that Contributor has deleted from the
|
136
|
+
Contributor Version; 2) separate from the Contributor Version;
|
137
|
+
3) for infringements caused by: i) third party modifications of
|
138
|
+
Contributor Version or ii) the combination of Modifications made
|
139
|
+
by that Contributor with other software (except as part of the
|
140
|
+
Contributor Version) or other devices; or 4) under Patent Claims
|
141
|
+
infringed by Covered Code in the absence of Modifications made by
|
142
|
+
that Contributor.
|
143
|
+
|
144
|
+
|
145
|
+
3. Distribution Obligations.
|
146
|
+
|
147
|
+
3.1. Application of License.
|
148
|
+
The Modifications which You create or to which You contribute are
|
149
|
+
governed by the terms of this License, including without limitation
|
150
|
+
Section 2.2. The Source Code version of Covered Code may be
|
151
|
+
distributed only under the terms of this License or a future version
|
152
|
+
of this License released under Section 6.1, and You must include a
|
153
|
+
copy of this License with every copy of the Source Code You
|
154
|
+
distribute. You may not offer or impose any terms on any Source Code
|
155
|
+
version that alters or restricts the applicable version of this
|
156
|
+
License or the recipients' rights hereunder. However, You may include
|
157
|
+
an additional document offering the additional rights described in
|
158
|
+
Section 3.5.
|
159
|
+
|
160
|
+
3.2. Availability of Source Code.
|
161
|
+
Any Modification which You create or to which You contribute must be
|
162
|
+
made available in Source Code form under the terms of this License
|
163
|
+
either on the same media as an Executable version or via an accepted
|
164
|
+
Electronic Distribution Mechanism to anyone to whom you made an
|
165
|
+
Executable version available; and if made available via Electronic
|
166
|
+
Distribution Mechanism, must remain available for at least twelve (12)
|
167
|
+
months after the date it initially became available, or at least six
|
168
|
+
(6) months after a subsequent version of that particular Modification
|
169
|
+
has been made available to such recipients. You are responsible for
|
170
|
+
ensuring that the Source Code version remains available even if the
|
171
|
+
Electronic Distribution Mechanism is maintained by a third party.
|
172
|
+
|
173
|
+
3.3. Description of Modifications.
|
174
|
+
You must cause all Covered Code to which You contribute to contain a
|
175
|
+
file documenting the changes You made to create that Covered Code and
|
176
|
+
the date of any change. You must include a prominent statement that
|
177
|
+
the Modification is derived, directly or indirectly, from Original
|
178
|
+
Code provided by the Initial Developer and including the name of the
|
179
|
+
Initial Developer in (a) the Source Code, and (b) in any notice in an
|
180
|
+
Executable version or related documentation in which You describe the
|
181
|
+
origin or ownership of the Covered Code.
|
182
|
+
|
183
|
+
3.4. Intellectual Property Matters
|
184
|
+
|
185
|
+
(a) Third Party Claims.
|
186
|
+
If Contributor has knowledge that a license under a third party's
|
187
|
+
intellectual property rights is required to exercise the rights
|
188
|
+
granted by such Contributor under Sections 2.1 or 2.2,
|
189
|
+
Contributor must include a text file with the Source Code
|
190
|
+
distribution titled "LEGAL" which describes the claim and the
|
191
|
+
party making the claim in sufficient detail that a recipient will
|
192
|
+
know whom to contact. If Contributor obtains such knowledge after
|
193
|
+
the Modification is made available as described in Section 3.2,
|
194
|
+
Contributor shall promptly modify the LEGAL file in all copies
|
195
|
+
Contributor makes available thereafter and shall take other steps
|
196
|
+
(such as notifying appropriate mailing lists or newsgroups)
|
197
|
+
reasonably calculated to inform those who received the Covered
|
198
|
+
Code that new knowledge has been obtained.
|
199
|
+
|
200
|
+
(b) Contributor APIs.
|
201
|
+
If Contributor's Modifications include an application programming
|
202
|
+
interface and Contributor has knowledge of patent licenses which
|
203
|
+
are reasonably necessary to implement that API, Contributor must
|
204
|
+
also include this information in the LEGAL file.
|
205
|
+
|
206
|
+
(c) Representations.
|
207
|
+
Contributor represents that, except as disclosed pursuant to
|
208
|
+
Section 3.4(a) above, Contributor believes that Contributor's
|
209
|
+
Modifications are Contributor's original creation(s) and/or
|
210
|
+
Contributor has sufficient rights to grant the rights conveyed by
|
211
|
+
this License.
|
212
|
+
|
213
|
+
3.5. Required Notices.
|
214
|
+
You must duplicate the notice in Exhibit A in each file of the Source
|
215
|
+
Code. If it is not possible to put such notice in a particular Source
|
216
|
+
Code file due to its structure, then You must include such notice in a
|
217
|
+
location (such as a relevant directory) where a user would be likely
|
218
|
+
to look for such a notice. If You created one or more Modification(s)
|
219
|
+
You may add your name as a Contributor to the notice described in
|
220
|
+
Exhibit A. You must also duplicate this License in any documentation
|
221
|
+
for the Source Code where You describe recipients' rights or ownership
|
222
|
+
rights relating to Covered Code. You may choose to offer, and to
|
223
|
+
charge a fee for, warranty, support, indemnity or liability
|
224
|
+
obligations to one or more recipients of Covered Code. However, You
|
225
|
+
may do so only on Your own behalf, and not on behalf of the Initial
|
226
|
+
Developer or any Contributor. You must make it absolutely clear than
|
227
|
+
any such warranty, support, indemnity or liability obligation is
|
228
|
+
offered by You alone, and You hereby agree to indemnify the Initial
|
229
|
+
Developer and every Contributor for any liability incurred by the
|
230
|
+
Initial Developer or such Contributor as a result of warranty,
|
231
|
+
support, indemnity or liability terms You offer.
|
232
|
+
|
233
|
+
3.6. Distribution of Executable Versions.
|
234
|
+
You may distribute Covered Code in Executable form only if the
|
235
|
+
requirements of Section 3.1-3.5 have been met for that Covered Code,
|
236
|
+
and if You include a notice stating that the Source Code version of
|
237
|
+
the Covered Code is available under the terms of this License,
|
238
|
+
including a description of how and where You have fulfilled the
|
239
|
+
obligations of Section 3.2. The notice must be conspicuously included
|
240
|
+
in any notice in an Executable version, related documentation or
|
241
|
+
collateral in which You describe recipients' rights relating to the
|
242
|
+
Covered Code. You may distribute the Executable version of Covered
|
243
|
+
Code or ownership rights under a license of Your choice, which may
|
244
|
+
contain terms different from this License, provided that You are in
|
245
|
+
compliance with the terms of this License and that the license for the
|
246
|
+
Executable version does not attempt to limit or alter the recipient's
|
247
|
+
rights in the Source Code version from the rights set forth in this
|
248
|
+
License. If You distribute the Executable version under a different
|
249
|
+
license You must make it absolutely clear that any terms which differ
|
250
|
+
from this License are offered by You alone, not by the Initial
|
251
|
+
Developer or any Contributor. You hereby agree to indemnify the
|
252
|
+
Initial Developer and every Contributor for any liability incurred by
|
253
|
+
the Initial Developer or such Contributor as a result of any such
|
254
|
+
terms You offer.
|
255
|
+
|
256
|
+
3.7. Larger Works.
|
257
|
+
You may create a Larger Work by combining Covered Code with other code
|
258
|
+
not governed by the terms of this License and distribute the Larger
|
259
|
+
Work as a single product. In such a case, You must make sure the
|
260
|
+
requirements of this License are fulfilled for the Covered Code.
|
261
|
+
|
262
|
+
4. Inability to Comply Due to Statute or Regulation.
|
263
|
+
|
264
|
+
If it is impossible for You to comply with any of the terms of this
|
265
|
+
License with respect to some or all of the Covered Code due to
|
266
|
+
statute, judicial order, or regulation then You must: (a) comply with
|
267
|
+
the terms of this License to the maximum extent possible; and (b)
|
268
|
+
describe the limitations and the code they affect. Such description
|
269
|
+
must be included in the LEGAL file described in Section 3.4 and must
|
270
|
+
be included with all distributions of the Source Code. Except to the
|
271
|
+
extent prohibited by statute or regulation, such description must be
|
272
|
+
sufficiently detailed for a recipient of ordinary skill to be able to
|
273
|
+
understand it.
|
274
|
+
|
275
|
+
5. Application of this License.
|
276
|
+
|
277
|
+
This License applies to code to which the Initial Developer has
|
278
|
+
attached the notice in Exhibit A and to related Covered Code.
|
279
|
+
|
280
|
+
|
281
|
+
6. Versions of the License.
|
282
|
+
|
283
|
+
6.1. New Versions.
|
284
|
+
Zimbra, Inc. ("Zimbra") may publish revised and/or new versions of the
|
285
|
+
License from time to time. Each version will be given a distinguishing
|
286
|
+
version number.
|
287
|
+
|
288
|
+
6.2. Effect of New Versions.
|
289
|
+
Once Covered Code has been published under a particular version of the
|
290
|
+
License, You may always continue to use it under the terms of that
|
291
|
+
version. You may also choose to use such Covered Code under the terms
|
292
|
+
of any subsequent version of the License published by Zimbra. No one
|
293
|
+
other than Zimbra has the right to modify the terms applicable to
|
294
|
+
Covered Code created under this License.
|
295
|
+
|
296
|
+
6.3. Derivative Works.
|
297
|
+
If You create or use a modified version of this License (which you may
|
298
|
+
only do in order to apply it to code which is not already Covered Code
|
299
|
+
governed by this License), You must (a) rename Your license so that
|
300
|
+
the phrases "Zimbra", "ZPL" or any confusingly similar phrase do not
|
301
|
+
appear in your license (except to note that your license differs from
|
302
|
+
this License) and (b) otherwise make it clear that Your version of the
|
303
|
+
license contains terms which differ from the Zimbra Public
|
304
|
+
License. (Filling in the name of the Initial Developer, Original Code
|
305
|
+
or Contributor in the notice described in Exhibit A shall not of
|
306
|
+
themselves be deemed to be modifications of this License.)
|
307
|
+
|
308
|
+
|
309
|
+
7. DISCLAIMER OF WARRANTY.
|
310
|
+
|
311
|
+
COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
|
312
|
+
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
313
|
+
WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
|
314
|
+
DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
|
315
|
+
THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
|
316
|
+
IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
|
317
|
+
YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
|
318
|
+
COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
|
319
|
+
OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
|
320
|
+
ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
|
321
|
+
|
322
|
+
8. TERMINATION.
|
323
|
+
|
324
|
+
8.1. This License and the rights granted hereunder will terminate
|
325
|
+
automatically if You fail to comply with terms herein and fail to cure
|
326
|
+
such breach within 30 days of becoming aware of the breach. All
|
327
|
+
sublicenses to the Covered Code which are properly granted shall
|
328
|
+
survive any termination of this License. Provisions which, by their
|
329
|
+
nature, must remain in effect beyond the termination of this License
|
330
|
+
shall survive.
|
331
|
+
|
332
|
+
8.2. If You initiate litigation by asserting a patent infringement
|
333
|
+
claim (excluding declatory judgment actions) against Initial Developer
|
334
|
+
or a Contributor (the Initial Developer or Contributor against whom
|
335
|
+
You file such action is referred to as "Participant") alleging that:
|
336
|
+
|
337
|
+
(a) such Participant's Contributor Version directly or indirectly
|
338
|
+
infringes any patent, then any and all rights granted by such
|
339
|
+
Participant to You under Sections 2.1 and/or 2.2 of this License
|
340
|
+
shall, upon 60 days notice from Participant terminate prospectively,
|
341
|
+
unless if within 60 days after receipt of notice You either: (i)
|
342
|
+
agree in writing to pay Participant a mutually agreeable reasonable
|
343
|
+
royalty for Your past and future use of Modifications made by such
|
344
|
+
Participant, or (ii) withdraw Your litigation claim with respect to
|
345
|
+
the Contributor Version against such Participant. If within 60 days
|
346
|
+
of notice, a reasonable royalty and payment arrangement are not
|
347
|
+
mutually agreed upon in writing by the parties or the litigation claim
|
348
|
+
is not withdrawn, the rights granted by Participant to You under
|
349
|
+
Sections 2.1 and/or 2.2 automatically terminate at the expiration of
|
350
|
+
the 60 day notice period specified above.
|
351
|
+
|
352
|
+
(b) any software, hardware, or device, other than such Participant's
|
353
|
+
Contributor Version, directly or indirectly infringes any patent, then
|
354
|
+
any rights granted to You by such Participant under Sections 2.1(b)
|
355
|
+
and 2.2(b) are revoked effective as of the date You first made, used,
|
356
|
+
sold, distributed, or had made, Modifications made by that
|
357
|
+
Participant.
|
358
|
+
|
359
|
+
8.3. If You assert a patent infringement claim against Participant
|
360
|
+
alleging that such Participant's Contributor Version directly or
|
361
|
+
indirectly infringes any patent where such claim is resolved (such as
|
362
|
+
by license or settlement) prior to the initiation of patent
|
363
|
+
infringement litigation, then the reasonable value of the licenses
|
364
|
+
granted by such Participant under Sections 2.1 or 2.2 shall be taken
|
365
|
+
into account in determining the amount or value of any payment or
|
366
|
+
license.
|
367
|
+
|
368
|
+
8.4. In the event of termination under Sections 8.1 or 8.2 above,
|
369
|
+
all end user license agreements (excluding distributors and resellers)
|
370
|
+
which have been validly granted by You or any distributor hereunder
|
371
|
+
prior to termination shall survive termination.
|
372
|
+
|
373
|
+
9. LIMITATION OF LIABILITY.
|
374
|
+
|
375
|
+
UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
|
376
|
+
(INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
|
377
|
+
DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
|
378
|
+
OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
|
379
|
+
ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
|
380
|
+
CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
|
381
|
+
WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
|
382
|
+
COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
|
383
|
+
INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
|
384
|
+
LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
|
385
|
+
RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
|
386
|
+
PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
|
387
|
+
EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
|
388
|
+
THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
|
389
|
+
|
390
|
+
10. U.S. GOVERNMENT END USERS.
|
391
|
+
|
392
|
+
The Covered Code is a "commercial item," as that term is defined in
|
393
|
+
48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
|
394
|
+
software" and "commercial computer software documentation," as such
|
395
|
+
terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
|
396
|
+
C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
|
397
|
+
all U.S. Government End Users acquire Covered Code with only those
|
398
|
+
rights set forth herein.
|
399
|
+
|
400
|
+
|
401
|
+
11. MISCELLANEOUS.
|
402
|
+
|
403
|
+
This License represents the complete agreement concerning subject
|
404
|
+
matter hereof. If any provision of this License is held to be
|
405
|
+
unenforceable, such provision shall be reformed only to the extent
|
406
|
+
necessary to make it enforceable. This License shall be governed by
|
407
|
+
California law provisions (except to the extent applicable law, if
|
408
|
+
any, provides otherwise), excluding its conflict-of-law provisions.
|
409
|
+
With respect to disputes in which at least one party is a citizen of,
|
410
|
+
or an entity chartered or registered to do business in the United
|
411
|
+
States of America, any litigation relating to this License shall be
|
412
|
+
subject to the jurisdiction of the Federal Courts of the Northern
|
413
|
+
District of California, with venue lying in Santa Clara County,
|
414
|
+
California, with the losing party responsible for costs, including
|
415
|
+
without limitation, court costs and reasonable attorneys' fees and
|
416
|
+
expenses. The application of the United Nations Convention on
|
417
|
+
Contracts for the International Sale of Goods is expressly excluded.
|
418
|
+
Any law or regulation which provides that the language of a contract
|
419
|
+
shall be construed against the drafter shall not apply to this
|
420
|
+
License.
|
421
|
+
|
422
|
+
12. RESPONSIBILITY FOR CLAIMS.
|
423
|
+
|
424
|
+
As between Initial Developer and the Contributors, each party is
|
425
|
+
responsible for claims and damages arising, directly or indirectly,
|
426
|
+
out of its utilization of rights under this License and You agree to
|
427
|
+
work with Initial Developer and Contributors to distribute such
|
428
|
+
responsibility on an equitable basis. Nothing herein is intended or
|
429
|
+
shall be deemed to constitute any admission of liability.
|
430
|
+
|
431
|
+
13. MULTIPLE-LICENSED CODE.
|
432
|
+
|
433
|
+
Initial Developer may designate portions of the Covered Code as
|
434
|
+
"Multiple-Licensed". "Multiple-Licensed" means that the Initial
|
435
|
+
Developer permits you to utilize portions of the Covered Code under
|
436
|
+
Your choice of the ZPL or the alternative licenses, if any, specified
|
437
|
+
by the Initial Developer in the file described in Exhibit A.
|
438
|
+
|
439
|
+
EXHIBIT A -Zimbra Public License.
|
440
|
+
|
441
|
+
The contents of this file are subject to the Zimbra Public License
|
442
|
+
Version 1.2 ("License"); you may not use this file except in
|
443
|
+
compliance with the License. You may obtain a copy of the License at
|
444
|
+
http://www.zimbra.com/license
|
445
|
+
|
446
|
+
Software distributed under the License is distributed on an "AS IS"
|
447
|
+
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
|
448
|
+
License for the specific language governing rights and limitations
|
449
|
+
under the License.
|
450
|
+
|
451
|
+
The Original Code is ______________________________________.
|
452
|
+
The Initial Developer of the Original Code is ________________________.
|
453
|
+
Portions created by ______________________ are Copyright (C) ______
|
454
|
+
_______________________. All Rights Reserved.
|
455
|
+
|
456
|
+
Contributor(s): ______________________________________.
|
457
|
+
|
458
|
+
EXHIBIT B -Zimbra Public License.
|
459
|
+
|
460
|
+
Additional Terms applicable to the Zimbra Public License.
|
461
|
+
|
462
|
+
I. Effect.
|
463
|
+
|
464
|
+
These additional terms described in this Zimbra Public License -
|
465
|
+
Additional Terms shall apply to the Covered Code under this License.
|
466
|
+
|
467
|
+
II. Zimbra and logo.
|
468
|
+
|
469
|
+
This License does not grant any rights to use the trademarks "Zimbra"
|
470
|
+
and the "Zimbra" logos even if such marks are included in the Original
|
471
|
+
Code or Modifications.
|
472
|
+
|
473
|
+
However, in addition to the other notice obligations, (1) all copies
|
474
|
+
of the Original Code in Executable and Source Code form must, as a
|
475
|
+
form of attribution of the original author, include on each user
|
476
|
+
interface screen (i) the original Zimbra logo, and once for each user
|
477
|
+
session (ii) the copyright notice as it appears in the Original Code;
|
478
|
+
and (2) all derivative works and copies of derivative works of the
|
479
|
+
Covered Code in Executable and Source Code form must include on each
|
480
|
+
user interface screen (i) the "Zimbra Inside" logo, and once for each
|
481
|
+
user session (ii) the copyright notice from the version of the Covered
|
482
|
+
Code from which the copy or the derivative work was made. In addition,
|
483
|
+
the original Zimbra logo or the "Zimbra Inside" logo, as appropriate,
|
484
|
+
must be visible to all users, must appear in each user interface
|
485
|
+
screen, and must be in the same position as and at least as large as
|
486
|
+
the Zimbra logo is within the Original Code. When users click on the
|
487
|
+
original Zimbra logo it must direct them to http://www.zimbra.com, and
|
488
|
+
when users click on the "Zimbra Inside" logo it must direct them to
|
489
|
+
http://www.zimbra.com/inside. This obligation shall also apply to any
|
490
|
+
copies or derivative works which are distributed under the alternative
|
491
|
+
terms of Section 3.6 and this obligation must be included in any such
|
492
|
+
license.
|