nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scan without changing folder?


From: Ken Hornstein
Subject: Re: scan without changing folder?
Date: Sat, 24 Apr 2021 19:05:37 -0400

>I have reason to want to do a scan listing of a folder from a cron job.
>
>Since "scan +folder" will switch to that folder, this means that the
>current folder might change whenever my cron job runs.
>
>Is there a way around this?

        env MHCONTEXT=/dev/null scan +foo

(I just tested that and it seems to work for me)

But it does suggest to me that we should have an equivalent to -nochangecur
for folders, like -nochangefolder

--Ken



reply via email to

[Prev in Thread] Current Thread [Next in Thread]