summaryrefslogtreecommitdiff
path: root/imapd/imapd-goodchars.patch
blob: b3387048d1dbf187f8b54b334cdbae7af36f439a (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
diff -upr ../cyrus-imapd-2.2.12.orig/imap/imapd.c ./imap/imapd.c
--- ../cyrus-imapd-2.2.12.orig/imap/imapd.c	2005-02-14 07:39:55.000000000 +0100
+++ ./imap/imapd.c	2005-04-21 00:59:50.865255448 +0200
@@ -3923,10 +3923,12 @@ void cmd_rename(const char *tag, 
 	}
     }
 
+#ifdef notdef
     /* verify that the mailbox doesn't have a wildcard in it */
     for (p = oldmailboxname; !r && *p; p++) {
 	if (*p == '*' || *p == '%') r = IMAP_MAILBOX_BADNAME;
     }
+#endif
 
     /* attempt to rename the base mailbox */
     if (!r) {
Kun i ./imap: imapd.c.orig
diff -upr ../cyrus-imapd-2.2.12.orig/imap/mboxlist.c ./imap/mboxlist.c
--- ../cyrus-imapd-2.2.12.orig/imap/mboxlist.c	2004-07-26 20:08:03.000000000 +0200
+++ ./imap/mboxlist.c	2005-04-21 00:59:50.874254080 +0200
@@ -476,10 +476,12 @@ mboxlist_mycreatemailboxcheck(char *name
 		free(acl);
 		return IMAP_PERMISSION_DENIED;
 	    }
+#ifdef notdef
 	    /* disallow wildcards in userids with inboxes. */	     
 	    if (strchr(mbox, '*') || strchr(mbox, '%') || strchr(mbox, '?')) {
 		return IMAP_MAILBOX_BADNAME;
 	    }
+#endif
 
 	    /*
 	     * Users by default have all access to their personal mailbox(es),
diff -upr ../cyrus-imapd-2.2.12.orig/imap/mboxname.c ./imap/mboxname.c
--- ../cyrus-imapd-2.2.12.orig/imap/mboxname.c	2005-02-14 07:39:57.000000000 +0100
+++ ./imap/mboxname.c	2005-04-21 00:59:50.879253320 +0200
@@ -649,8 +649,13 @@ int mboxname_netnewscheck(char *name)
 /*
  * Apply site policy restrictions on mailbox names.
  * Restrictions are hardwired for now.
- */
+
+ * original definition 
 #define GOODCHARS " +,-.0123456789:=@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~"
+ */
+
+#define GOODCHARS " #$%'()*+,-.0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~"
+
 int mboxname_policycheck(char *name)
 {
     unsigned i;
Kun i ./imap: mboxname.c.orig