diff options
Diffstat (limited to 'git-fetch-email.sh')
-rw-r--r-- | git-fetch-email.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/git-fetch-email.sh b/git-fetch-email.sh index 6109091..485f19d 100644 --- a/git-fetch-email.sh +++ b/git-fetch-email.sh @@ -16,6 +16,7 @@ set -u +idle= apply= verbose= host=$(git config fetchemail.imapServer) @@ -39,6 +40,7 @@ S,subject= fetch patches with matching Subject headers T,to= fetch patches with matching To headers a,apply apply patches with git-am h,host=! connect to IMAP on host +i,idle wait for matching patches m,mailbox=! fetch patches from mailbox p,port=! connect to IMAP on port u,user=! log in to IMAP as user @@ -57,6 +59,7 @@ while [ $# -gt 0 ]; do (-T) to=$1; shift;; (-a) apply=yes;; (-h) host=$1; shift;; + (-i) idle=yes;; (-m) mailbox=$1; shift;; (-p) port=$1; shift;; (-u) user=$1; shift;; @@ -64,6 +67,7 @@ while [ $# -gt 0 ]; do (--no-apply) apply=;; (--no-cc) cc=;; (--no-from) from=;; + (--no-idle) idle=;; (--no-move-to) move=;; (--no-subject) subject=;; (--no-to) to=;; @@ -92,7 +96,7 @@ fi fetch() { echo "${pass}" | imbox -w \ - ${verbose:+-v} \ + ${verbose:+-v} ${idle:+-i} \ ${host:+-h "${host}"} \ ${port:+-p "${port}"} \ ${mailbox:+-m "${mailbox}"} \ |