[Kde-pim] Re: Review Request: Always generate a Message-ID header when composing a message

Ingo Klöcker kloecker at kde.org
Sun Feb 20 15:44:45 GMT 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/100690/#review1528
-----------------------------------------------------------



messagecomposer/skeletonmessagejob.cpp
<http://git.reviewboard.kde.org/r/100690/#comment1293>

    Minor nitpick: Move this include to the other Qt header includes (and keep the alphabetic sort order of the Qt headers).



messagecomposer/skeletonmessagejob.cpp
<http://git.reviewboard.kde.org/r/100690/#comment1294>

    Using toUtf8() is no good. The Message-Id has to be ASCII-only. If localHostName is used then convert it to the 7-bit representation with QUrl::toAce(). If a custom suffix is used then ... hmm ... then remove any characters that are not allowed in a domain name. (I don't know what characters are allowed from the top of my head.)
    
    Sorry for not spotting this in my first review.



messagecomposer/tests/skeletonmessagejobtest.cpp
<http://git.reviewboard.kde.org/r/100690/#comment1295>

    composer does not seem to be destroyed. The same problem occurs in the other tests. :-( Unit tests really shouldn't leak memory knowingly because this makes it impossible to use the unit tests to uncover unknown memory leaks.
    
    I suggest creating composer on the stack:
    Composer composer;
    
    Fix the other tests in a separate commit.



messagecomposer/tests/skeletonmessagejobtest.cpp
<http://git.reviewboard.kde.org/r/100690/#comment1296>

    Is this also leaked? Or is it destroyed if composer is destroyed?


- Ingo


On Feb. 20, 2011, 2:19 p.m., Torgny Nyblom wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/100690/
> -----------------------------------------------------------
> 
> (Updated Feb. 20, 2011, 2:19 p.m.)
> 
> 
> Review request for KDEPIM.
> 
> 
> Summary
> -------
> 
> Always generate a Message-ID header when composing a message. This header is marked as optional according to the RFC but at the same time a comment says that it really SHOULD be present...
> 
> There is a catch... the old unit tests will fail since they do not include the Message-ID header so the tests needs to be adapted but I couldn't figure out how (at least not yet).
> 
> 
> This addresses bug 266063.
>     http://bugs.kde.org/show_bug.cgi?id=266063
> 
> 
> Diffs
> -----
> 
>   messagecomposer/composer.cpp da4c791 
>   messagecomposer/skeletonmessagejob.cpp 69b8c3e 
>   messagecomposer/tests/skeletonmessagejobtest.h d9db557 
>   messagecomposer/tests/skeletonmessagejobtest.cpp 46c0dca 
> 
> Diff: http://git.reviewboard.kde.org/r/100690/diff
> 
> 
> Testing
> -------
> 
> Mail generating and sending works.
> New unit test
> 
> 
> Thanks,
> 
> Torgny
> 
>

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list