[imapfilter-devel]Macro facility needed?

Per Westerlund perw at gbg.dimension.se
Thu Dec 19 17:36:01 EET 2002


Problem:

	We sort incoming messages in a common mailbox to a set of folders:

		Day/backup
		Day/spam
		Day/mail errors
		.
		.

	We want to move old messages to an archive a while before we delete them:

		Day/backup		->	Old/backup
		Day/spam		->	Old/spam
		Day/mail errors	->	Old/mail errors
		.
		.

We can group mailboxes to an alias using the 'folder' command. We can use a
common filter to select messages older than a certain number of days. Using
'job' we can associate the filter with the alias. There is unfortunately
only possible to have an explicit recipient mailbox with the 'action move'
command. This forces us to use one alias for every mailbox, one
filter/action for every mailbox, and one job statement for every mailbox.

Is it possible to get the result I want with some minor modification of the
language?

/Per Westerlund

P.S. In the short term, I will probably write a Perl-script that generates
the configuration file dynamically. D.S.




More information about the Imapfilter-devel mailing list