-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 4 Feb 2015, Thomas Güttler wrote:
Am 04.02.2015 um 07:49 schrieb Steffen Kaiser:
On Wed, 4 Feb 2015, Thomas Güttler wrote:
I would like to implement a 43Folder system[1] with dovecot and a mail user agent.
Use case:
- I have a new mail in my inbox. I read it and see that I can't handle it now. I want to handle this mail in 5 days.
- Now I want to have some sort of resubmission: the mail should be moved to a different location for these 5 days.
- After 5 days the mail should be moved to my inbox again.
What mail storage are you using? With Maildir all messages are plain files, you could move those messages into a specific folder and do:
Yes, I use Maildir
find /path/to/folder -mtime +$days -print0 |
xargs -r0 mv -t /path/to/INBOX/newYes, this should work. But a solution which uses IMAP would be preferred.
What specific action shall be done via IMAP? The move? Then use any IMAP client library, use the LIST command to get the mailboxes, FETCH to get the messages and COPY/EXPUNGE to move them.
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVNMi3Hz1H7kL/d9rAQJj5Af+PEi7dDRcn8aVIB4QRhOLsT0X6IQscMQq 6iftyMNTpjLCNrPg+ED291CtCJ27C/FG7lXsr1TgiCt2IXxkDewlaj9SEk8bX4Pe 6WE6I6ABmsolr/zh5YMfcuDWaojCOZ4o45xI2ljECGaKbqQAi0EPR8YaKhk7zNp/ rby8MM3zhKWq3FG716nm1rZF4ZdewlpAVL2V+SK+IvM1F/mz3LQknwdoxtMCpmHI lIGWqikDaGYcmkbqdtOiF7A7++OKkahX0OMLtl3NUqD010pHebNQXXfefAdpC3zl 7dTGhs/GLLGKt5hMsGeai/1HhQz/vGLD8cEVvBg0g4qJ4XVq0xyczw== =hQHz -----END PGP SIGNATURE-----