test/mime_test.cc
changeset 306 abca32c31ace
parent 302 1d1a2e776631
child 345 9e129a270a46
     1.1 --- a/test/mime_test.cc	Sun May 31 19:31:32 2015 +0200
     1.2 +++ b/test/mime_test.cc	Sun May 31 19:36:55 2015 +0200
     1.3 @@ -65,11 +65,12 @@
     1.4  
     1.5      // testing multipart/alternative
     1.6  
     1.7 -    message *msg2 = new_message(PEP_dir_incoming,
     1.8 -            new_identity("vb@dingens.org", NULL, NULL, "Volker Birk"),
     1.9 -            new_identity_list(new_identity("trischa@dingens.org", NULL, NULL, "Patricia Bädnar")),
    1.10 -            "my sübject");
    1.11 +    message *msg2 = new_message(PEP_dir_incoming);
    1.12      assert(msg2);
    1.13 +    msg2->from = new_identity("vb@dingens.org", NULL, NULL, "Volker Birk");
    1.14 +    msg2->to = new_identity_list(new_identity("trischa@dingens.org", NULL, NULL, "Patricia Bädnar")),
    1.15 +    msg2->shortmsg = strdup("my sübject");
    1.16 +
    1.17      string text2 = "my mèssage to yoü";
    1.18      msg2->longmsg = strdup(text2.c_str());
    1.19      string html2 = "<html><body><p>my message to you</p></body></html>";