mailnews/news/src/nsNewsUtils.h
author Mozilla Releng Treescript <release+treescript@mozilla.org>
Tue, 09 Mar 2021 08:38:06 +0000
changeset 41387 74fd064e794d6cd4061eb8dd6d0b86c586cdb51f
parent 38786 06085479b24375af086fd0000cc00b5ce78d1d61
permissions -rw-r--r--
no bug - Bumping Thunderbird l10n changesets r=release a=l10n-bump DONTBUILD be -> f9a17c1712478b7362d16445c695046bae22a79a ca -> b44c810e601be4e0ca43238439f228beddda9c08 de -> 00cbd8bb573513dd37083f78dfc7d0e8a82d26f3 el -> 5d689b611f59bfda8c373903777585f92d27fb9f eu -> 09f1f47e57a53f7ddc17300826c59b2796a31584 fr -> ae19aa2ad3f17d59ea8acc98c64c9340eea9c20a fy-NL -> 6dadbe0aad7102b9a9706c6924553d8ccfb7b11f hu -> 202f4b5a7910d0288479f336428546103b2664eb it -> decc170ffff21a73e281a0be031a114d4a3bf8ee kk -> e8974c64a7fcc096a0281d54183af264e476e7a6 lt -> e286569047c0a676fca3dd9c0e8cef77b0ee1c7a nb-NO -> 0477e68001ab538ee8f777fe7f88b1c13481ab79 pt-BR -> 6f6722e47a05cfa81d7b36dee86e8a14b013caae rm -> fd097840ed70051823bc1f54aefdf10c4f001736 th -> 057f22c124189046cfbf0024dfe7c5b4705c225c

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef NS_NEWSUTILS_H
#define NS_NEWSUTILS_H

#include "nsString.h"
#include "MailNewsTypes2.h"

#define kNewsRootURI "news:/"
#define kNntpRootURI "nntp:/"
#define kNewsMessageRootURI "news-message:/"
#define kNewsURIGroupQuery "?group="
#define kNewsURIKeyQuery "&key="

#define kNewsRootURILen 6
#define kNntpRootURILen 6
#define kNewsMessageRootURILen 14
#define kNewsURIGroupQueryLen 7
#define kNewsURIKeyQueryLen 5

extern nsresult nsParseNewsMessageURI(const char* uri, nsCString& group,
                                      nsMsgKey* key);

extern nsresult nsCreateNewsBaseMessageURI(const char* baseURI,
                                           nsCString& baseMessageURI);

#endif  // NS_NEWSUTILS_H