diff options
author | Michael Zucci <zucchi@src.gnome.org> | 2000-11-24 15:06:45 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2000-11-24 15:06:45 +0800 |
commit | 05aaadc66b77c9f080b590fa19938de8ec80691d (patch) | |
tree | 29a0a25e2261139de414e4a6172e678fafa4322b /camel/tests/lib/camel-test.c | |
parent | 189cb50426fc12b55a79c67a00064623ec964383 (diff) | |
download | gsoc2013-evolution-05aaadc66b77c9f080b590fa19938de8ec80691d.tar gsoc2013-evolution-05aaadc66b77c9f080b590fa19938de8ec80691d.tar.gz gsoc2013-evolution-05aaadc66b77c9f080b590fa19938de8ec80691d.tar.bz2 gsoc2013-evolution-05aaadc66b77c9f080b590fa19938de8ec80691d.tar.lz gsoc2013-evolution-05aaadc66b77c9f080b590fa19938de8ec80691d.tar.xz gsoc2013-evolution-05aaadc66b77c9f080b590fa19938de8ec80691d.tar.zst gsoc2013-evolution-05aaadc66b77c9f080b590fa19938de8ec80691d.zip |
little util to scan mailboxes for any and every address they contain.
* tests/data/getaddr.pl: little util to scan mailboxes for any and
every address they contain.
* tests/message/test2.c (main): Added a bunch of stuff to test
decoding/reencoding/etc of internationalised addresses.
* tests/message/lib/address-data.h: Copy of some unicode/other
testing data. **Beware** of editing this file in emacs, it'll
probably try and convert all the characters to something
unusable.
* tests/lib/camel-test.c (camel_test_break): Add a debugger hook
point.
* camel-mime-utils.c (quoted_encode): Check for space and convert
to _ separately.
(header_decode_mailbox): Fixed the 'check comments for realname'
code, problem was the domain getting code was skipping all
whitespace/comments before we could get a look-in. This is
approximate but fairly robust.
(header_decode_text): Dont use the c-type isspace func here, we
want a specific whitespace only.
(header_decode_text): If we have decoded words next to each other,
do not insert whitespaces between them, which is what rfc2047 requires.
(header_decode_text): Make c unsigned too.
svn path=/trunk/; revision=6658
Diffstat (limited to 'camel/tests/lib/camel-test.c')
-rw-r--r-- | camel/tests/lib/camel-test.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/camel/tests/lib/camel-test.c b/camel/tests/lib/camel-test.c index a913ad78a4..6a1e00addb 100644 --- a/camel/tests/lib/camel-test.c +++ b/camel/tests/lib/camel-test.c @@ -116,6 +116,11 @@ void camel_test_pull(void) g_free(node); } +/* where to set breakpoints */ +void camel_test_break(void) +{ +} + void camel_test_fail(const char *why, ...) { va_list ap; @@ -135,6 +140,7 @@ void camel_test_failv(const char *why, va_list ap) if ((nonfatal == NULL && camel_test_verbose > 0) || (nonfatal && camel_test_verbose > 1)) { printf("Failed.\n%s\n", text); + camel_test_break(); } g_free(text); |