[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 21:47:13 GMT 2011



> On Feb. 20, 2011, 7:41 p.m., Thomas McGuire wrote:
> > messagecomposer/skeletonmessagejob.cpp, line 146
> > <http://git.reviewboard.kde.org/r/100690/diff/3/?file=9636#file9636line146>
> >
> >     That error message is a bit confusing if it is ever shown to the user.
> >     
> >     There are two cases that can trigger an empty fqdn:
> >     1) The user has checked the checkbox to use a custom ID, but didn't actually enter one
> >     2) QHostInfo::localHostName() return an empty string
> >     
> >     For 1), the error should specify that exactly this happens.
> >     For 2), maybe just use "local.domain" as the FQDN? I think we do something similar in the SMTP slave as well.

I think in case of 1) we should simply fall back to using the standard suffix, i.e. QHostInfo::localHostName().

Re 2): Can this really happen? Anyway, using "local.domain" as fallback is fine with me.

All in all I think we don't need to bother the user with an error message.


- Ingo


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


On Feb. 20, 2011, 6:57 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, 6:57 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