[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pan-devel] UUDecode patch [closes miguel.rubio at hispalinux.es problem
From: |
Miguel Rubio |
Subject: |
[Pan-devel] UUDecode patch [closes miguel.rubio at hispalinux.es problem] |
Date: |
Sun, 12 Jan 2003 22:52:36 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021226 Debian/1.2.1-9 |
I've solved my problem, which Charles Kerr forwarded to this group.
The problem was, as I suspected, the ending of some uuencoded binaries.
Some of them finish with "fin" instead of with "end". Popular usenet
readers seem to manage well this situation so I think Pan should be patched.
I've attached a patch.
Thanks to Vadim Berezniker
--
Miguel Rubio
GNU/Linux Debian unstable
miguel.rubio at hispalinux dot es
diff -uNr pan-0.13.3/pan/base/util-mime.c pan-0.13.3WORK/pan/base/util-mime.c
--- pan-0.13.3/pan/base/util-mime.c 2002-12-26 19:50:13.000000000 +0100
+++ pan-0.13.3WORK/pan/base/util-mime.c 2003-01-12 22:47:05.000000000 +0100
@@ -324,7 +324,7 @@
static gboolean
uu_is_ending_line (const char * line)
{
- return line!=NULL && !g_strncasecmp(line,"end",3) &&
!strstr(line,"cut") && !strstr(line,"CUT");
+ return line!=NULL && (!g_strncasecmp(line,"end",3) ||
!g_strncasecmp(line,"fin",3)) && !strstr(line,"cut") && !strstr(line,"CUT");
}
static void
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pan-devel] UUDecode patch [closes miguel.rubio at hispalinux.es problem],
Miguel Rubio <=