# git-send-email and pine alias format

3 messages from 2007-07-23 to 2007-07-24. Participants: Kumar Gala, Junio C Hamano.
Thread: https://gitlist.dev/t/9177

## Kumar Gala, 2007-07-23 16:49

Subject: git-send-email and pine alias format
Message-ID: <Pine.LNX.4.64.0707231146160.6889@blarg.am.freescale.net>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0707231146160.6889%40blarg.am.freescale.net

```
I was wondering why we don't parse the pine alias format according to the
following spec:

http://www.washington.edu/pine/tech-notes/low-level.html

I'd expect omething like, to get the address field.

@@ -225,7 +238,7 @@ my %parse_alias = (
                        $aliases{$1} = [ split(/\s+/, $2) ];
                }}},
        pine => sub { my $fh = shift; while (<$fh>) {
-               if (/^(\S+)\t.*\t(.*)$/) {
+               if (/^(\S+)\s+(.*)$/) {
                        $aliases{$1} = [ split(/\s*,\s*/, $2) ];
                }}},
        gnus => sub { my $fh = shift; while (<$fh>) {

- k

```

## Junio C Hamano, 2007-07-24 06:53

Subject: Re: git-send-email and pine alias format
Message-ID: <7vodi2i97j.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vodi2i97j.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <Pine.LNX.4.64.0707231146160.6889@blarg.am.freescale.net>

```
Kumar Gala <galak@kernel.crashing.org> writes:

> I was wondering why we don't parse the pine alias format according to the
> following spec:
>
> http://www.washington.edu/pine/tech-notes/low-level.html
>
> I'd expect something like, to get the address field.

My guess is simply because we got a "works-for-us" regexp by
observing the program's behaviour, done by real Pine users.  On
top of that, probably nobody knew and/or bothered to check if
there is such "official spec" available.

Could you send a signed and testable patch to the list so other
Pine users can try it out please?  After seeing a few Ack's on
the list, I'd like to apply it and preferably do so before 1.5.3
final.

```

## Kumar Gala, 2007-07-24 14:51

Subject: Re: git-send-email and pine alias format
Message-ID: <Pine.LNX.4.64.0707240950530.19035@blarg.am.freescale.net>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0707240950530.19035%40blarg.am.freescale.net
In-Reply-To: <7vodi2i97j.fsf@assigned-by-dhcp.cox.net>

```
On Mon, 23 Jul 2007, Junio C Hamano wrote:

> Kumar Gala <galak@kernel.crashing.org> writes:
>
> > I was wondering why we don't parse the pine alias format according to the
> > following spec:
> >
> > http://www.washington.edu/pine/tech-notes/low-level.html
> >
> > I'd expect something like, to get the address field.
>
> My guess is simply because we got a "works-for-us" regexp by
> observing the program's behaviour, done by real Pine users.  On
> top of that, probably nobody knew and/or bothered to check if
> there is such "official spec" available.
>
> Could you send a signed and testable patch to the list so other
> Pine users can try it out please?  After seeing a few Ack's on
> the list, I'd like to apply it and preferably do so before 1.5.3
> final.

Ok, done.

- k

```
