Package: courier-mta
Version: 0.68.1-1
Severity: important
Tags: upstream

I have some entries of the following type in my aliases:
@example.com: matthias-example

These worked in the past, but is broken in 0.86.1.

I have reported the problem on the courier-users mailing list. Sam Varshavchik 
confirmed, that this is a bug in 0.86.1 and told that it is fixed in 0.86.2.
(See http://markmail.org/message/h2jlamnnuxjvvt35)

Therefore I'd like to see the Debian package patched or upgraded.

I have not tested, but I think the relevant change in the code is the following:

matthias@mwimmer:~/courier$ svn diff -r 219:220 courier/libs/lcrewrite.c 
Index: courier/libs/lcrewrite.c
===================================================================
--- courier/libs/lcrewrite.c    (Revision 219)
+++ courier/libs/lcrewrite.c    (Revision 220)
@@ -107,9 +107,10 @@
        ( (struct rw_info_rewrite *)info->udata)->buf=p;
 }
 
-void rw_rewrite_chksyn_print(struct rw_info *info)
+static void do_rw_rewrite_chksyn_print(struct rw_info *info,
+                                      struct rfc822token *t)
 {
-       if (rw_syntaxchk(info->ptr))
+       if (rw_syntaxchk(t))
        {
        static const char errmsg[]="Syntax error: ";
        char    *addr=rfc822_gettok(info->ptr);
@@ -125,3 +126,19 @@
        else
                rw_rewrite_print(info);
 }
+
+void rw_rewrite_chksyn_print(struct rw_info *info)
+{
+       do_rw_rewrite_chksyn_print(info, info->ptr);
+}
+
+void rw_rewrite_chksyn_at_ok_print(struct rw_info *info)
+{
+       struct rfc822token *t=info->ptr;
+
+       if (t && t->token == '@')
+               t=t->next;
+
+       do_rw_rewrite_chksyn_print(info, t);
+}
+


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages courier-mta depends on:
ii  courier-authlib        0.63.0-6+b1
ii  courier-base           0.68.1-1
ii  debconf [debconf-2.0]  1.5.43
ii  libc6                  2.13-33
ii  libgcc1                1:4.7.0-8
ii  libgdbm3               1.8.3-10
ii  libperl5.14            5.14.2-11
ii  libstdc++6             4.7.0-8

courier-mta recommends no packages.

Versions of packages courier-mta suggests:
ii  courier-doc                   <none>
ii  courier-filter-perl           <none>
ii  couriergrey                   <none>
ii  heirloom-mailx [mail-reader]  12.5-2
ii  mutt [mail-reader]            1.5.21-5+b1

-- Configuration Files:
/etc/courier/aliases/system [Errno 13] Keine Berechtigung: 
u'/etc/courier/aliases/system'
/etc/courier/esmtpauthclient [Errno 13] Keine Berechtigung: 
u'/etc/courier/esmtpauthclient'

-- debconf information:
  courier-mta/dsnfrom: [email protected]
  courier-mta/defaultdomain: doux.amessage.eu



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to