Changeset f73e519
- Timestamp:
- Jul 9, 2002, 12:52:08 AM (22 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- ae9e6be
- Parents:
- 1770f30
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
re1c4636 rf73e519 49 49 The '~' character in logpath and classlogpath now gets 50 50 replaced with the user's home directory. 51 Added simple implementation of smartnarrow-to-admin that 52 creates a "type-admin" autofilter. 53 This was done mostly so that M-C-n and M-C-p do something 54 sane on admin messages. 51 55 52 56 1.2.1-pre-1 -
functions.c
r10b866d rf73e519 1767 1767 } 1768 1768 1769 char *owl_function_fasttypefilt(char *type) { 1770 owl_filter *f; 1771 char *argbuff, *filtname; 1772 1773 /* name for the filter */ 1774 filtname=owl_sprintf("type-%s", type); 1775 1776 /* if it already exists then go with it. This lets users override */ 1777 if (owl_global_get_filter(&g, filtname)) { 1778 return filtname; 1779 } 1780 1781 /* create the new-internal filter */ 1782 f=owl_malloc(sizeof(owl_filter)); 1783 1784 argbuff = owl_sprintf("type ^%s$", type); 1785 1786 owl_filter_init_fromstring(f, filtname, argbuff); 1787 1788 /* add it to the global list */ 1789 owl_global_add_filter(&g, f); 1790 1791 /* free stuff */ 1792 owl_free(argbuff); 1793 1794 return filtname; 1795 } 1796 1769 1797 /* If flag is 1, marks for deletion. If flag is 0, 1770 1798 * unmarks for deletion. */ … … 1812 1840 } 1813 1841 1814 /* for now we skip admin messages.*/1842 /* very simple handling of admin messages for now */ 1815 1843 if (owl_message_is_admin(m)) { 1816 owl_function_makemsg("Narrowing on an admin message has not been implemented yet. Check back soon."); 1817 return NULL; 1844 return owl_function_fasttypefilt("admin"); 1818 1845 } 1819 1846
Note: See TracChangeset
for help on using the changeset viewer.