diff options
-rwxr-xr-x | src/m-sync | 2 | ||||
-rwxr-xr-x | src/mum | 7 |
2 files changed, 8 insertions, 1 deletions
@@ -5,7 +5,7 @@ # Edit this script to your own preferences. USERNAME=john@ankarstrom.se -PASSWORD=`getpw` +[ -z "$PASSWORD" ] && PASSWORD=`getpw` export USERNAME PASSWORD mkfifo mbox.i.fifo @@ -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 |