491
491
group.writeEntry( "MailingListFeatures", static_cast<int>( d->mFeatures ) );
492
492
group.writeEntry( "MailingListHandler", static_cast<int>( d->mHandler ) );
493
493
group.writeEntry( "MailingListId", d->mId );
494
group.writeEntry( "MailingListPostingAddress", d->mPostUrls.toStringList() );
495
group.writeEntry( "MailingListSubscribeAddress", d->mSubscribeUrls.toStringList() );
496
group.writeEntry( "MailingListUnsubscribeAddress", d->mUnsubscribeUrls.toStringList() );
497
group.writeEntry( "MailingListArchiveAddress", d->mArchiveUrls.toStringList() );
498
group.writeEntry( "MailingListOwnerAddress", d->mOwnerUrls.toStringList() );
499
group.writeEntry( "MailingListHelpAddress", d->mHelpUrls.toStringList() );
500
/* Note: mArchivedAtUrl deliberately not saved here as it refers to a single
494
QStringList lst = d->mPostUrls.toStringList();
495
if ( !lst.isEmpty() )
496
group.writeEntry( "MailingListPostingAddress", lst );
498
group.deleteEntry( "MailingListPostingAddress" );
500
lst = d->mSubscribeUrls.toStringList();
501
if ( !lst.isEmpty() )
502
group.writeEntry( "MailingListSubscribeAddress", lst );
504
group.deleteEntry( "MailingListSubscribeAddress" );
506
lst = d->mUnsubscribeUrls.toStringList();
507
if ( !lst.isEmpty() )
508
group.writeEntry( "MailingListUnsubscribeAddress", lst );
510
group.deleteEntry( "MailingListUnsubscribeAddress" );
512
lst = d->mArchiveUrls.toStringList();
513
if ( !lst.isEmpty() )
514
group.writeEntry( "MailingListArchiveAddress", lst );
516
group.deleteEntry( "MailingListArchiveAddress" );
518
lst = d->mOwnerUrls.toStringList();
519
if ( !lst.isEmpty() )
520
group.writeEntry( "MailingListOwnerAddress", lst );
522
group.deleteEntry( "MailingListOwnerAddress" );
524
lst = d->mHelpUrls.toStringList();
525
if ( !lst.isEmpty() )
526
group.writeEntry( "MailingListHelpAddress", lst );
528
group.deleteEntry( "MailingListHelpAddress" );
530
/* Note: mArchivedAtUrl deliberately not saved here as it refers to a single
501
531
* instance of a message rather than an element of a general mailing list.
502
532
* http://reviewboard.kde.org/r/1768/#review2783