Author: kosmo                        Date: Fri Jul  4 07:32:11 2008 GMT
Module: SOURCES                       Tag: AC-branch
---- Log message:
- updated for 4.3.0

---- Files affected:
SOURCES:
   courier-imap-toplevel.patch (1.1 -> 1.1.2.1) 

---- Diffs:

================================================================
Index: SOURCES/courier-imap-toplevel.patch
diff -u SOURCES/courier-imap-toplevel.patch:1.1 
SOURCES/courier-imap-toplevel.patch:1.1.2.1
--- SOURCES/courier-imap-toplevel.patch:1.1     Tue Feb  7 13:01:45 2006
+++ SOURCES/courier-imap-toplevel.patch Fri Jul  4 09:32:06 2008
@@ -1,6 +1,6 @@
-diff -urN courier-imap-4.0.5.orig/imap/imapd.c courier-imap-4.0.5/imap/imapd.c
---- courier-imap-4.0.5.orig/imap/imapd.c       2005-08-20 15:04:22.000000000 
+0200
-+++ courier-imap-4.0.5/imap/imapd.c    2006-02-07 12:55:01.000000000 +0100
+diff -urN courier-imap-4.3.0.orig/imap/imapd.c courier-imap-4.3.0/imap/imapd.c
+--- courier-imap-4.3.0.orig/imap/imapd.c       2007-11-10 21:39:03.000000000 
+0100
++++ courier-imap-4.3.0/imap/imapd.c    2008-07-04 09:16:52.000000000 +0200
 @@ -135,6 +135,55 @@
  dev_t homedir_dev;
  ino_t homedir_ino;
@@ -56,8 +56,8 @@
 +
  void rfc2045_error(const char *p)
  {
-       write(2, p, strlen(p));
-@@ -570,6 +619,8 @@
+       if (write(2, p, strlen(p)) < 0)
+@@ -571,6 +620,8 @@
        }
        else
        {
@@ -66,7 +66,7 @@
                if (ok_hierarchy && (mailbox=strrchr(curtoken->tokenbuf,
                        HIERCH)) && mailbox[1] == 0)
                                *mailbox=0;
-@@ -1698,6 +1749,11 @@
+@@ -1709,6 +1760,11 @@
        char *newf;
        FILE *newfp=newsubscribefile(&newf);
        FILE *oldfp;
@@ -78,7 +78,7 @@
  
        if ((oldfp=fopen(SUBSCRIBEFILE, "r")) != 0)
        {
-@@ -1733,6 +1789,11 @@
+@@ -1744,6 +1800,11 @@
        char *newf;
        FILE *newfp=newsubscribefile(&newf);
        FILE *oldfp;
@@ -90,7 +90,7 @@
  
        if ((oldfp=fopen(SUBSCRIBEFILE, "r")) != 0)
        {
-@@ -2325,7 +2386,7 @@
+@@ -2341,7 +2402,7 @@
        writes(") ");
        writes(hiersep);
        writes(" \"");
@@ -99,7 +99,7 @@
        writes("\"");
  
        if (flags & (LIST_ACL|LIST_MYRIGHTS|LIST_POSTADDRESS))
-@@ -4075,6 +4136,8 @@
+@@ -4091,6 +4152,8 @@
                                curtoken->tokentype != IT_ATOM &&
                                curtoken->tokentype != IT_NUMBER)
                                return (-1);
@@ -108,7 +108,7 @@
                        name=my_strdup(curtoken->tokenbuf);
                }
                if (nexttoken()->tokentype != IT_EOL)   return (-1);
-@@ -4117,6 +4180,8 @@
+@@ -4133,6 +4196,8 @@
                        tok->tokentype != IT_QUOTED_STRING)
                        return (-1);
  
@@ -117,7 +117,7 @@
                if (maildir_info_imap_find(&mi, tok->tokenbuf,
                                           getenv("AUTHENTICATED")) < 0)
                {
-@@ -4182,6 +4247,8 @@
+@@ -4198,6 +4263,8 @@
                        curtoken->tokentype != IT_QUOTED_STRING)
                        return (-1);
  
