nmh-workers
[Top] [All Lists]

scan without changing folder?

2021-04-24 17:49:57
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?

The only workaround I've thought of (and I'm not sure it will work) is
to create a dummy user, with its own .mhprofile, its own Path:, and
its own context file, and a symlink to the real folder I want to scan.

Seems messy.  :-)

Any simpler/better ways?

paul
=----------------------
 paul fox, pgf@foxharp.boston.ma.us (arlington, ma, where it's 62.6 degrees)


<Prev in Thread] Current Thread [Next in Thread>