/[smeserver]/rpms/e-smith-imap/sme8/e-smith-imap-1.4.0-imap_capability.patch
ViewVC logotype

Annotation of /rpms/e-smith-imap/sme8/e-smith-imap-1.4.0-imap_capability.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Jun 12 18:54:16 2007 UTC (17 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-imap-1_4_0-9_el5_sme
Import on branch sme8 of package e-smith-imap-1.4.0-9.el5.sme.src.rpm

1 slords 1.1 diff -Nur -x '*.orig' -x '*.rej' e-smith-imap-1.4.0/root/etc/e-smith/templates/var/service/imap/config/IMAP_CAPABILITY mezzanine_patched_e-smith-imap-1.4.0/root/etc/e-smith/templates/var/service/imap/config/IMAP_CAPABILITY
2     --- e-smith-imap-1.4.0/root/etc/e-smith/templates/var/service/imap/config/IMAP_CAPABILITY 2006-03-14 11:19:01.000000000 -0700
3     +++ mezzanine_patched_e-smith-imap-1.4.0/root/etc/e-smith/templates/var/service/imap/config/IMAP_CAPABILITY 2007-05-18 18:50:07.000000000 -0600
4     @@ -1,2 +1,38 @@
5     -IMAP_CAPABILITY="AUTH=LOGIN SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN LISTEXT LIST-SUBSCRIBED"
6     +IMAP_CAPABILITY="AUTH=LOGIN {
7     + my $open = open(CAPABILITY, "-|");
8     + die "Fork failed: $!" unless defined $open;
9     +
10     + if ($open)
11     + {
12     + $OUT = "DEFAULT";
13     + while (<CAPABILITY>)
14     + {
15     + chomp;
16     + s#\s$##g;
17     + if (/\* CAPABILITY (.*)/)
18     + {
19     + $OUT = $1;
20     + last;
21     + }
22     + }
23     + }
24     + else
25     + {
26     + $open = open(IMAP, "|-");
27     + die "Fork failed: $!" unless defined $open;
28     + if ($open)
29     + {
30     + print IMAP "1 capability\n";
31     + close IMAP;
32     + exit;
33     + }
34     + else
35     + {
36     + undef $ENV;
37     + $ENV{USER} = "admin";
38     + $ENV{MAIL} = "maildir:./Maildir/";
39     + exec "/usr/libexec/dovecot/imap 2> /dev/null";
40     + }
41     + }
42     +}"
43     export IMAP_CAPABILITY
44     diff -Nur -x '*.orig' -x '*.rej' e-smith-imap-1.4.0/root/etc/e-smith/templates/var/service/imaps/config/IMAP_CAPABILITY mezzanine_patched_e-smith-imap-1.4.0/root/etc/e-smith/templates/var/service/imaps/config/IMAP_CAPABILITY
45     --- e-smith-imap-1.4.0/root/etc/e-smith/templates/var/service/imaps/config/IMAP_CAPABILITY 2006-03-14 11:19:01.000000000 -0700
46     +++ mezzanine_patched_e-smith-imap-1.4.0/root/etc/e-smith/templates/var/service/imaps/config/IMAP_CAPABILITY 2007-05-18 18:50:07.000000000 -0600
47     @@ -1,2 +1,38 @@
48     -IMAP_CAPABILITY="AUTH=LOGIN SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN LISTEXT LIST-SUBSCRIBED"
49     +IMAP_CAPABILITY="AUTH=LOGIN {
50     + my $open = open(CAPABILITY, "-|");
51     + die "Fork failed: $!" unless defined $open;
52     +
53     + if ($open)
54     + {
55     + $OUT = "DEFAULT";
56     + while (<CAPABILITY>)
57     + {
58     + chomp;
59     + s#\s$##g;
60     + if (/\* CAPABILITY (.*)/)
61     + {
62     + $OUT = $1;
63     + last;
64     + }
65     + }
66     + }
67     + else
68     + {
69     + $open = open(IMAP, "|-");
70     + die "Fork failed: $!" unless defined $open;
71     + if ($open)
72     + {
73     + print IMAP "1 capability\n";
74     + close IMAP;
75     + exit;
76     + }
77     + else
78     + {
79     + undef $ENV;
80     + $ENV{USER} = "admin";
81     + $ENV{MAIL} = "maildir:./Maildir/";
82     + exec "/usr/libexec/dovecot/imap 2> /dev/null";
83     + }
84     + }
85     +}"
86     export IMAP_CAPABILITY

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed