[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mail doens't work at all
From: |
Sergey Poznyakoff |
Subject: |
Re: mail doens't work at all |
Date: |
Wed, 13 Mar 2002 14:15:10 +0200 |
> I've been looking at the changes in the mail/ dir of maildir's
> repository, and I see nothing that could fix it. According to the
> changelog, there were argument fixes, but afaict they were
> 64bit-specific. The bug report was against our i386 architecture, so I
> don't know. Can anyone extract the patch for me?
The changes were made to lib/argcv.c (see revisions 1.10,1.11). You
may try to check out only this source, this should work if the Debian
snapshot was made after 01:25:43 UTC at Feb 21. But anyway, I would
suggest you to check out the whole tree.
Just in case, here's the diff between revisions 1.12 and 1.9 of
lib/argcv.c:
===================================================================
RCS file: /home/cvs/mailutils/lib/argcv.c,v
retrieving revision 1.9
retrieving revision 1.12
diff -c -r1.9 -r1.12
*** mailutils/lib/argcv.c 2002/02/21 01:25:43 1.9
--- mailutils/lib/argcv.c 2002/02/23 10:42:01 1.12
***************
*** 19,26 ****
#include "argcv.h"
- char srtime[] = __TIME__;
-
/*
* takes a string and splits it into several strings, breaking at ' '
* command is the string to split
--- 19,24 ----
***************
*** 43,49 ****
i = *save;
if (i >= len)
! return i;
/* Skip initial whitespace */
while (i < len && isws (command[i]))
--- 41,47 ----
i = *save;
if (i >= len)
! return i + 1;
/* Skip initial whitespace */
while (i < len && isws (command[i]))
***************
*** 74,80 ****
/* If we have a token, and it starts with a comment character, skip
to the newline and restart the token search. */
! if (*save < len)
{
if (cmnt && strchr (cmnt, command[*start]) != NULL)
{
--- 72,78 ----
/* If we have a token, and it starts with a comment character, skip
to the newline and restart the token search. */
! if (*save <= len)
{
if (cmnt && strchr (cmnt, command[*start]) != NULL)
{
***************
*** 99,111 ****
int i = 0;
int start, end, save;
- *argc = 0;
*argv = NULL;
/* Count number of arguments */
save = 0;
! while (argcv_scan (len, command, delim, cmnt, &start, &end, &save) < len)
(*argc)++;
*argv = calloc ((*argc + 1), sizeof (char *));
--- 97,109 ----
int i = 0;
int start, end, save;
*argv = NULL;
/* Count number of arguments */
+ *argc = 0;
save = 0;
! while (argcv_scan (len, command, delim, cmnt, &start, &end, &save) <= len)
(*argc)++;
*argv = calloc ((*argc + 1), sizeof (char *));
***************
*** 198,211 ****
}
#if 0
! char *command = "set prompt=\"& \"";
! main()
{
int i, argc;
char **argv;
! argcv_get (command, "=", NULL, &argc, &argv);
printf ("%d args:\n", argc);
for (i = 0; i < argc; i++)
printf ("%s\n", argv[i]);
--- 196,209 ----
}
#if 0
! char *command = "set prompt=\"& \" ";
! main(int xargc, char **xargv)
{
int i, argc;
char **argv;
! argcv_get (xargv[1] ? xargv[1]:command, "=", "#", &argc, &argv);
printf ("%d args:\n", argc);
for (i = 0; i < argc; i++)
printf ("%s\n", argv[i]);
Regards,
Sergey