Hi, 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. How can this be done with Dovecot/IMAP? I have programming experience, but I am new to Dovecot/IMAP. I would like solve this with Dovecot only (without a database or web server). Does the IMAP protocol over methods which could help? [1] 43Folder https://en.wikipedia.org/wiki/Tickler_file -- http://www.thomas-guettler.de/
Hi, Sounds to me like it can be implemented using sieve. Something like "if is in inbox & is read & is older than n days; then mark as unread". But this means you need to redeliever this mail somehow. Maybe like this: http://serverfault.com/questions/418681/run-sieve-on-maildir (http://serverfault.com/questions/418681/run-sieve-on-maildir) Regards Andr? Am Mi., Febr. 4, 2015 07:02 schrieb Thomas G?ttler : Hi, 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. How can this be done with Dovecot/IMAP? I have programming experience, but I am new to Dovecot/IMAP. I would like solve this with Dovecot only (without a database or web server). Does the IMAP protocol over methods which could help? [1] 43Folder https://en.wikipedia.org/wiki/Tickler_file (https://en.wikipedia.org/wiki/Tickler_file) -- http://www.thomas-guettler.de/ (http://www.thomas-guettler.de/)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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: find /path/to/folder -mtime +$days -print0 | \ xargs -r0 mv -t /path/to/INBOX/new In my experience you can keep all attributes, keywords etc.pp. on the filename. Depending on how you read your messages, your target directory could be "cur" instead of "new".> How can this be done with Dovecot/IMAP? > > I have programming experience, but I am new to Dovecot/IMAP.So, with Maildir and the normal Unix commands (or a script language), that should be easy.> I would like solve this with Dovecot only (without a database or web server).If you use another storage or some other tagging scheme, see doveadm . With that command you can search for messages and move them, please search the list for examples.> Does the IMAP protocol over methods which could help?Hm, you could use the meta data plugin or even keywords (aka labels), in order to store the "tags" per message, but I would use normal folders. - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEVAwUBVNHBB3z1H7kL/d9rAQK86gf6AjQ5WRCXtjlAq4IQRU7EqE3eC8pS2wH2 aoryBcRvaClg3L4vt2RTMtgfglVGAJM9F8pK6+t8d9TyCZ0DbAEEE7kjf6tdD4G+ GTaXLmruZ1V7hyipipeAxUmiX6l2adfPUshJDrEE1xTd/XgtsCi2yXqge9ugxgIo qH5HuXjVIp5X1IIc33yQXTvqrnyspdD4LVBpSgwG5WRUFdhiROCGxjJ6iTyCLdts PB0XJaGHq5a8r1FfVTyd31zKQqebhTUCpn/gre3cABHvkBh7H3PQvXeI92QwLa4w r5jnCyq5MO/dfwHdUn2SPJlpYaLcHhL2oFw0csXzDe3ZeMFYECnl3A==1JaM -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 4 Feb 2015, Steffen Kaiser wrote:> 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: > > find /path/to/folder -mtime +$days -print0 | \ > xargs -r0 mv -t /path/to/INBOX/new > > In my experience you can keep all attributes, keywords etc.pp. on the > filename. Depending on how you read your messages, your target directory > could be "cur" instead of "new". > >> How can this be done with Dovecot/IMAP? >> >> I have programming experience, but I am new to Dovecot/IMAP. > > So, with Maildir and the normal Unix commands (or a script language), that > should be easy. > >> I would like solve this with Dovecot only (without a database or web >> server). > > If you use another storage or some other tagging scheme, see doveadm . > With that command you can search for messages and move them, please search > the list for examples. > >> Does the IMAP protocol over methods which could help? > > Hm, you could use the meta data plugin or even keywords (aka labels), in > order to store the "tags" per message, but I would use normal folders.I've read the wiki page more closely, if you really store the messages "to be filed according to the future date on which each document needs action", say "to-do.2015-02-28", you can use doveadm mailbox to get the mailbox names and doveadm move to move the messages to the INBOX, probably delete empty mailboxes. (Note: the German useage of "mailbox" is different than in English, it's a false friend.) - -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEVAwUBVNHHZnz1H7kL/d9rAQI/OAf9EzXkj67AbCwHpHZ2RTxghikHa0YCNRAX eT5ew/R1cjhjCrt3YFJl4P05j9FBVbwkvodgVWPNl/pP2eDse54hIuT0K+mXsiE3 21h1nLQFANXM5QBAyHFbAlq8juZi1OAeZ/EOfqb5cpkVEziHAsz33ovW9V3KzyYA hYDIwfjLHZfWEwHTlg6in7YxxsAZsirs75kYGENzNWckR/rVd4AonOQS7/O4/zny Bvo//GNB+DrSqpEggzr2BJxKK/R1T91wBhKhOlU8KYvaNNwoA7X4O8YveBXR0qvP aDqeP87xCrBqKBgdbg+eLadCgfgA7qK9IeNCmAzH1JqcpGPhy2+BMg==9HJX -----END PGP SIGNATURE-----
Is there an extension to allow Sieve to reprocess messages? Normally, Sieve is executed as new messages arrive. Once the message is filed or rejected, Sieve is done and won't get called again on the same message. Now, you could have some other external script that checked periodically for the attributes. Or you could just have your client mark it unread. Sent from my iPad> On Feb 3, 2015, at 10:26 PM, "Andr? Peters" <andre.peters at debinux.de> wrote: > > Hi, > Sounds to me like it can be implemented using sieve. > Something like "if is in inbox & is read & is older than n days; then mark as unread". > But this means you need to redeliever this mail somehow. Maybe like this: http://serverfault.com/questions/418681/run-sieve-on-maildir (http://serverfault.com/questions/418681/run-sieve-on-maildir) > Regards > > Andr? > Am Mi., Febr. 4, 2015 07:02 schrieb Thomas G?ttler : > Hi, > > 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. > > How can this be done with Dovecot/IMAP? > > I have programming experience, but I am new to Dovecot/IMAP. > > I would like solve this with Dovecot only (without a database or web server). > > Does the IMAP protocol over methods which could help? > > [1] 43Folder https://en.wikipedia.org/wiki/Tickler_file (https://en.wikipedia.org/wiki/Tickler_file) > > -- > http://www.thomas-guettler.de/ (http://www.thomas-guettler.de/)
On 03 Feb 2015, at 23:49 , Steffen Kaiser <skdovecot at smail.inf.fh-brs.de> wrote:> What mail storage are you using? With Maildir all messages are plain files, you could move those messages into a specific folder and do: > > find /path/to/folder -mtime +$days -print0 | \ > xargs -r0 mv -t /path/to/INBOX/newThat?s simple enough, and would work. You could do something like what SaneBox does and create custom named folders like @nextWeek @tomorrow @nextMonth and so on. Honestly, it seems almost straight forward. There must be something I?m missing. -- 'I knew the two of you would get along like a house on fire.' Screams, flames, people running for safety...
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/
On Wednesday 04 February 2015 07:01:14 Thomas G?ttler wrote:> Hi, > > > 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. > > How can this be done with Dovecot/IMAP? > > I have programming experience, but I am new to Dovecot/IMAP. > > I would like solve this with Dovecot only (without a database or web > server). > > Does the IMAP protocol over methods which could help? > > > [1] 43Folder https://en.wikipedia.org/wiki/Tickler_file-- Mihai B?dici http://mihai.badici.ro Why don't you use a calendar application to put an event related to that mail? You can use the kolab approach ( IMAP only) for this.
On 04. feb. 2015 07:01, Thomas G?ttler wrote:> Hi, > > > 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. > > How can this be done with Dovecot/IMAP? > > I have programming experience, but I am new to Dovecot/IMAP. > > I would like solve this with Dovecot only (without a database or web server). > > Does the IMAP protocol over methods which could help? > > > [1] 43Folder https://en.wikipedia.org/wiki/Tickler_file > >I would abandon this tack. Inspiration for a different angle: When I right-click a mail in the Icedove (Thunderbird) I am offered to convert the mail into an event or a task. A possible work flow would be to have a single "postponed" folder (also known as mailbox) , and move stuff into there while at the same time converting them to tasks/events. This functionality has been fragile in the past, in that certain contents in the mail would render the event/task invalid. Combination of bugs in the conversion from regular email and the reading of calendar info in my case (davical networked calendar). I think that any effort on your part would be better spent testing and polishing a solution involving some kind of calendar backend.