diff options
author | John Ankarström <john@ankarstrom.se> | 2021-05-26 01:35:00 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-05-26 01:35:15 +0200 |
commit | e0b52520b57cbcf6454ea35e97c99003d5596508 (patch) | |
tree | f2a276856afed304808e4ccf96e744018b1fe926 /src/m-sync | |
parent | ca98b2ba8799b40ca0fe5b38b34c817a0215b119 (diff) | |
download | mum-e0b52520b57cbcf6454ea35e97c99003d5596508.tar.gz |
Add 'm-sync' and 'getpw' scripts
m-sync is a wrapper around m-pop that filters headers with m-filter.
Diffstat (limited to 'src/m-sync')
-rwxr-xr-x | src/m-sync | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/m-sync b/src/m-sync new file mode 100755 index 0000000..d4653d8 --- /dev/null +++ b/src/m-sync @@ -0,0 +1,14 @@ +#!/bin/sh + +# m-sync -- retrieve mail + +# Edit this script to your own preferences. + +USERNAME=john@ankarstrom.se +PASSWORD=`./getpw` +export USERNAME PASSWORD + +mkfifo mbox.i.in +m-filter < mbox.i.in >> mbox.i & +m-pop -m mbox -i mbox.i -j mbox.i.in +rm mbox.i.in |