test/mime_test.cc
changeset 147 b03a10242e4c
parent 113 4bee48270834
child 159 ad6d0993d1ab
     1.1 --- a/test/mime_test.cc	Fri Mar 27 13:36:57 2015 +0100
     1.2 +++ b/test/mime_test.cc	Sat Mar 28 10:52:40 2015 +0100
     1.3 @@ -58,8 +58,19 @@
     1.4      }
     1.5      inFile3.close();
     1.6  
     1.7 +    cout << "decoding message…\n";
     1.8      message *msg3;
     1.9      PEP_STATUS status3 = mime_decode_message(mimetext3.c_str(), &msg3);
    1.10 +    assert(status3 == PEP_STATUS_OK);
    1.11 +    assert(msg3);
    1.12 +    cout << "decoded.\n\n";
    1.13 +    cout << "Subject: " << msg3->shortmsg << "\n\n";
    1.14 +    if (msg3->longmsg)
    1.15 +        cout << msg3->longmsg << "\n\n";
    1.16 +    if (msg3->longmsg_formatted)
    1.17 +        cout << msg3->longmsg_formatted << "\n\n";
    1.18 +
    1.19 +    free_message(msg3);
    1.20  
    1.21      cout << "calling release()\n";
    1.22      release(session);