Commit 471021d1 471021d188407e61086f96393b2de67238fca7db by Sam Roberts

New addr return codes.

1 parent 5ad2243f
1 Sam <@[matrix (smtp)], @[nexus: \[node 12\]]:sroberts@[10].[1]> ;=> error EPARSE 1 Sam <@[matrix (smtp)], @[nexus: \[node 12\]]:sroberts@[10].[1]> ;=> error MU_ERR_BAD_822_FORMAT
2 2
3 a@b,z@y=> pcount 2 3 a@b,z@y=> pcount 2
4 1 email <a@b> 4 1 email <a@b>
...@@ -48,11 +48,11 @@ a@b,=> pcount 1 ...@@ -48,11 +48,11 @@ a@b,=> pcount 1
48 1 email <a@b> 48 1 email <a@b>
49 local-part <a> domain <b> 49 local-part <a> domain <b>
50 50
51 ,=> error EPARSE 51 ,=> error MU_ERR_EMPTY_ADDRESS
52 52
53 ,,=> error EPARSE 53 ,,=> error MU_ERR_EMPTY_ADDRESS
54 54
55 ,,,=> error EPARSE 55 ,,,=> error MU_ERR_EMPTY_ADDRESS
56 56
57 a group: a@b,z@y ;=> pcount 3 57 a group: a@b,z@y ;=> pcount 3
58 1 group <a group> 58 1 group <a group>
...@@ -120,7 +120,7 @@ a group: ,, ;=> pcount 1 ...@@ -120,7 +120,7 @@ a group: ,, ;=> pcount 1
120 a group: ,,, ;=> pcount 1 120 a group: ,,, ;=> pcount 1
121 1 group <a group> 121 1 group <a group>
122 122
123 Sam <@[matrix (smtp)], @[nexus: \[node 12\]]:sroberts@[10].[1]> ;=> error EPARSE 123 Sam <@[matrix (smtp)], @[nexus: \[node 12\]]:sroberts@[10].[1]> ;=> error MU_ERR_BAD_822_FORMAT
124 124
125 Aliens: Sam <@[matrix (smtp)]: sam@sam>, sroberts@[10].[1];=> pcount 3 125 Aliens: Sam <@[matrix (smtp)]: sam@sam>, sroberts@[10].[1];=> pcount 3
126 1 group <Aliens> 126 1 group <Aliens>
...@@ -172,7 +172,7 @@ Sam <@mail2.uniserve.com:sroberts@uniserve.com>=> pcount 1 ...@@ -172,7 +172,7 @@ Sam <@mail2.uniserve.com:sroberts@uniserve.com>=> pcount 1
172 local-part <sroberts> domain <uniserve.com> 172 local-part <sroberts> domain <uniserve.com>
173 route <@mail2.uniserve.com> 173 route <@mail2.uniserve.com>
174 174
175 < (hey) @ (hey, )smtp1.sympatico.ca, mail2.uniserve.com (hoo!):sroberts@uniserve.com>=> error EPARSE 175 < (hey) @ (hey, )smtp1.sympatico.ca, mail2.uniserve.com (hoo!):sroberts@uniserve.com>=> error MU_ERR_BAD_822_FORMAT
176 176
177 hw@570.com (Hardware Support Account)=> pcount 1 177 hw@570.com (Hardware Support Account)=> pcount 1
178 1 email <hw@570.com> 178 1 email <hw@570.com>
...@@ -221,7 +221,7 @@ list-ietf-wg-apps-drums@faerber.muc.de (=?ISO-8859-1?Q?Claus_F=E4rber?=)=> pcoun ...@@ -221,7 +221,7 @@ list-ietf-wg-apps-drums@faerber.muc.de (=?ISO-8859-1?Q?Claus_F=E4rber?=)=> pcoun
221 personal <'paul@pitbull-productions.com'> 221 personal <'paul@pitbull-productions.com'>
222 local-part <paul> domain <pitbull-productions.com> 222 local-part <paul> domain <pitbull-productions.com>
223 223
224 "'sam@cogent.ca'" <sam@cogent.ca>, "'sroberts@uniserve.com'"=> error EPARSE 224 "'sam@cogent.ca'" <sam@cogent.ca>, "'sroberts@uniserve.com'"=> error MU_ERR_BAD_822_FORMAT
225 225
226 "'sroberts\@certicom\.ca'" <sroberts@certicom.ca>=> pcount 1 226 "'sroberts\@certicom\.ca'" <sroberts@certicom.ca>=> pcount 1
227 1 email <sroberts@certicom.ca> 227 1 email <sroberts@certicom.ca>
...@@ -364,7 +364,7 @@ list-ietf-wg-apps-drums@faerber.muc.de (=?ISO-8859-1?Q?Claus_F=E4rber?=)=> pcoun ...@@ -364,7 +364,7 @@ list-ietf-wg-apps-drums@faerber.muc.de (=?ISO-8859-1?Q?Claus_F=E4rber?=)=> pcoun
364 personal <zwk@f36.n480.z2.fidonet.org> 364 personal <zwk@f36.n480.z2.fidonet.org>
365 local-part <zwk%f36.n480.z2.fidonet.org> domain <f36.n480.z2.fidonet.org> 365 local-part <zwk%f36.n480.z2.fidonet.org> domain <f36.n480.z2.fidonet.org>
366 366
367 'Dan Dall'Acqua' <ddallacqua@noetic.ab.ca>, 'Dave Shyong'=> error EPARSE 367 'Dan Dall'Acqua' <ddallacqua@noetic.ab.ca>, 'Dave Shyong'=> error MU_ERR_BAD_822_FORMAT
368 368
369 0xdeadbeef-request@petting-zoo.net=> pcount 1 369 0xdeadbeef-request@petting-zoo.net=> pcount 1
370 1 email <0xdeadbeef-request@petting-zoo.net> 370 1 email <0xdeadbeef-request@petting-zoo.net>
...@@ -382,7 +382,7 @@ list-ietf-wg-apps-drums@faerber.muc.de (=?ISO-8859-1?Q?Claus_F=E4rber?=)=> pcoun ...@@ -382,7 +382,7 @@ list-ietf-wg-apps-drums@faerber.muc.de (=?ISO-8859-1?Q?Claus_F=E4rber?=)=> pcoun
382 1 email <0xdeadbeef-request@petting-zoo.net> 382 1 email <0xdeadbeef-request@petting-zoo.net>
383 local-part <0xdeadbeef-request> domain <petting-zoo.net> 383 local-part <0xdeadbeef-request> domain <petting-zoo.net>
384 384
385 <>=> error EPARSE 385 <>=> error MU_ERR_BAD_822_FORMAT
386 386
387 <Christia.Roberts@nrc.ca>=> pcount 1 387 <Christia.Roberts@nrc.ca>=> pcount 1
388 1 email <Christia.Roberts@nrc.ca> 388 1 email <Christia.Roberts@nrc.ca>
...@@ -392,7 +392,7 @@ list-ietf-wg-apps-drums@faerber.muc.de (=?ISO-8859-1?Q?Claus_F=E4rber?=)=> pcoun ...@@ -392,7 +392,7 @@ list-ietf-wg-apps-drums@faerber.muc.de (=?ISO-8859-1?Q?Claus_F=E4rber?=)=> pcoun
392 1 email <Nick_Shelness@motorcity2.lotus.com> 392 1 email <Nick_Shelness@motorcity2.lotus.com>
393 local-part <Nick_Shelness> domain <motorcity2.lotus.com> 393 local-part <Nick_Shelness> domain <motorcity2.lotus.com>
394 394
395 <all: >=> error EPARSE 395 <all: >=> error MU_ERR_BAD_822_FORMAT
396 396
397 <fyi-admin@emyr.net>=> pcount 1 397 <fyi-admin@emyr.net>=> pcount 1
398 1 email <fyi-admin@emyr.net> 398 1 email <fyi-admin@emyr.net>
...@@ -611,15 +611,15 @@ mcaustin@eudoramail.com, aposner@usaid.gov, Kieran.O'Leary@anpost.ie,=> pcount 3 ...@@ -611,15 +611,15 @@ mcaustin@eudoramail.com, aposner@usaid.gov, Kieran.O'Leary@anpost.ie,=> pcount 3
611 3 email <Kieran.O'Leary@anpost.ie> 611 3 email <Kieran.O'Leary@anpost.ie>
612 local-part <Kieran.O'Leary> domain <anpost.ie> 612 local-part <Kieran.O'Leary> domain <anpost.ie>
613 613
614 rfunk@wks.uts.ohio-state.eduofflinemailer-bounce@dikke.penguin.nl=> error EPARSE 614 rfunk@wks.uts.ohio-state.eduofflinemailer-bounce@dikke.penguin.nl=> error MU_ERR_BAD_822_FORMAT
615 615
616 root=> pcount 1 616 root=> pcount 1
617 1 email <> 617 1 email <>
618 local-part <root> 618 local-part <root>
619 619
620 srr <sam@localhost>=> error EPARSE 620 srr <sam@localhost>=> error MU_ERR_BAD_822_FORMAT
621 621
622 whom it may concern: ;;whom.it.may.concern: ;=> error EPARSE 622 whom it may concern: ;;whom.it.may.concern: ;=> error MU_ERR_BAD_822_FORMAT
623 623
624 whom it may concern: mutt-dev@mutt.org, mutt-users@mutt.org;=> pcount 3 624 whom it may concern: mutt-dev@mutt.org, mutt-users@mutt.org;=> pcount 3
625 1 group <whom it may concern> 625 1 group <whom it may concern>
......
1 #include <stdio.h> 1 #include <stdio.h>
2 #include <errno.h> 2 #include <errno.h>
3
3 #include <mailutils/address.h> 4 #include <mailutils/address.h>
5 #include <mailutils/errno.h>
4 6
5 #define EPARSE ENOENT 7 #define EPARSE ENOENT
6 8
......