Changeset 7869e48 for examples/owlconf.simple
- Timestamp:
- Jan 12, 2013, 1:43:13 PM (12 years ago)
- Children:
- e3a0d71, 4485285
- Parents:
- 4626016
- git-author:
- Jason Gross <jgross@mit.edu> (01/12/13 13:13:18)
- git-committer:
- Jason Gross <jgross@mit.edu> (01/12/13 13:43:13)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/owlconf.simple
rd7cc50b r7869e48 1 ### The owlconf config file -*- perl -*- 1 ### The owlconf config file -*- perl -*- 2 2 3 3 ### !!!!!WARNING!!!!! !!!!!WARNING!!!!! !!!!!WARNING!!!!! !!!!!WARNING!!!!! 4 ### This is an example file intended to demonstrate how to use 4 ### This is an example file intended to demonstrate how to use 5 5 ### various features of owl. Some of the key bindings, in particular, 6 6 ### are more for examples than things you may actually want to use. … … 36 36 ### $owl::sender, $owl::opcode, $owl::zsig, 37 37 ### $owl::msg, $owl::time, $owl::host, @owl::fields, $owl::id 38 ### 38 ### 39 39 40 40 # NOTE: Lines beginning with a "#" are perl comments. … … 49 49 ## Doing "help" will show you more about each variable. 50 50 ## These lines will set things to the default. 51 ## You can uncomment them and then change the value to get 51 ## You can uncomment them and then change the value to get 52 52 ## a different behavior (remove the "#" to an alternate value). 53 53 ################################################################ … … 60 60 61 61 ## Set this to on to enable logging of personal zephyrs 62 # owl::command('set -q logging off'); 62 # owl::command('set -q logging off'); 63 63 64 64 ## This directory must exist and is where personal zephyrs are logged. … … 67 67 68 68 ## Set this to on to enable logging of classes 69 # owl::command('set -q classlogging off'); 69 # owl::command('set -q classlogging off'); 70 70 71 71 ## This directory must exist and is where class zephyrs are logged. … … 105 105 ################################################################ 106 106 ## The following create filters. Filters can be used to select 107 ## on multiple zephyrs for operations. With 'views' you can 107 ## on multiple zephyrs for operations. With 'views' you can 108 108 ## look at only the zephyrs matching a particular filter. 109 109 ## Use the 'view <filtername>' command or the 'v' key to switch views. … … 114 114 ## The filter command creates a filter with the specified name, 115 115 ## or if one already exists it is replaced. Example filter 116 ## syntax would be: 116 ## syntax would be: 117 117 ## 118 118 ## filter myfilter -c red ( class ^foobar$ ) or ( class ^quux$ and instance ^bar$ ) … … 123 123 ## is used it specifies the color that messages matching this filter 124 124 ## should be displayed in. Do 'show colors' to see the available colors. 125 ## 125 ## 126 126 ################################################################ 127 127 … … 137 137 ## The 'trash' filter is used when you press 'T' to mark things 138 138 ## for autodeletion. 139 # owl::command('filter trash class ^mail$ or opcode ^ping$ or type ^admin$ or class ^login$'); 139 # owl::command('filter trash class ^mail$ or opcode ^ping$ or type ^admin$ or class ^login$'); 140 140 141 141 } … … 188 188 ## Note that: 189 189 ## $out .= "foo"; appends "foo" to the end of the variable $out. 190 ## lc(bar) will convert bar to lowercase. 190 ## lc(bar) will convert bar to lowercase. 191 191 ## "ne" does "not equal" for string comparison. 192 192 ## sprintf fills in the %s's with the arguments later on the line. … … 213 213 # Incoming messages 214 214 215 $out .= sprintf "[mit,%s,%s] / %s / %s", lc($owl::class), 215 $out .= sprintf "[mit,%s,%s] / %s / %s", lc($owl::class), 216 216 lc($owl::instance), $owl::time, lc($owl::host); 217 217 if ($owl::opcode ne "") {$out.=" op:$owl::opcode";} … … 228 228 } 229 229 } 230 $out.="\n"; 230 $out.="\n"; 231 231 232 232 # This indents the body of the message and then appends it on. … … 251 251 ## In most cases you won't need anything here. 252 252 sub owl::receive_msg() { 253 253 254 254 ## If this is uncommented, it would mark all messages 255 255 ## with opcode "PING" for immediate deletion:
Note: See TracChangeset
for help on using the changeset viewer.