@@ -126,7 +126,7 @@
                if (maildir_info_imap_find(&minfo, curtoken->tokenbuf,
                                           getenv("AUTHENTICATED")))
                {
-@@ -4205,7 +4272,7 @@
+@@ -4221,7 +4288,7 @@
  
                writes("*");
                writes(" QUOTAROOT \"");
@@ -135,7 +135,7 @@
                writes("\" \"");
                writes(qroot);
                writes("\"\r\n");
-@@ -4227,6 +4294,8 @@
+@@ -4243,6 +4310,8 @@
        {
                curtoken=nexttoken_nouc();
  
@@ -144,7 +144,7 @@
                if (curtoken->tokentype != IT_NUMBER &&
                        curtoken->tokentype != IT_ATOM &&
                        curtoken->tokentype != IT_QUOTED_STRING)
-@@ -4337,7 +4406,7 @@
+@@ -4353,7 +4422,7 @@
  
                writes("*");
                writes(" STATUS \"");
@@ -153,7 +153,7 @@
                writes("\" (");
                p="";
                if (get_messages)
-@@ -4411,6 +4480,8 @@
+@@ -4428,6 +4497,8 @@
  
                curtoken=nexttoken_nouc();
  
@@ -162,7 +162,7 @@
                if (curtoken->tokentype != IT_NUMBER &&
                        curtoken->tokentype != IT_ATOM &&
                        curtoken->tokentype != IT_QUOTED_STRING)
-@@ -4526,7 +4597,7 @@
+@@ -4543,7 +4614,7 @@
                }
                writes(tag);
                writes(" OK \"");
@@ -171,7 +171,7 @@
                writes("\" created.\r\n");
  
                /*
-@@ -4568,8 +4639,9 @@
+@@ -4589,8 +4660,9 @@
                        return (0);
                }
  
@@ -182,7 +182,7 @@
                if ( mailbox == 0)
                {
                        free(mailbox_name);
-@@ -4650,6 +4722,8 @@
+@@ -4671,6 +4743,8 @@
  
                curtoken=nexttoken_nouc();
  
@@ -191,7 +191,7 @@
                if (curtoken->tokentype != IT_NUMBER &&
                    curtoken->tokentype != IT_ATOM &&
                    curtoken->tokentype != IT_QUOTED_STRING)
-@@ -4694,6 +4768,8 @@
+@@ -4715,6 +4789,8 @@
  
  
                curtoken=nexttoken_nouc();
@@ -200,7 +200,7 @@
                if (curtoken->tokentype != IT_NUMBER &&
                        curtoken->tokentype != IT_ATOM &&
                        curtoken->tokentype != IT_QUOTED_STRING)
-@@ -4857,6 +4933,7 @@
+@@ -4878,6 +4954,7 @@
        struct maildir_info mi;
  
                curtoken=nexttoken_nouc();
@@ -208,7 +208,7 @@
                if (curtoken->tokentype != IT_NUMBER &&
                        curtoken->tokentype != IT_ATOM &&
                        curtoken->tokentype != IT_QUOTED_STRING)
-@@ -4934,6 +5011,8 @@
+@@ -4955,6 +5032,8 @@
        struct maildir_info mi;
  
                curtoken=nexttoken_nouc();
@@ -217,7 +217,7 @@
                if (curtoken->tokentype != IT_NUMBER &&
                        curtoken->tokentype != IT_ATOM &&
                        curtoken->tokentype != IT_QUOTED_STRING)
-@@ -5010,11 +5089,19 @@
+@@ -5031,11 +5110,19 @@
  
        if (strcmp(curtoken->tokenbuf, "NAMESPACE") == 0)
        {
@@ -238,7 +238,7 @@
                writes(tag);
                writes(" OK NAMESPACE completed.\r\n");
                return (0);
-@@ -5197,7 +5284,7 @@
+@@ -5218,7 +5305,7 @@
                free(mailbox_owner);
  
                writes("* ACL \"");
@@ -247,7 +247,7 @@
                writes("\"");
                maildir_aclt_list_enum(&l, getacl_cb, NULL);
                writes("\r\n");
-@@ -5263,9 +5350,9 @@
+@@ -5284,9 +5371,9 @@
                }
  
                writes("* LISTRIGHTS \"");
@@ -259,7 +259,7 @@
                writes("\"");
                free(mb);
  
-@@ -5359,7 +5446,7 @@
+@@ -5380,7 +5467,7 @@
                }
  
                writes("* MYRIGHTS \"");
@@ -268,7 +268,7 @@
                writes("\" \"");
  
                writeacl1(mb);
-@@ -5924,6 +6011,8 @@
+@@ -5945,6 +6032,8 @@
                        return (-1);
                }
  
@@ -277,33 +277,20 @@
                mailbox=decode_valid_mailbox(curtoken->tokenbuf, 1);
  
                if (!mailbox)
-diff -urN courier-imap-4.0.5.orig/imap/mailboxlist.c 
courier-imap-4.0.5/imap/mailboxlist.c
---- courier-imap-4.0.5.orig/imap/mailboxlist.c 2004-10-21 02:45:48.000000000 
+0200
-+++ courier-imap-4.0.5/imap/mailboxlist.c      2006-02-07 12:55:01.000000000 
+0100
-@@ -67,7 +67,7 @@
- #include      "unicode/unicode.h"
- #include      "courierauth.h"
- 
--static const char rcsid[]="$Id$";
-+static const char rcsid[]="$Id$";
- 
- static const char hierchs[]={HIERCH, 0};
- 
-@@ -294,11 +294,11 @@
-       if (!have_rights[0])
-               return;
- 
--      if (match_mailbox(folder, hier, list_options) == 0)
-+      if (match_mailbox(folder, hier, list_options) == 0 ||
-+          (!strcasecmp(folder,INBOX) && !strcasecmp(hier,"INBOX.INBOX*")) )
-       {
-               (void) add_hier(folders, folder);
-       }
--
-       hier_entry(folder, hierarchies);
- }
+diff -urN courier-imap-4.3.0.orig/imap/mailboxlist.c 
courier-imap-4.3.0/imap/mailboxlist.c
+--- courier-imap-4.3.0.orig/imap/mailboxlist.c 2007-07-27 04:41:01.000000000 
+0200
++++ courier-imap-4.3.0/imap/mailboxlist.c      2008-07-04 09:20:23.000000000 
+0200
+@@ -337,7 +337,8 @@
+ 
+       need_add_folders=0;
+ 
+-      if (match_mailbox(folder, pattern, list_options) == 0)
++      if (match_mailbox(folder, pattern, list_options) == 0 ||
++          (!strcasecmp(folder,INBOX) && !strcasecmp(pattern,"INBOX.INBOX*")))
+               need_add_folders=1;
  
-@@ -350,6 +350,8 @@
+       need_add_hier=0;
+@@ -425,6 +426,8 @@
  {
  char  buf[BUFSIZ];
  FILE  *fp;
@@ -312,7 +299,7 @@
  
        fp=fopen(SUBSCRIBEFILE, "r");
        if (fp)
-@@ -371,6 +373,16 @@
+@@ -446,6 +449,16 @@
                                        continue;
                        }
  
@@ -329,7 +316,7 @@
                        folder_entry(buf, hier, flags,
                                     folders, hierarchies);
                }
-@@ -400,6 +412,13 @@
+@@ -475,6 +488,13 @@
                                        /* A bit too much, that's OK */
                        write_error_exit(0);
  
@@ -343,7 +330,7 @@
                strcpy(p, inbox_name);
  
                if (strcmp(de->d_name, "."))
-@@ -759,6 +778,10 @@
+@@ -834,6 +854,10 @@
  int check_all_folders=0;
  char hiersepbuf[8];
  int callback_rc=0;
@@ -354,7 +341,7 @@
  
        obsolete=getenv("IMAP_CHECK_ALL_FOLDERS");
        if (obsolete && atoi(obsolete))
-@@ -835,6 +858,9 @@
+@@ -912,6 +936,9 @@
                if (strcmp(hp->hier, INBOX) == 0 || check_all_folders)
                        is_interesting=hasnewmsgs(hp->hier);
  
@@ -364,7 +351,7 @@
                strcat(strcat(strcpy(hiersepbuf, "\""), hierchs), "\"");
  
                mb_flags=0;
-@@ -853,6 +879,11 @@
+@@ -930,6 +957,11 @@
                        mb_flags |=
                                obsolete ? 
MAILBOX_NOINFERIORS:MAILBOX_NOCHILDREN;
                }
@@ -376,7 +363,7 @@
                else
                {
                        d->flag=1;
-@@ -878,7 +909,12 @@
+@@ -957,7 +989,12 @@
                    && hp->flag == 0)
                {
                        int mb_flags=MAILBOX_NOSELECT;
@@ -389,7 +376,7 @@
                        if (!obsolete)
                                mb_flags |= MAILBOX_CHILDREN;
  
-@@ -896,6 +932,7 @@
+@@ -975,6 +1012,7 @@
                                                 mb_flags | list_options,
                                                 void_arg);
                        }
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/courier-imap-toplevel.patch?r1=1.1&r2=1.1.2.1&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to