Hi Hans,

On Fri, 22 Jul 2022, hbezemer-at-kliksafe.nl |s-nail| wrote:

I want to delete all mail which is older then one year. This can be done with the '(before date)' search expression as described in the manpage. To automate this process, I would like to use the shell date(1) command to get the date one year ago. How can I import the outcome of command into mailx? I get the right string with: date --date='last year' +%d-%b-%Y So I'm looking for something like: ?move '(before <outputfromdatecommand>)' +Trash

If you call s-nail with

s-nail -S yearold=`date --date='last year' +%d-%b-%Y`

the variable yearold within s-nail will contain the date string.

Hope that's useful.

Stephen Isard

Reply via email to