summaryrefslogtreecommitdiff
path: root/mail/qmail-contrib/files/extra-patch-striplocal
blob: 8017b679fa7105fca59aaaa5f2f8f468e3523bc7 (plain) (blame)
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
*** fastforward.c.orig	Thu Apr 23 20:35:48 1998
--- fastforward.c	Thu Apr 23 20:37:05 1998
***************
*** 261,270 ****
        if (gettarget(1,"?",addr))
          if (!stralloc_copy(&sender,&data)) nomem();
    if (!gettarget(1,":",addr))
!     if (flagpassthrough)
!       _exit(0);
!     else
!       strerr_die1x(100,"Sorry, no mailbox here by that name. (#5.1.1)");
    dodata();
  }
  
--- 261,273 ----
        if (gettarget(1,"?",addr))
          if (!stralloc_copy(&sender,&data)) nomem();
    if (!gettarget(1,":",addr))
!     if (strpbrk(addr,"-"))
!       if (!str_copy(addr,strpbrk(addr,"-")+1)) nomem();
!     if (!gettarget(1,":",addr))
!       if (flagpassthrough)
!         _exit(0);
!       else
!         strerr_die1x(100,"Sorry, no mailbox here by that name. (#5.1.1)");
    dodata();
  }