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. Thomas -- http://www.thomas-guettler.de/
-----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/new > > Yes, 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-----
On 05. feb. 2015 08:59, Steffen Kaiser wrote:> > 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/new >> >> Yes, 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.No need to use the IMAP server directly. Read the manual pages for doveadm(1) and the pages it refers to like doveadm-move(1) and doveadm-flags(1) , check out the \Seen flag. Then sit down with your favourite scripting language, and make some cron-jobs. On principle you do NOT want to manipulate the the dates of the mails, but the user could sort by order received, to get the recently moved mails displayed at the top of the mailbox listing.
> 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.You are right moving the mail should be simple. I ask myself it is possible to store the date of the resubmission in the mail itself. Thomas