author | Eric W. Biederman <ebiederm@xmission.com> | |
Tue, 23 May 2006 19:47:28 +0000 (13:47 -0600) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 23 May 2006 21:04:47 +0000 (14:04 -0700) | ||
commit | 8b4525fb3c6d79bd3a64b8f441237a4095db4e22 | |
tree | 93bd2b25f9c56999b0930e90143ff0c9dc900c16 | tree | snapshot |
parent | 3350453014324e375cdca722b50e93cdd78894ed | commit | diff |
Refactor commit messge handling.
- Move handle_info into main so it is called once
after everything has been parsed. This allows the removal
of a static variable and removes two duplicate calls.
- Move parsing of inbody headers into handle_commit.
This means we parse the in-body headers after we have decoded
the character set, and it removes code duplication between
handle_multipart_one_part and handle_body.
- Change the flag indicating that we have seen an in body
prefix header into another bit in seen.
This is a little more general and allows the possibility of parsing
in body headers after the body message has begun.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
- Move handle_info into main so it is called once
after everything has been parsed. This allows the removal
of a static variable and removes two duplicate calls.
- Move parsing of inbody headers into handle_commit.
This means we parse the in-body headers after we have decoded
the character set, and it removes code duplication between
handle_multipart_one_part and handle_body.
- Change the flag indicating that we have seen an in body
prefix header into another bit in seen.
This is a little more general and allows the possibility of parsing
in body headers after the body message has begun.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
mailinfo.c | diff | blob | history |