1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 #ifndef _nsMsgLocalFolderHdrs_H 7 #define _nsMsgLocalFolderHdrs_H 8 // clang-format off 9 10 /* The Netscape-specific header fields that we use for storing our 11 various bits of state in mail folders. 12 */ 13 #define X_MOZILLA_STATUS "X-Mozilla-Status" 14 #define X_MOZILLA_STATUS_FORMAT X_MOZILLA_STATUS ": %04.4x" 15 #define X_MOZILLA_STATUS_LEN /*1234567890123456*/ 16 16 17 #define X_MOZILLA_STATUS2 "X-Mozilla-Status2" 18 #define X_MOZILLA_STATUS2_FORMAT X_MOZILLA_STATUS2 ": %08.8x" 19 #define X_MOZILLA_STATUS2_LEN /*12345678901234567*/ 17 20 21 #define X_MOZILLA_DRAFT_INFO "X-Mozilla-Draft-Info" 22 #define X_MOZILLA_DRAFT_INFO_LEN /*12345678901234567890*/ 20 23 24 #define X_MOZILLA_NEWSHOST "X-Mozilla-News-Host" 25 #define X_MOZILLA_NEWSHOST_LEN /*1234567890123456789*/ 19 26 27 #define X_UIDL "X-UIDL" 28 #define X_UIDL_LEN /*123456*/ 6 29 30 #define CONTENT_LENGTH "Content-Length" 31 #define CONTENT_LENGTH_LEN /*12345678901234*/ 14 32 33 /* Provide a common means of detecting empty lines in a message. i.e. to detect the end of headers among other things...*/ 34 #define EMPTY_MESSAGE_LINE(buf) (buf[0] == '\r' || buf[0] == '\n' || buf[0] == '\0') 35 36 /* blank filled header to store keyword/tags in the mailbox */ 37 #define X_MOZILLA_KEYWORDS "X-Mozilla-Keys" \ 38 ": " \ 39 MSG_LINEBREAK 40 #define X_MOZILLA_KEYWORDS_LEN (sizeof(X_MOZILLA_KEYWORDS) - 1) 41 42 // clang-format on 43 #endif 44