1 |
dertobi123 08/10/27 19:06:06 |
2 |
|
3 |
Added: cyrus-imap-admin-2.3.13-kolab-annotations.patch |
4 |
Log: |
5 |
Version bump |
6 |
(Portage version: 2.2_rc12/cvs/Linux 2.6.25-gentoo-r7 x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 net-mail/cyrus-imap-admin/files/cyrus-imap-admin-2.3.13-kolab-annotations.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/cyrus-imap-admin/files/cyrus-imap-admin-2.3.13-kolab-annotations.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/cyrus-imap-admin/files/cyrus-imap-admin-2.3.13-kolab-annotations.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: cyrus-imap-admin-2.3.13-kolab-annotations.patch |
15 |
=================================================================== |
16 |
Allows to use arbitrary annotations with the cyradm tool. |
17 |
|
18 |
diff -r 639190be2385 doc/man/cyradm.1.html |
19 |
--- a/doc/man/cyradm.1.html Mon Oct 27 18:48:18 2008 +0100 |
20 |
+++ b/doc/man/cyradm.1.html Mon Oct 27 18:48:25 2008 +0100 |
21 |
@@ -245,6 +245,13 @@ |
22 |
<dd> |
23 |
<p>Sets an email address to which messages injected into the server via NNTP |
24 |
will be sent.</p> |
25 |
+</dd> |
26 |
+</li> |
27 |
+<dt><strong><a NAME="item__2fexplicit_2fannotation"><code>/explicit/annotation</code></a></strong> |
28 |
+ |
29 |
+<dd> |
30 |
+<p>Sets the annotation <em>/explicit/annotation</em> |
31 |
+on <em>mailbox</em> to <em>value</em>.</p> |
32 |
</dd> |
33 |
</li> |
34 |
<dt><strong><a name="sharedseen" class="item"><code>sharedseen</code></a></strong> |
35 |
diff -r 639190be2385 perl/imap/IMAP/Admin.pm |
36 |
--- a/perl/imap/IMAP/Admin.pm Mon Oct 27 18:48:18 2008 +0100 |
37 |
+++ b/perl/imap/IMAP/Admin.pm Mon Oct 27 18:48:26 2008 +0100 |
38 |
@@ -797,11 +797,11 @@ |
39 |
return undef; |
40 |
} |
41 |
|
42 |
- if(!exists($values{$entry})) { |
43 |
- $self->{error} = "Unknown parameter $entry"; |
44 |
+ if(exists($values{$entry})) { |
45 |
+ $entry = $values{$entry}; |
46 |
+ } else { |
47 |
+ $self->{error} = "Unknown parameter $entry" unless substr($entry,0,1) eq "/"; |
48 |
} |
49 |
- |
50 |
- $entry = $values{$entry}; |
51 |
|
52 |
my ($rc, $msg); |
53 |
|
54 |
diff -r 639190be2385 perl/imap/IMAP/Shell.pm |
55 |
--- a/perl/imap/IMAP/Shell.pm Mon Oct 27 18:48:18 2008 +0100 |
56 |
+++ b/perl/imap/IMAP/Shell.pm Mon Oct 27 18:48:26 2008 +0100 |
57 |
@@ -127,7 +127,7 @@ |
58 |
[\&_sc_info, '[mailbox]', |
59 |
'display mailbox/server metadata'], |
60 |
mboxcfg => |
61 |
- [\&_sc_mboxcfg, 'mailbox [comment|condstore|expire|news2mail|sharedseen|sieve|squat] value', |
62 |
+ [\&_sc_mboxcfg, 'mailbox [comment|condstore|news2mail|expire|sieve|squat|/<explicit annotation>] value', |
63 |
'configure mailbox'], |
64 |
mboxconfig => 'mboxcfg', |
65 |
reconstruct => |
66 |
@@ -1437,7 +1437,7 @@ |
67 |
while (defined ($opt = shift(@argv))) { |
68 |
last if $opt eq '--'; |
69 |
if ($opt =~ /^-/) { |
70 |
- die "usage: mboxconfig mailbox [comment|condstore|expire|news2mail|sharedseen|sieve|squat] value\n"; |
71 |
+ die "usage: mboxconfig mailbox [comment|condstore|expire|news2mail|sharedseen|sieve|squat|/<explicit annotation>] value\n"; |
72 |
} |
73 |
else { |
74 |
push(@nargv, $opt); |
75 |
@@ -1446,7 +1446,7 @@ |
76 |
} |
77 |
push(@nargv, @argv); |
78 |
if (@nargv < 2) { |
79 |
- die "usage: mboxconfig mailbox [comment|condstore|expire|news2mail|sharedseen|sieve|squat] value\n"; |
80 |
+ die "usage: mboxconfig mailbox [comment|condstore|expire|news2mail|sharedseen|sieve|squat|/<explicit annotation>] value\n"; |
81 |
} |
82 |
if (!$cyrref || !$$cyrref) { |
83 |
die "mboxconfig: no connection to server\n"; |
84 |
diff -r 639190be2385 perl/imap/cyradm.sh |
85 |
--- a/perl/imap/cyradm.sh Mon Oct 27 18:48:18 2008 +0100 |
86 |
+++ b/perl/imap/cyradm.sh Mon Oct 27 18:48:26 2008 +0100 |
87 |
@@ -241,6 +241,10 @@ |
88 |
|
89 |
Indicates that the mailbox should have a squat index created for it. |
90 |
|
91 |
+=item C</explicit/annotation> |
92 |
+ |
93 |
+Sets the annotation I</explicit/annotation> on I<mailbox> to I<value>. |
94 |
+ |
95 |
=back |
96 |
|
97 |
=item C<renamemailbox> [C<--partition> I<partition>] I<oldname> I<newname> |