On Fri, 03 Oct 2003 01:06:45 +0200 [EMAIL PROTECTED] wrote: > http://zeitlin.homeunix.com/cgi-bin/mbugs/show_bug.cgi?id=777
> ------- Additional Comments From [EMAIL PROTECTED] 2003-10-03 > 01:06 ------- > isfromme() (for symmetry with the existing istome()) added) func_isfromme() was added to src/modules/Filters.cpp, but similar entries are needed in include/MFilter.h, src/classes/MFilter.cpp, and src/gui/wxFiltersDialog.cpp for the feature to appear in the GUI. I have compiled successfully with the attached patch and "Sent from me" works in the filter dialog. -- Mac :}) ** I usually forward private questions to the appropriate mail list. ** Ask Smarter: http://www.catb.org/~esr/faqs/smart-questions.html Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age.
# Add isfromme() to filter dialog # # To apply this patch: # STEP 1: Chdir to the source directory. # STEP 2: Run the 'applypatch' program with this patch file as input. # # If you do not have 'applypatch', it is part of the 'makepatch' package # that you can fetch from the Comprehensive Perl Archive Network: # http://www.perl.com/CPAN/authors/Johan_Vromans/makepatch-x.y.tar.gz # In the above URL, 'x' should be 2 or higher. # # To apply this patch without the use of 'applypatch': # STEP 1: Chdir to the source directory. # STEP 2: Run the 'patch' program with this file as input. # #### End of Preamble #### #### Patch data follows #### diff -up 'tmp_M/include/MFilter.h' 'mahogany-0.66/include/MFilter.h' Index: ./include/MFilter.h Prereq: 1.19 --- ./include/MFilter.h Mon Sep 22 14:46:59 2003 +++ ./include/MFilter.h Tue Oct 21 08:41:40 2003 @@ -56,6 +56,7 @@ enum MFDialogTest ORC_T_ScoreBelow, // less ORC_T_IsToMe, // the message is addressed to one of my addresses ORC_T_HasFlag, // flag is set for message + ORC_T_IsFromMe, // the message from one of my addresses ORC_T_Max }; diff -up 'tmp_M/src/classes/MFilter.cpp' 'mahogany-0.66/src/classes/MFilter.cpp' Index: ./src/classes/MFilter.cpp Prereq: 1.25 --- ./src/classes/MFilter.cpp Mon Sep 22 14:48:29 2003 +++ ./src/classes/MFilter.cpp Tue Oct 21 08:48:36 2003 @@ -150,6 +150,7 @@ const wxChar * ORC_T_Names[] = _T("score() < "), // ORC_T_ScoreBelow _T("istome()"), // ORC_T_IsToMe _T("hasflag("), // ORC_T_HasFlag + _T("isfromme()"), // ORC_T_IsFromMe NULL }; @@ -185,7 +186,8 @@ static unsigned char ORC_T_Flags[] = #endif ORC_F_NeedsArg, // ORC_T_ScoreBelow 0, // ORC_T_IsToMe - ORC_F_NeedsArg // ORC_T_HasFlag + ORC_F_NeedsArg, // ORC_T_HasFlag + 0 // ORC_T_IsFromMe }; bool FilterTestNeedsArgument(MFDialogTest test) diff -up 'tmp_M/src/gui/wxFiltersDialog.cpp' 'mahogany-0.66/src/gui/wxFiltersDialog.cpp' Index: ./src/gui/wxFiltersDialog.cpp Prereq: 1.113 --- ./src/gui/wxFiltersDialog.cpp Sat Oct 18 15:25:45 2003 +++ ./src/gui/wxFiltersDialog.cpp Tue Oct 21 08:44:05 2003 @@ -152,6 +152,7 @@ wxString ORC_Types[] = gettext_noop("Score above"), // ORC_T_ScoreAbove gettext_noop("Score below"), // ORC_T_ScoreBelow gettext_noop("Sent to me"), // ORC_T_IsToMe + gettext_noop("Sent from me"), // ORC_T_IsFromMe gettext_noop("Flag is Set") // ORC_T_HasFlag }; @@ -180,6 +181,7 @@ MFDialogTest ORC_T_Swap[] = ORC_T_ScoreAbove, ORC_T_ScoreBelow, ORC_T_IsToMe, + ORC_T_IsFromMe, ORC_T_HasFlag }; ENUM_fromSelect(MFDialogTest, ORC_T_Swap, ORC_TypesCountS, ORC_T_Always) #### End of Patch data #### #### ApplyPatch data follows #### # Data version : 1.0 # Date generated : Tue Oct 21 09:14:30 2003 # Generated by : makepatch 2.00_09* # Recurse directories : Yes # Excluded files : (\A|/).*\~\Z # (\A|/).*\.a\Z # (\A|/).*\.bak\Z # (\A|/).*\.BAK\Z # (\A|/).*\.elc\Z # (\A|/).*\.exe\Z # (\A|/).*\.gz\Z # (\A|/).*\.ln\Z # (\A|/).*\.o\Z # (\A|/).*\.obj\Z # (\A|/).*\.olb\Z # (\A|/).*\.old\Z # (\A|/).*\.orig\Z # (\A|/).*\.rej\Z # (\A|/).*\.so\Z # (\A|/).*\.Z\Z # (\A|/)\.del\-.*\Z # (\A|/)\.make\.state\Z # (\A|/)\.nse_depinfo\Z # (\A|/)core\Z # (\A|/)tags\Z # (\A|/)TAGS\Z # (\A|/)\.\#.*\Z # (\A|/)\#.*\Z # (\A|/)_\$.*\Z # (\A|/).*\$\Z # (\A|/)CVS\Z # (\A|/)CVS\.adm\Z # (\A|/)cvslog\..*\Z # (\A|/)\,.*\Z # (\A|/).*\,v\Z # (\A|/)RCS\Z # (\A|/)RCSLOG\Z # (\A|/)p\..*\Z # (\A|/)s\..*\Z # (\A|/)SCCS\Z # p 'include/MFilter.h' 10621 1066750900 0100664 # p 'src/classes/MFilter.cpp' 27087 1066751316 0100664 # p 'src/gui/wxFiltersDialog.cpp' 73627 1066751045 0100664 #### End of ApplyPatch data #### #### End of Patch kit [created: Tue Oct 21 09:14:30 2003] #### #### Patch checksum: 107 4166 2680 #### #### Checksum: 125 4821 57041 ####