From: Junio C Hamano <junkio@cox.net>
To: "Fernando J. Pereda" <ferdy@gentoo.org>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH] Teach mailsplit about Maildir's
Date: Sun, 20 May 2007 20:15:12 -0700 [thread overview]
Message-ID: <7vd50uj29r.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <20070520181447.GA10638@ferdyx.org> (Fernando J. Pereda's message of "Sun, 20 May 2007 20:14:47 +0200")
"Fernando J. Pereda" <ferdy@gentoo.org> writes:
> - ret = split_mbox(argp, dir, allow_bare, nr_prec, nr);
> + while (*argp) {
> + const char *arg = *argp++;
> + struct stat argstat;
> +
> + if (arg[0] == '-' && arg[1] == 0) {
> + ret |= split_mbox(arg, dir, allow_bare, nr_prec, nr);
> + continue;
> + }
> +
> + if (stat(arg, &argstat) == -1) {
> + error("cannot stat %s (%s)", arg, strerror(errno));
> + return 1;
> + }
> +
> + if (S_ISDIR(argstat.st_mode))
> + ret |= split_maildir(arg, dir, nr_prec, nr);
> + else
> + ret |= split_mbox(arg, dir, allow_bare, nr_prec, nr);
> + }
> +
> if (ret != -1)
> printf("%d\n", ret);
>
No kidding. ret |= stuff and then printf("%d\n", ret) would not
give us the number of commit e-mails on the standard output.
next prev parent reply other threads:[~2007-05-21 3:15 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-20 18:14 [PATCH] Teach mailsplit about Maildir's Fernando J. Pereda
2007-05-20 18:36 ` Junio C Hamano
2007-05-20 18:49 ` Alex Riesen
2007-05-20 19:00 ` Fernando J. Pereda
2007-05-20 20:35 ` Alex Riesen
2007-05-20 20:44 ` Fernando J. Pereda
2007-05-20 18:53 ` Johan Herland
2007-05-20 19:18 ` Fernando J. Pereda
2007-05-20 19:27 ` Johan Herland
2007-05-21 12:55 ` Johannes Schindelin
2007-05-21 3:15 ` Junio C Hamano [this message]
2007-05-21 12:56 ` Johannes Schindelin
2007-05-21 18:17 ` Fernando J. Pereda
2007-05-21 18:20 ` Fernando J. Pereda
2007-05-21 23:05 ` [PATCH] Allow user to specify mailbox format for mailsplit Alex Riesen
2007-05-21 23:19 ` Junio C Hamano
2007-05-22 22:04 ` Alex Riesen
2007-05-24 19:47 ` [PATCH] Teach mailsplit about Maildir's Junio C Hamano
2007-05-24 19:56 ` Fernando J. Pereda
2007-05-24 20:12 ` Junio C Hamano
2007-05-24 22:15 ` Fernando J. Pereda
-- strict thread matches above, loose matches on Subject: below --
2007-04-26 19:24 Fernando J. Pereda
2007-04-27 8:30 ` Fernando J. Pereda
2007-04-27 8:54 ` Junio C Hamano
2007-04-27 8:59 ` Fernando J. Pereda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vd50uj29r.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=ferdy@gentoo.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).