Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
51f63c54
...
51f63c54af5ba99985cd5f9f160e8d724b5163d5
authored
2002-05-10 13:02:33 +0000
by
Sam Roberts
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Tweaked header files to build without errors.
1 parent
5b4ca754
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
78 additions
and
77 deletions
examples/Addrs
examples/Addrs.good
examples/Makefile
examples/mbox-check.c
examples/mbox-dates.c
examples/mbox-explode.c
examples/mimetest.c
examples/msg-send.c
examples/Addrs
View file @
51f63c5
test. abc <sascha@silbe.org>
Sam <@[matrix (smtp)], @[nexus: \[node 12\]]:sroberts@[10].[1]> ;
a@b,z@y
,a@b,z@y
...
...
examples/Addrs.good
View file @
51f63c5
test. abc <sascha@silbe.org>=> error MU_ERR_BAD_822_FORMAT
Sam <@[matrix (smtp)], @[nexus: \[node 12\]]:sroberts@[10].[1]> ;=> error MU_ERR_BAD_822_FORMAT
a@b,z@y=> pcount 2
...
...
@@ -54,116 +56,100 @@ a@b,=> pcount 1
,,,=> error MU_ERR_EMPTY_ADDRESS
a group: a@b,z@y ;=> pcount 3
1 group <a group>
2 email <a@b>
a group: a@b,z@y ;=> pcount 2
1 email <a@b>
local-part <a> domain <b>
3
email <z@y>
2
email <z@y>
local-part <z> domain <y>
a group: ,a@b,z@y ;=> pcount 3
1 group <a group>
2 email <a@b>
a group: ,a@b,z@y ;=> pcount 2
1 email <a@b>
local-part <a> domain <b>
3
email <z@y>
2
email <z@y>
local-part <z> domain <y>
a group: a@b,z@y, ;=> pcount 3
1 group <a group>
2 email <a@b>
a group: a@b,z@y, ;=> pcount 2
1 email <a@b>
local-part <a> domain <b>
3
email <z@y>
2
email <z@y>
local-part <z> domain <y>
a group: ,a@b,z@y, ;=> pcount 3
1 group <a group>
2 email <a@b>
a group: ,a@b,z@y, ;=> pcount 2
1 email <a@b>
local-part <a> domain <b>
3
email <z@y>
2
email <z@y>
local-part <z> domain <y>
a group: a@b,,z@y ;=> pcount 3
1 group <a group>
2 email <a@b>
a group: a@b,,z@y ;=> pcount 2
1 email <a@b>
local-part <a> domain <b>
3
email <z@y>
2
email <z@y>
local-part <z> domain <y>
a group: a@b,,,z@y ;=> pcount 3
1 group <a group>
2 email <a@b>
a group: a@b,,,z@y ;=> pcount 2
1 email <a@b>
local-part <a> domain <b>
3
email <z@y>
2
email <z@y>
local-part <z> domain <y>
a group: ,,,a@b,,, ;=> pcount 2
1 group <a group>
2 email <a@b>
a group: ,,,a@b,,, ;=> pcount 1
1 email <a@b>
local-part <a> domain <b>
a group: ,a@b ;=> pcount 2
1 group <a group>
2 email <a@b>
a group: ,a@b ;=> pcount 1
1 email <a@b>
local-part <a> domain <b>
a group: a@b, ;=> pcount 2
1 group <a group>
2 email <a@b>
a group: a@b, ;=> pcount 1
1 email <a@b>
local-part <a> domain <b>
a group: , ;=> pcount 1
1 group <a group>
a group: , ;=> error MU_ERR_EMPTY_ADDRESS
a group: ,, ;=> pcount 1
1 group <a group>
a group: ,, ;=> error MU_ERR_EMPTY_ADDRESS
a group: ,,, ;=> pcount 1
1 group <a group>
a group: ,,, ;=> error MU_ERR_EMPTY_ADDRESS
Sam <@[matrix (smtp)], @[nexus: \[node 12\]]:sroberts@[10].[1]> ;=> error MU_ERR_BAD_822_FORMAT
Aliens: Sam <@[matrix (smtp)]: sam@sam>, sroberts@[10].[1];=> pcount 3
1 group <Aliens>
2 email <sam@sam>
Aliens: Sam <@[matrix (smtp)]: sam@sam>, sroberts@[10].[1];=> pcount 2
1 email <sam@sam>
personal <Sam>
local-part <sam> domain <sam>
route <@[matrix (smtp)]>
3
email <sroberts@[10].[1]>
2
email <sroberts@[10].[1]>
local-part <sroberts> domain <[10].[1]>
lo@hi, Aliens: Sam <@[matrix (smtp)]: sam@sam>, sroberts@[10].[1];=> pcount
4
lo@hi, Aliens: Sam <@[matrix (smtp)]: sam@sam>, sroberts@[10].[1];=> pcount
3
1 email <lo@hi>
local-part <lo> domain <hi>
2 group <Aliens>
3 email <sam@sam>
2 email <sam@sam>
personal <Sam>
local-part <sam> domain <sam>
route <@[matrix (smtp)]>
4
email <sroberts@[10].[1]>
3
email <sroberts@[10].[1]>
local-part <sroberts> domain <[10].[1]>
Aliens: Sam <@[matrix (smtp)]: sam@sam>, sroberts@[10].[1];, hi@lo=> pcount 4
1 group <Aliens>
2 email <sam@sam>
Aliens: Sam <@[matrix (smtp)]: sam@sam>, sroberts@[10].[1];, hi@lo=> pcount 3
1 email <sam@sam>
personal <Sam>
local-part <sam> domain <sam>
route <@[matrix (smtp)]>
3
email <sroberts@[10].[1]>
2
email <sroberts@[10].[1]>
local-part <sroberts> domain <[10].[1]>
4
email <hi@lo>
3
email <hi@lo>
local-part <hi> domain <lo>
lo@hi, Aliens: Sam <@[matrix (smtp)]: sam@sam>, sroberts@[10].[1];, hi@lo=> pcount
5
lo@hi, Aliens: Sam <@[matrix (smtp)]: sam@sam>, sroberts@[10].[1];, hi@lo=> pcount
4
1 email <lo@hi>
local-part <lo> domain <hi>
2 group <Aliens>
3 email <sam@sam>
2 email <sam@sam>
personal <Sam>
local-part <sam> domain <sam>
route <@[matrix (smtp)]>
4
email <sroberts@[10].[1]>
3
email <sroberts@[10].[1]>
local-part <sroberts> domain <[10].[1]>
5
email <hi@lo>
4
email <hi@lo>
local-part <hi> domain <lo>
Sam <@mail2.uniserve.com:sroberts@uniserve.com>=> pcount 1
...
...
@@ -499,8 +485,7 @@ Catharine Shyong <shyong@t-iii.com>=> pcount 1
personal <Catharine Shyong>
local-part <shyong> domain <t-iii.com>
DRUMS-Last-Call:;=> pcount 1
1 group <DRUMS-Last-Call>
DRUMS-Last-Call:;=> error MU_ERR_EMPTY_ADDRESS
Detailed Revision/Update of Message Standards <drums@cs.utk.edu>=> pcount 1
1 email <drums@cs.utk.edu>
...
...
@@ -522,12 +507,10 @@ IETF working group on revision of mail standards <drums@cs.utk.edu>=> pcount 1
personal <IETF working group on revision of mail standards>
local-part <drums> domain <cs.utk.edu>
IETF-Announce:;=> pcount 1
1 group <IETF-Announce>
IETF-Announce:;=> error MU_ERR_EMPTY_ADDRESS
IETF-Announce:;, drums@cs.utk.edu=> pcount 2
1 group <IETF-Announce>
2 email <drums@cs.utk.edu>
IETF-Announce:;, drums@cs.utk.edu=> pcount 1
1 email <drums@cs.utk.edu>
local-part <drums> domain <cs.utk.edu>
Jean-Baptiste Marchand <Jean-Baptiste.Marchand@epita.fr>=> pcount 1
...
...
@@ -559,7 +542,7 @@ OSULLIE@rte.ie, skidswam@hotmail.com, boot=> pcount 3
local-part <OSULLIE> domain <rte.ie>
2 email <skidswam@hotmail.com>
local-part <skidswam> domain <hotmail.com>
3 email <>
3 email <
boot@localhost
>
local-part <boot>
Paul Hoffman / IMC <phoffman@imc.org>=> pcount 1
...
...
@@ -568,7 +551,7 @@ Paul Hoffman / IMC <phoffman@imc.org>=> pcount 1
local-part <phoffman> domain <imc.org>
Sam=> pcount 1
1 email <>
1 email <
Sam@localhost
>
local-part <Sam>
Sam Roberts <sam@cogent.ca>=> pcount 1
...
...
@@ -614,17 +597,16 @@ mcaustin@eudoramail.com, aposner@usaid.gov, Kieran.O'Leary@anpost.ie,=> pcount 3
rfunk@wks.uts.ohio-state.eduofflinemailer-bounce@dikke.penguin.nl=> error MU_ERR_BAD_822_FORMAT
root=> pcount 1
1 email <>
1 email <
root@localhost
>
local-part <root>
srr <sam@localhost>=> error MU_ERR_BAD_822_FORMAT
whom it may concern: ;;whom.it.may.concern: ;=> error MU_ERR_BAD_822_FORMAT
whom it may concern: mutt-dev@mutt.org, mutt-users@mutt.org;=> pcount 3
1 group <whom it may concern>
2 email <mutt-dev@mutt.org>
whom it may concern: mutt-dev@mutt.org, mutt-users@mutt.org;=> pcount 2
1 email <mutt-dev@mutt.org>
local-part <mutt-dev> domain <mutt.org>
3
email <mutt-users@mutt.org>
2
email <mutt-users@mutt.org>
local-part <mutt-users> domain <mutt.org>
...
...
examples/Makefile
View file @
51f63c5
# Makefile
CFLAGS
=
-g -I../include -Wall
CFLAGS
=
-g -I../include -Wall
-I../lib
LDFLAGS
=
-g -static
# On QNX
LDLIBS
=
-lsocket
# On GNU/Linux (if compile with threads)
#LDLIBS = -lpthread
MULIBS
=
../
mailbox/.libs/libmailbox.a ../lib/.libs/libmailutils.a
MULIBS
=
../
lib/.libs/libmailutils.a ../mailbox/.libs/libmailbox.a ../lib/.libs/libmailutils.a
EXES
=
addr mbox-explode mbox-dates mbox-auth url-parse mbox-check mimetest msg-send
EXES
=
addr mbox-explode mbox-dates mbox-auth url-parse mbox-check mimetest msg-send
muemail
default
:
$(EXES)
...
...
@@ -26,7 +26,7 @@ bad-dates: mbox-dates
addr.test
:
addr
./addr < Addrs > Addrs.test
@
echo
"---- There should be no differences! ----"
diff -u Addrs.good Addrs.test
diff -
C5 -
u Addrs.good Addrs.test
# url example and test
...
...
examples/mbox-check.c
View file @
51f63c5
...
...
@@ -11,10 +11,12 @@
#include <unistd.h>
#include <mailutils/address.h>
#include <mailutils/debug.h>
#include <mailutils/errno.h>
#include <mailutils/mailbox.h>
#include <mailutils/parse822.h>
#include <mailutils/registrar.h>
#include <mailutils/stream.h>
int
main
(
int
argc
,
char
**
argv
)
...
...
examples/mbox-dates.c
View file @
51f63c5
...
...
@@ -11,10 +11,14 @@
#include <unistd.h>
#include <mailutils/address.h>
#include <mailutils/debug.h>
#include <mailutils/errno.h>
#include <mailutils/header.h>
#include <mailutils/mailbox.h>
#include <mailutils/message.h>
#include <mailutils/parse822.h>
#include <mailutils/registrar.h>
#include <mailutils/stream.h>
static
const
char
*
...
...
examples/mbox-explode.c
View file @
51f63c5
...
...
@@ -11,9 +11,13 @@
#include <time.h>
#include <unistd.h>
#include <mailutils/debug.h>
#include <mailutils/errno.h>
#include <mailutils/list.h>
#include <mailutils/mailbox.h>
#include <mailutils/registrar.h>
#include <mailutils/stream.h>
#include <mailutils/message.h>
int
main
(
int
argc
,
char
**
argv
)
...
...
examples/mimetest.c
View file @
51f63c5
...
...
@@ -28,11 +28,17 @@
#include <sys/types.h>
#include <mailutils/body.h>
#include <mailutils/debug.h>
#include <mailutils/errno.h>
#include <mailutils/mailbox.h>
#include <mailutils/header.h>
#include <mailutils/filter.h>
#include <mailutils/header.h>
#include <mailutils/header.h>
#include <mailutils/list.h>
#include <mailutils/mailbox.h>
#include <mailutils/message.h>
#include <mailutils/registrar.h>
#include <mailutils/stream.h>
void
message_display_parts
(
message_t
msg
,
const
char
*
indent
);
...
...
examples/msg-send.c
View file @
51f63c5
...
...
@@ -8,7 +8,9 @@
#include <unistd.h>
#include <mailutils/address.h>
#include <mailutils/debug.h>
#include <mailutils/errno.h>
#include <mailutils/list.h>
#include <mailutils/mailer.h>
#include <mailutils/message.h>
#include <mailutils/registrar.h>
...
...
Please
register
or
sign in
to post a comment