Subject: FVWM: Mail checking in FvwmTaskBar for fvwm2 (patch)

From: Marat Boshernitsan <[email-masked]>
Date: 12 Feb 1998 00:29:11 -0800

There's a bug in FvwmTaskBar which prevents it from correctly parsing
pathname of user-specifed mail inbox.  Here's a little patch to
FvwmTaskBar in fvwm-2.0.46 to fix this problem.  I don't read the
mailing list (just the archives), so e-mail me if there are any
questions.

-- Marat

cypress:/usr/tmp/maratb>diff -w fvwm-2.0.46/extras/FvwmTaskBar/Goodies.c fvwm-2.0.46.mod/extras/FvwmTaskBar/Goodies.c
58,59c58,65
<                               Clength+11)==0) {
<     if (mystrncasecmp(&tline[Clength+11], "None") == 0) {
---
>                               Clength+7)==0) {
>     char *path = (char *)strdup(&tline[Clength + 7]);
>     char *ptr1 = path;
>     char *ptr2 = path + strlen(path) - 1;
>     while (isspace(*ptr1)) ptr1++; /* trim left */
>     while (isspace(*ptr2)) ptr2--; /* trim right */
>     *(ptr2 + 1) = 0;
>     if (mystrncasecmp(ptr1, "None", 4) == 0) {
62c68
<       UpdateString(&mailpath, &tline[Clength+11]); 
---
>       UpdateString(&mailpath, ptr1); 
63a70
>     free(path);

--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [email-masked].
To report problems, send mail to [email-masked].