1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

tools: Improve debug output of rfc822parse.

* tools/rfc822parse.c (show_event): Add missing events.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2016-05-27 15:51:25 +02:00
parent d755bcb89d
commit ad75ca9c96
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -1117,7 +1117,7 @@ dump_structure (rfc822parse_t msg, part_t part, int indent)
{
rfc822parse_field_t ctx;
part_t save_part; /* ugly hack - we should have a function to
get part inforation. */
get part information. */
const char *s;
save_part = msg->current_part;
@ -1177,8 +1177,13 @@ show_event (rfc822parse_event_t event)
case RFC822PARSE_T2BODY: s= "T2Body"; break;
case RFC822PARSE_FINISH: s= "Finish"; break;
case RFC822PARSE_RCVD_SEEN: s= "Rcvd_Seen"; break;
case RFC822PARSE_LEVEL_DOWN: s= "Level_Down"; break;
case RFC822PARSE_LEVEL_UP: s= "Level_Up"; break;
case RFC822PARSE_BOUNDARY: s= "Boundary"; break;
case RFC822PARSE_LAST_BOUNDARY: s= "Last_Boundary"; break;
case RFC822PARSE_BEGIN_HEADER: s= "Begin_Header"; break;
case RFC822PARSE_PREAMBLE: s= "Preamble"; break;
case RFC822PARSE_EPILOGUE: s= "Epilogue"; break;
default: s= "***invalid event***"; break;
}
printf ("*** got RFC822 event %s\n", s);