Sun, 31 Mar 2019 17:45:25 -0400
Switch to GMime for sametime.
This causes a few differences (as shown in the tests):
* MIME headers are in a slightly different order,
* MIME headers use `Camel-Case` instead of `lower-case`,
* `Content-Type` includes a `charset` parameter,
* An extra newline at the end of MIME parts was dropped,
* Filenames in attachment parts are no longer quoted,
* `Content-Disposition` and image base64 data are now wrapped,
* Unix newlines are sent consistently as DOS newlines (but correctly
parsed back to Unix).
|
39525
e1280f3aaea8
sametime: Add MIME processing tests.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
1 | foreach prog : ['im_mime'] |
|
e1280f3aaea8
sametime: Add MIME processing tests.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
2 | e = executable( |
|
e1280f3aaea8
sametime: Add MIME processing tests.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
3 | 'test_sametime_' + prog, 'test_sametime_@0@.c'.format(prog), |
|
e1280f3aaea8
sametime: Add MIME processing tests.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
4 | link_with : [sametime_prpl], |
|
39526
4f678f514b69
Switch to GMime for sametime.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39525
diff
changeset
|
5 | dependencies : [libpurple_dep, gmime, glib]) |
|
39525
e1280f3aaea8
sametime: Add MIME processing tests.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
6 | |
|
e1280f3aaea8
sametime: Add MIME processing tests.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
7 | test('sametime_' + prog, e, |
|
e1280f3aaea8
sametime: Add MIME processing tests.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
8 | env : 'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir())) |
|
e1280f3aaea8
sametime: Add MIME processing tests.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
diff
changeset
|
9 | endforeach |