<table><tr><td style="">poboiko created this revision.<br />poboiko added reviewers: dvratil, mlaurent.<br />Herald added a project: KDE PIM.<br />poboiko requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D27906">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>As user types path inside configuration dialog, it gets checked to display<br />
the comment whether it's a valid maildir or not. Under the hood, it calls<br />
<tt style="background: #ebebeb; font-size: 13px;">maildir.isValid(createMissingFolders=false)</tt>. There was a codepath, however,<br />
where <tt style="background: #ebebeb; font-size: 13px;">createMissingFolders</tt> is not provided (and the default value is <tt style="background: #ebebeb; font-size: 13px;">true</tt>),<br />
thus creating <tt style="background: #ebebeb; font-size: 13px;">cur/new/tmp</tt> folders all over the place as user types the path.</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">Try to create maildir inside <tt style="background: #ebebeb; font-size: 13px;">/tmp/dummy</tt></li>
<li class="remarkup-list-item">Observe <tt style="background: #ebebeb; font-size: 13px;">cur/new/tmp</tt> folders being created everywhere inside <tt style="background: #ebebeb; font-size: 13px;">/tmp/*</tt></li>
<li class="remarkup-list-item">After applying the patch, they don't</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R44 KDE PIM Runtime</div></div></div><br /><div><strong>BRANCH</strong><div><div>dont-create-junk (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27906">https://phabricator.kde.org/D27906</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>resources/maildir/libmaildir/maildir.cpp</div></div></div><br /><div><strong>To: </strong>poboiko, dvratil, mlaurent<br /><strong>Cc: </strong>kde-pim, fbampaloukas, dcaliste, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>