FVWM: Mail checking in FvwmTaskBar for fvwm2 (patch)

From: Marat Boshernitsan <maratb_at_CS.Berkeley.EDU>
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 majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Thu Feb 12 1998 - 02:29:25 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:01 BST