"Labels" (MAIL:label) will be used instead of the currently misused "Status" (MAIL:status) to allow categorization of emails by the user. These labels are only used on the locally download emails; there's no syncing with a mail server. (See also forum thread "Introducing a new indexed attribute META:tag" at https://discuss.haiku-os.org/t/introducing-a-new-indexed-attribute-meta-tag.) * Remove custom statuses from "Close and…" submenu and anything else concerning custom statuses. * Add a "Set label" menu with a submenu to - Remove the current mail's label, if it has one - Add a new label - Choose from a list of labels (first 9 items with ALT+n shortcut) - Open the labels folder in Tracker to manage labels (delete/rename/etc.) * Labels are saved as separate files in ~/config/settings/Mail/labels/ * Label files are queries for all files which have that particular label in their MAIL:label attribute. This is convenient when managing your label, e.g. see if there are any emails with a certain label before deleting it. * Added "Same label" to the "Queries" menu. * In MenusBeginning() the files in ~/config/settings/Mail/labels/ are read and shown with their file name as menu item. * When an email is opened, its label file is created if it doesn't exist already. That way the Mail app can provide labels that were not created with it, but e.g. by manually filling the attribute in Tracker, or via a script etc. * Related: When populating the labels menu, make sure each label query has the correct formula. A user may have created a label by hand or duplicated an existing formula, in which case the query formula would be missing or wrong. Setting a label currently isn't supported when composing an email, as we cannot set an attribute, because an email file isn't created until it's sent. Change-Id: I53fb4613ec1d2d96493169e0310c11c5ba0131c2 Reviewed-on: https://review.haiku-os.org/c/haiku/+/10384 Tested-by: Commit checker robot <[email protected]> Reviewed-by: humdinger humdinger <[email protected]>
143 lines
3.0 KiB
C
143 lines
3.0 KiB
C
/*
|
|
Open Tracker License
|
|
|
|
Terms and Conditions
|
|
|
|
Copyright (c) 1991-2001, Be Incorporated. All rights reserved.
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
this software and associated documentation files (the "Software"), to deal in
|
|
the Software without restriction, including without limitation the rights to
|
|
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
of the Software, and to permit persons to whom the Software is furnished to do
|
|
so, subject to the following conditions:
|
|
|
|
The above copyright notice and this permission notice applies to all licensees
|
|
and shall be included in all copies or substantial portions of the Software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF TITLE, MERCHANTABILITY,
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
BE INCORPORATED BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
|
|
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION
|
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
Except as contained in this notice, the name of Be Incorporated shall not be
|
|
used in advertising or otherwise to promote the sale, use or other dealings in
|
|
this Software without prior written authorization from Be Incorporated.
|
|
|
|
BeMail(TM), Tracker(TM), Be(R), BeOS(R), and BeIA(TM) are trademarks or registered trademarks
|
|
of Be Incorporated in the United States and other countries. Other brand product
|
|
names are registered trademarks or trademarks of their respective holders.
|
|
All rights reserved.
|
|
*/
|
|
#ifndef _MESSAGES_H
|
|
#define _MESSAGES_H
|
|
|
|
|
|
// as defined by the People app
|
|
#define M_LAUNCH_PEOPLE 'newp'
|
|
|
|
enum MESSAGES {
|
|
REFS_RECEIVED = 64,
|
|
LIST_INVOKED,
|
|
WINDOW_CLOSED,
|
|
CHANGE_FONT,
|
|
RESET_BUTTONS,
|
|
PREFS_CHANGED,
|
|
CHARSET_CHOICE_MADE
|
|
};
|
|
|
|
enum TEXT {
|
|
SUBJECT_FIELD = REFS_RECEIVED + 64,
|
|
TO_FIELD,
|
|
ENCLOSE_FIELD,
|
|
CC_FIELD,
|
|
BCC_FIELD,
|
|
NAME_FIELD
|
|
};
|
|
|
|
enum MENUS {
|
|
// app
|
|
M_NEW = SUBJECT_FIELD + 64,
|
|
M_PREFS,
|
|
M_EDIT_SIGNATURE,
|
|
M_FONT,
|
|
M_STYLE,
|
|
M_SIZE,
|
|
M_BEGINNER,
|
|
M_EXPERT,
|
|
|
|
// file
|
|
M_REPLY,
|
|
M_REPLY_TO_SENDER,
|
|
M_REPLY_ALL,
|
|
M_FORWARD,
|
|
M_FORWARD_WITHOUT_ATTACHMENTS,
|
|
M_RESEND,
|
|
M_COPY_TO_NEW,
|
|
M_HEADER,
|
|
M_RAW,
|
|
M_SEND_NOW,
|
|
M_SAVE_AS_DRAFT,
|
|
M_SAVE,
|
|
M_PRINT_SETUP,
|
|
M_PRINT,
|
|
M_DELETE,
|
|
M_DELETE_PREV,
|
|
M_DELETE_NEXT,
|
|
M_CLOSE_READ,
|
|
M_CLOSE_SAVED,
|
|
M_MANAGE_LABELS,
|
|
M_NEW_LABEL,
|
|
M_REMOVE_LABEL,
|
|
M_SET_LABEL,
|
|
M_READ_POS,
|
|
|
|
// edit
|
|
M_SELECT,
|
|
M_ADD_QUOTE_LEVEL,
|
|
M_SUB_QUOTE_LEVEL,
|
|
M_CHECK_SPELLING,
|
|
M_SIGNATURE,
|
|
M_RANDOM_SIG,
|
|
M_SIG_MENU,
|
|
M_FIND,
|
|
M_FIND_AGAIN,
|
|
M_ACCOUNTS,
|
|
|
|
// queries
|
|
M_EDIT_QUERIES,
|
|
M_EXECUTE_QUERY,
|
|
M_QUERY_RECIPIENT,
|
|
M_QUERY_SENDER,
|
|
M_QUERY_SUBJECT,
|
|
M_QUERY_LABEL,
|
|
|
|
// encls
|
|
M_ADD,
|
|
M_REMOVE,
|
|
M_OPEN,
|
|
M_COPY,
|
|
|
|
// nav
|
|
M_READ,
|
|
M_UNREAD,
|
|
M_NEXTMSG,
|
|
M_PREVMSG,
|
|
M_SAVE_POSITION,
|
|
|
|
// Spam GUI button and menu items. Order is important.
|
|
M_SPAM_BUTTON,
|
|
M_TRAIN_SPAM_AND_DELETE,
|
|
M_TRAIN_SPAM,
|
|
M_UNTRAIN,
|
|
M_TRAIN_GENUINE,
|
|
|
|
M_REDO
|
|
};
|
|
|
|
|
|
#endif // _MESSAGES_H
|
|
|