/*
    aboutdata.cpp

    This file is part of KMail, the KDE mail client.
    SPDX-FileCopyrightText: 2003 Marc Mutz <mutz@kde.org>

    SPDX-License-Identifier: GPL-2.0-only
*/

#include "aboutdata.h"

#include "kmail-version.h"

#include <KLazyLocalizedString>
#include <KLocalizedString>

namespace KMail
{
struct about_data {
    const char *name;
    const KLazyLocalizedString desc;
    const char *email;
    const char *web;
};

// This file should not be changed by anybody other than the maintainer
// If you change the maintainer here, change it in the MAINTAINERS file in the
// top level folder as well.
// Testing mosifications. August 2021. Permission requested of M. L. Montel. @dcb
// Commit statistics below current as of June 30, 2021.

static const about_data authors[] = {
    {"Laurent Montel", kli18n("Maintainer"), "montel@kde.org", nullptr}, // Last commit June 30, 2021. 8,006 commits.
    {"Thomas McGuire", kli18n("Former maintainer"), "mcguire@kde.org", nullptr}, // Last commit Sep 10, 2011 (9/10/11). 2,344 commits.
    {"Stefan Taferner", kli18n("Original author"), "taferner@kde.org", nullptr}, // Last commit Feb 14, 2001. 189 commits.
    {"Michael H\303\244ckel", kli18n("Former maintainer"), "haeckel@kde.org", nullptr}, // Last commit Nov 12, 2002. 818 commits.
    {"Ingo Kl\303\266cker", kli18n("Former maintainer"), "kloecker@kde.org", nullptr}, // Last commit May 14, 2021. 1,017 commits.
    {"Don Sanders", kli18n("Former co-maintainer"), "sanders@kde.org", nullptr}, // Last commit Aug 22, 2005. 648 commits.
    {"Till Adam", kli18n("Former core developer"), "adam@kde.org", nullptr}, // last commit Oct 13, 2012. 1,517 commits.
    {"Volker Krause", kli18n("Core developer"), "vkrause@kde.org", nullptr}, // still active (2021). 911 commits.
    {"Carsten Burghardt", kli18n("Former core developer"), "burghardt@kde.org", nullptr}, // Last commit Oct 6, 2006. 415 commits.
    {"Marc Mutz", kli18n("Former core developer"), "mutz@kde.org", nullptr}, // Last commit Aug 19, 2010. 900 commits.
    {"Zack Rusin", kli18n("Former core developer"), "zack@kde.org", nullptr}, // Last commit Apr 13, 2004. 127 commits.
    {"Daniel Naber", kli18n("Documentation"), "daniel.naber@t-online.de", nullptr}, // Last commit Nov 10, 2003. 124 commits.
    {"Toyohiro Asukai", kli18n("Japanese language support"), "toyohiro@ksmplus.com", nullptr}, // 8 patches for Japanese language. Last patch June 25, 2004.
    {"Waldo Bastian", kli18n("Numerous technical corrections"), "bastian@kde.org", nullptr}, // Last commit Jun 16, 2004. 118 commits.
    {"Ryan Breen", kli18n("System tray notification"), "ryan@ryanbreen.com", nullptr}, // Last commit Feb 7, 2003. 10 commits.
    {"Steven Brown", kli18n("Patch for PGP"), "swbrown@ucsd.edu", nullptr}, // No commits. Mentioned once -- patch for PGP, Mar. 8, 2001.
    {"Matthias Kalle Dalheimer", kli18n("Crypto support"), "kalle@kde.org", nullptr}, // Kalle Dalheimer in logs. Last commit Aug 30, 2002. 33 commits.
    {"Matt Douhan", kli18n("Improved internal program documentation"), "matt@fruitsalad.org", nullptr}, // Last commit Jul 28, 2005. 50 commits.
    {"Cristi Dumitrescu", KLazyLocalizedString(), "cristid@chip.ro", nullptr}, // No commits. One patch, Apr 5, 2001.
    {"David Faure", kli18n("Major contributor, still active"), "faure@kde.org", nullptr}, // Last Commit Oct 6, 2020. 195 commits.
    {"Philippe Fremy", KLazyLocalizedString(), "pfremy@chez.com", nullptr}, // No commits. Mentioned twice in 2001.
    {"Kurt Granroth", kli18n("Added maildir support"), "granroth@kde.org", nullptr}, // Last commit Jun 26, 2002. 20 commits.
    {"Andreas Gungl",
     kli18n("PGP 6 support and further enhancements of the encryption support"),
     "a.gungl@gmx.de",
     nullptr}, // Last commit Mar 25, 2007. 247 commits.
    {"Steffen Hansen", KLazyLocalizedString(), "hansen@kde.org", nullptr}, // Last commit Jun 11, 2004. 12 commits.
    {"Igor Janssen", KLazyLocalizedString(), "rm@linux.ru.net", nullptr}, // One commit dated May 28, 2001.
    {"Matt Johnston", KLazyLocalizedString(), "matt@caifex.org", nullptr}, // No commits. Two patches, Nov - Dec, 2000.
    {"Christer Kaivo-oja", KLazyLocalizedString(), "whizkid@telia.com", nullptr}, // No commits. One patch, Mar 7,2001.
    {"Lars Knoll", kli18n("Original encryption support PGP 2 and PGP 5 support"), "knoll@kde.org", nullptr}, // Last commit Sep 17, 2002. 22 commits.
    {"J. Nick Koston", kli18n("GnuPG support"), "bdraco@darkorb.net", nullptr}, // No commits. One or two patches in 1999 (GnuPG).
    {"Stephan Kulow", kli18n("Major contributor"), "coolo@kde.org", nullptr}, // Last commit Aug 20, 2008. 354 commits.
    {"Guillaume Laurent", KLazyLocalizedString(), "glaurent@telegraph-road.org", nullptr}, // Last Apr 19, 2001. 2 commits, five patches.
    {"Sam Magnuson", KLazyLocalizedString(), "sam@trolltech.com", nullptr}, // One commit, Mar 10, 2003. Two patches.
    {"Matt Newell", KLazyLocalizedString(), "newellm@proaxis.com", nullptr}, // No commits. Three patches, the latest one dated Feb 23, 2001
    {"Denis Perchine", KLazyLocalizedString(), "dyp@perchine.com", nullptr}, // Last commit Dec 22, 2000. 4 commits, 1 large patch.
    {"Samuel Penn", KLazyLocalizedString(), "sam@bifrost.demon.co.uk", nullptr}, // No commits. Two patches -- most recent Jan 1, 2002.
    {"Carsten Pfeiffer", kli18n("Various and sundry bug fixes"), "pfeiffer@kde.org", nullptr}, // Last commit Oct 5, 2003. 43 commits.
    {"Sven Radej", kli18n("Improved asynchronous processes"), "radej@kde.org", nullptr}, // Last commit Mar 30, 2000. 25 commits.
    {"Mark Roberts", KLazyLocalizedString(), "mark@taurine.demon.co.uk", nullptr}, // No commits. One patch dated Sep 19, 2000.
    {"Wolfgang Rohdewald", KLazyLocalizedString(), "wolfgang@rohdewald.de", nullptr}, // One commit, Dec 10, 2008.
    {"Espen Sand", kli18n("Enhanced configuration dialogs"), "espen@kde.org", nullptr}, // Last commit Jul 4, 2000. 30 commits.
    {"Aaron J. Seigo", kli18n("Notes/calendar integration"), "aseigo@olympusproject.org", nullptr}, // Last commit Oct 6, 2014. 50 commits.
    {"George Staikos", kli18n("Improve efficiency and consistency of code"), "staikos@kde.org", nullptr}, // Last commit Apr 15, 2005. 113 commits.
    {"Szymon Stefanek", kli18n("New message list and new folder tree"), "pragma@kvirc.net", nullptr}, // Last commit Sep 2, 2009. 94 commits.
    {"Jason Stephenson", KLazyLocalizedString(), "panda@mis.net", nullptr}, // Last commit Mar 15, 2001. 8 commits.
    {"Jacek Stolarczyk", KLazyLocalizedString(), "jacek@mer.chemia.polsl.gliwice.pl", nullptr}, // Last commit Nov 9, 2000. 16 commits.
    {"Roberto S. Teixeira", KLazyLocalizedString(), "maragato@kde.org", nullptr}, // Last commit Oct 23, 2003. 5 commits.
    {"Bo Thorsen", kli18n("Many valuable contributions"), "bo@sonofthor.dk", nullptr}, // Last commit Nov17, 2004. 183 commits.
    {"Ronen Tzur", KLazyLocalizedString(), "rtzur@shani.net", nullptr}, // No commits. 10 patches, last one dated Jan 4, 2002.
    {"Mario Weilguni", KLazyLocalizedString(), "mweilguni@sime.com", nullptr}, // Last commit May 29, 2000. 10 commits.
    {"Wynn Wilkes", KLazyLocalizedString(), "wynnw@calderasystems.com", nullptr}, // One commit, Jan 11, 2002. Also one patch.
    {"Robert D. Williams", KLazyLocalizedString(), "rwilliams@kde.org", nullptr}, // Last commit Jun 2, 2000. 26 commits.
    {"Markus Wübben", kli18n("Killed lots of bugs"), "markus.wuebben@kde.org", nullptr}, // Last commit Jan 16, 1999. 77 commits.
    {"Karl-Heinz Zimmer", kli18n("Major contributor"), "khz@kde.org", nullptr} // Last commit Nov 19, 2004. 203 commits.
};

static const about_data credits[] = {
    {"Sam Abed", kli18n("Smiley-->emoticons processing"), "earlgreykde@pop.netspace.net.au", nullptr}, // KConfigXT porting, smileys->emoticons replacement
    {"Joern Ahrens",
     kli18n("Improve 'Mark Message as' popup menu"),
     "joern.ahrens@kdemail.net",
     nullptr}, // implement wish 77182 (Add some separators to "Mark Message as" popup menu)
    {"Tom Albers", kli18n("Bugzilla maintenance"), "toma@kde.org", nullptr}, // small fixes, bugzilla maintenance
    {"Jaime Torres Amate",
     kli18n("Improved execution speed"),
     "jtamate@gmail.com",
     nullptr}, // improvements in speed of execution. Avoid unnecessary processes.
    {"Albert Cervera Areny",
     kli18n("Optionally compress attachments"),
     "albertca@hotpop.com",
     nullptr}, // implemented wish 88309 (optional compression of attachments)
    {"Jonathan Armond", KLazyLocalizedString(), "jon.armond@gmail.com", nullptr},
    {"Patrick Audley", kli18n("Added spam status to fancy headers"), nullptr, nullptr}, // add optional graphical spam status to fancy headers
    {"Benjamin Azan", kli18n("Implemented todo status handling"), "b.azan@free.fr", nullptr}, // implemented todo status handling
    {"Davide Bettio", kli18n("Bug fixes, code cleanup"), "davide.bettio@kdemail.net", nullptr}, // Bug fixes, code cleanup
    {"Pradeepto Bhattacharya",
     kli18n("LDAP support, maintenance"),
     "pradeepto@kde.org",
     nullptr}, // 294 commits. Lots of "bump version number" commits. LDAP patches
    {"Bruno Bigras", KLazyLocalizedString(), "bigras.bruno@gmail.com", nullptr},
    {"Bertjan Broeksema", kli18n("Major contributor to Akonadi"), "broeksema@kde.org", nullptr}, // 382 commits, mostly on Akonadi
    {"David Bryant", kli18n("Documentation, still active"), "davidbryant@gvtc.com", "https://davidcbryant.net"}, // Last commit August 29, 2021. 35 commits.
    {"Albert Astals Cid",
     kli18n("Substantial contributor, still active"),
     "aacid@kde.org",
     nullptr}, // fix for bug:95441 (folder tree context menu doesn't show shortcuts assigned to the actions) 172 commits
    {"Frederick Emmott", kli18n("Anti-virus support"), "fred87@users.sf.net", nullptr},
    {"Christophe Giboudeaux", kli18n("Major contributor, still active"), "christophe@krop.fr", nullptr}, // 1,021 commits, latest in July, 2021
    {"Sandro Giessl", kli18n("Fixed widget styles"), "sgiessl@gmail.com", nullptr}, // frame width fixes for widget styles
    {"Olivier Goffart", kli18n("Bug fixes"), "ogoffart@kde.org", nullptr}, // Bug fixes, for the most part
    {"Severin Greimel", kli18n("Several patches"), "greimel-kde@fs-pw.uni-muenchen.de", nullptr}, // several patches
    {"Shaheed Haque", kli18n("Bug fixes"), "shaheedhaque@gmail.com", nullptr}, // fix for bug:69744 (Resource folders: "Journals" should be "Journal")
    {"Ingo Heeskens",
     kli18n("Enable external reference loading for a whole folder"),
     "ingo@fivemile.org",
     nullptr}, // implemented wish 34857 (per folder option for loading external references)
    {"Kurt Hindenburg", kli18n("Delete an entire thread"), "kurt.hindenburg@gmail.com", nullptr}, // implemented wish 89003 (delete whole thread)
    {"Heiko Hund", kli18n("POP filters"), "heiko@ist.eigentlich.net", nullptr},
    {"Torsten Kasch", kli18n("Patch Solaris crash"), "tk@genetik.uni-bielefeld.de", nullptr}, // crash fix for Solaris (cf. bug:68801)
    {"Jason 'vanRijn' Kasper",
     kli18n("Choice of fonts for new/unread/important messages"),
     "vr@movingparts.net",
     nullptr}, // implemented wish 79938 (configurable font for new/unread/important messages)
    {"Martijn Klingens",
     kli18n("Fix Quick Search keyboard navigation"),
     "klingens@kde.org",
     nullptr}, // fix keyboard navigation in the Status combo of the quick search
    {"Christoph Klünter",
     kli18n("Fix drag and drop from address book to composer"),
     "chris@inferno.nadir.org",
     nullptr}, // fix for bug:88216 (drag&drop from KAddressBook to the To: field)
    {"Martin Koller", kli18n("Substantial contributor"), "kollix@aon.at", nullptr}, // optional columns in the message list
    {"Tobias König", kli18n("Major contributor"), "tokoe@kde.org", nullptr}, // edit recent addresses, store email<->OpenPGP key association in address book
    {"Nikolai Kosjar", KLazyLocalizedString(), "nikolai.kosjar@qt.io", nullptr},
    {"Francois Kritzinger", kli18n("Improve configuration dialog"), nullptr, nullptr}, // fix bug in configuration dialog
    {"Danny Kukawka", kli18n("Improved message importing"), "danny.kukawka@bisect.de", nullptr}, // DCOP enhancements for better message importing
    {"Roger Larsson", kli18n("Improve status bar messages"), "roger.larsson@norran.net", nullptr}, // add name of checked account to status bar message
    {"Michael Leupold", KLazyLocalizedString(), "lemma@confuego.org", nullptr},
    {"Thiago Macieira", KLazyLocalizedString(), "thiago@kde.org", nullptr},
    {"Andras Mantia", KLazyLocalizedString(), "amantia@kde.org", nullptr},
    {"Jonathan Marten", KLazyLocalizedString(), "jjm@keelhaul.me.uk", nullptr},
    {"Sergio Luis Martins", KLazyLocalizedString(), "iamsergio@gmail.com", nullptr},
    {"Jeffrey McGee", kli18n("Patch for window resizing problem"), "jeffreym@cs.tamu.edu", nullptr}, // fix for bug:64251
    {"Thomas Moenicke", KLazyLocalizedString(), "tm@php-qt.org", nullptr},
    {"Dirk Müller", kli18n("Optimize qt-cast; fix QUrl()"), "mueller@kde.org", nullptr}, // QUrl() fixes and qt_cast optimizations
    {"Torgny Nyblom", kli18n("Substantial contributor"), "nyblom@kde.org", nullptr},
    {"OpenUsability", kli18n("Usability tests and improvements"), "contact@openusability.org", "https://www.openusability.org"},
    {"Mario Teijeiro Otero", KLazyLocalizedString(), "emeteo@escomposlinux.org", nullptr}, // various vendor annotations fixes
    {"Kevin Ottens", KLazyLocalizedString(), "ervin@kde.org", nullptr},
    {"Simon Perreault",
     kli18n("Patch composer configuration"),
     "nomis80@nomis80.org",
     nullptr}, // make the composer remember its "Use Fixed Font" setting (bug 49481)
    {"Jakob Petsovits", KLazyLocalizedString(), "jpetso@gmx.at", nullptr},
    {"Romain Pokrzywka", KLazyLocalizedString(), "romain@kdab.net", nullptr},
    {"Bernhard Reiter", kli18n("Ägypten and Kroupware project management"), "bernhard@intevation.de", nullptr},
    {"Darío Andrés Rodríguez", KLazyLocalizedString(), "andresbajotierra@gmail.com", nullptr},
    {"Edwin Schepers", kli18n("Improved HTML support"), "yez@familieschepers.nl", nullptr}, // composition of HTML messages
    {"Jakob Schröter", kli18n("X-Face support"), "cvsci@camaya.net", nullptr}, // implemented wish 28319 (X-Face support)
    {"Cornelius Schumacher", kli18n("Automated recipient selection"), "schumacher@kde.org", nullptr}, // implemented the new recipients editor and picker
    {"Jan Simonson", kli18n("Beta testing of PGP 6 support"), "jan@simonson.pp.se", nullptr},
    {"Paul Sprakes",
     kli18n("Bug fixes, cleaned up context menus"),
     "kdecvs@sprakes.co.uk",
     nullptr}, // fix for bug:63619 (filter button in toolbar doesn't work), context menu clean up
    {"Jarosław Staniek", kli18n("Port to MS Windows®"), "staniek@kde.org", nullptr}, // MS Windows porting
    {"Will Stephenson", kli18n("IM status indicator"), "wstephenson@kde.org", nullptr}, // added IM status indicator
    {"Hasso Tepper", kli18n("Improve layout of recipients editor"), "hasso@kde.org", nullptr}, // improve layout of recipients editor
    {"Frank Thieme", kli18n("Bug fixes"), "frank@fthieme.net", nullptr}, // patched two bugsin 2009 / 2010 timeframe
    {"Patrick S. Vogt", kli18n("Timestamp for 'Transmission completed' status messages"), "patrick.vogt@unibas.ch", nullptr},
    {"Jan-Oliver Wagner", kli18n("Ägypten and Kroupware project management"), "jan@intevation.de", nullptr},
    {"Wolfgang Westphal", kli18n("Multiple encryption keys per address"), "wolfgang.westphal@gmx.de", nullptr},
    {"Allen Winter", kli18n("Major contributor, still active"), "winter@kde.org", nullptr}, // 2,061 commits as of August, 2021
    {"Urs Wolfer", kli18n("Improved icon/image processing"), "uwolfer@kde.org", nullptr},
    {"Thorsten Zachmann", kli18n("POP filters"), "t.zachmann@zagge.de", nullptr},
    {"Thomas Zander", kli18n("Fixed many IMAP bugs"), "zander@kde.org", nullptr}};

AboutData::AboutData()
    : KAboutData(QStringLiteral("kmail2"),
                 i18n("KMail"),
                 QStringLiteral(KDEPIM_VERSION),
                 i18n("KDE Email Client"),
                 KAboutLicense::GPL,
                 i18n("Copyright © %1, KMail authors", QStringLiteral("2026")),
                 QString(),
                 QStringLiteral("https://apps.kde.org/kmail2/"))
{
    using KMail::authors;
    using KMail::credits;
    const unsigned int numberAuthors(sizeof authors / sizeof *authors);
    for (unsigned int i = 0; i < numberAuthors; ++i) {
        addAuthor(i18n(authors[i].name),
                  authors[i].desc.untranslatedText() ? authors[i].desc.toString() : QString(),
                  QLatin1StringView(authors[i].email),
                  QLatin1StringView(authors[i].web));
    }

    const unsigned int numberCredits(sizeof credits / sizeof *credits);
    for (unsigned int i = 0; i < numberCredits; ++i) {
        addAuthor(i18n(credits[i].name),
                  credits[i].desc.untranslatedText() ? credits[i].desc.toString() : QString(),
                  QLatin1StringView(credits[i].email),
                  QLatin1StringView(credits[i].web));
    }
}

AboutData::~AboutData() = default;
} // namespace KMail
