summaryrefslogtreecommitdiff
path: root/src/mum
diff options
context:
space:
mode:
Diffstat (limited to 'src/mum')
-rwxr-xr-xsrc/mum7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mum b/src/mum
index cac3abe..22dd6bf 100755
--- a/src/mum
+++ b/src/mum
@@ -182,6 +182,13 @@ h:
load($+{index} || $INDEX);
}
+ # s -- sync and read messages
+ elsif (/^s\Z/x) {
+ chomp($ENV{PASSWORD} = `getpw`) if not $ENV{PASSWORD};
+ system 'm-sync';
+ load($INDEX) if $INDEX;
+ }
+
# range without command
elsif (/^(?&range) \Z $d/x) {
# select last message in range