Changeset df7018f for perlwrap.pm
- Timestamp:
- May 30, 2009, 7:29:16 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- e04b7a1
- Parents:
- 6223638
- git-author:
- Alex Dehnert <adehnert@mit.edu> (05/28/09 00:15:48)
- git-committer:
- Alex Dehnert <adehnert@mit.edu> (05/30/09 19:29:16)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
perlwrap.pm
r6223638 rdf7018f 393 393 # Override if you want a context (instance, network, etc.) on personals 394 394 sub personal_context { return ""; } 395 # extra short version, for use where space is especially tight 396 # (eg, the oneline style) 397 sub short_personal_context { return ""; } 395 398 396 399 sub delete { … … 626 629 my ($m) = @_; 627 630 return $m->context_reply_cmd(); 631 } 632 633 sub short_personal_context { 634 my ($m) = @_; 635 if(lc($m->class) eq 'message') 636 { 637 if(lc($m->instance) eq 'personal') 638 { 639 return ''; 640 } else { 641 return $m->instance; 642 } 643 } else { 644 return $m->class; 645 } 628 646 } 629 647 … … 1168 1186 my $line; 1169 1187 if ($m->is_personal) { 1188 1189 # Figure out what to show in the subcontext column 1170 1190 $line= sprintf(BASE_FORMAT, 1171 1191 $dirsym, 1172 1192 $m->type, 1173 '',1193 maybe($m->short_personal_context), 1174 1194 ($dir eq 'out' 1175 1195 ? $m->pretty_recipient
Note: See TracChangeset
for help on using the changeset viewer.