Re: [MlMt] Rules to archive mail? (How to trigger rule-processing?)

2014-02-23 Thread Benny Kjær Nielsen

On 21 Feb 2014, at 18:34, Ingo Lantschner wrote:

I created a Smart Mailbox with the condition of not within the last 90 
days and Mailboxes Any *Ingo Lantschner* (different from the Archive 
Mailbox!). This Smart Mailbox was filled immediately after creation 
with the expected messages. Then I added a rule to that Smart Mailbox 
with a similar condition and an action of moving to an other mailbox.


Nothing happens. Mailbox — Apply Rules moved the messages from 
*Ingo Lantschner* to *Archive*. But they are still visible in the 
Smart Mailbox.


Any idea whey they are still visible?


Are you sure the mailbox is not also based on the mailbox you are moving 
messages to?



Is there a way to move the messages lets say once a day,


No, I don't think so.


or if I open MailMate?


Hmm, I hadn't really given this much thought. Messages matching a smart 
mailbox based on a date condition are not going to be triggered if the 
date is reached while MailMate is closed. That might not be easily 
solved without changing rules to be applied (if conditions match) to all 
messages on startup. I'll give it some thought, but I think the solution 
is also a solution to another problem (having to create a separate smart 
mailbox for certain types of conditions/rules).



--
Benny
___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] Rules to archive mail? (How to trigger rule-processing?)

2014-02-21 Thread Ingo Lantschner

On 14 Feb 2014, at 17:09, Benny Kjær Nielsen wrote:

And that’s what I did. The latest test release should have working 
date based smart mailboxes (if my changes work as expected). I’ve 
also expanded the condition options to include hours and even minutes 
(seconds seemed to be taking it too far). This also fixes some other 
date-related bugs, e.g., if any mailboxes were based on a mailbox 
using date-conditions.
Important note: This only works with rules if you create a separate 
smart mailbox matching the messages you want to move (the rule of this 
mailbox is then just the move-action). Since you move the messages 
then this mailbox is always going to be empty, but this is how it 
works now. 


Hi Benny,
thanks for the update! The moving works, if I select all Messages in the 
Smart Mailbox and click on Mailbox — Apply Rules. But the Smart 
Mailbox still shows all of the messages - strange ?!


This is what I did:

I created a Smart Mailbox with the condition of not within the last 90 
days and Mailboxes Any *Ingo Lantschner* (different from the Archive 
Mailbox!). This Smart Mailbox was filled immediately after creation with 
the expected messages. Then I added a rule to that Smart Mailbox with a 
similar condition and an action of moving to an other mailbox.


Nothing happens. Mailbox — Apply Rules moved the messages from *Ingo 
Lantschner* to *Archive*. But they are still visible in the Smart 
Mailbox.


Any idea whey they are still visible?

Is there a way to move the messages lets say once a day, or if I open 
MailMate?


Kind regards, Ingo

--
Ingo Lantschner
___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] Rules to archive mail? (How to trigger rule-processing?)

2014-02-21 Thread Eric Steele

On 21 Feb 2014, at 12:34, Ingo Lantschner wrote:


On 14 Feb 2014, at 17:09, Benny Kjær Nielsen wrote:

And that’s what I did. The latest test release should have working 
date based smart mailboxes (if my changes work as expected). I’ve 
also expanded the condition options to include hours and even minutes 
(seconds seemed to be taking it too far). This also fixes some other 
date-related bugs, e.g., if any mailboxes were based on a mailbox 
using date-conditions.
Important note: This only works with rules if you create a separate 
smart mailbox matching the messages you want to move (the rule of 
this mailbox is then just the move-action). Since you move the 
messages then this mailbox is always going to be empty, but this is 
how it works now. 


Hi Benny,
thanks for the update! The moving works, if I select all Messages in 
the Smart Mailbox and click on Mailbox — Apply Rules. But the Smart 
Mailbox still shows all of the messages - strange ?!


This is what I did:

I created a Smart Mailbox with the condition of not within the last 90 
days and Mailboxes Any *Ingo Lantschner* (different from the Archive 
Mailbox!). This Smart Mailbox was filled immediately after creation 
with the expected messages. Then I added a rule to that Smart Mailbox 
with a similar condition and an action of moving to an other mailbox.


Nothing happens. Mailbox — Apply Rules moved the messages from 
*Ingo Lantschner* to *Archive*. But they are still visible in the 
Smart Mailbox.


Any idea whey they are still visible?

Is there a way to move the messages lets say once a day, or if I open 
MailMate?


Kind regards, Ingo

--
Ingo Lantschner


Ingo,

From my fiddling with things, I believe the rules fire only when the 
messages arrive in the mailbox. So by creating the smart mailbox 
criteria first, the messages were already in there when the rule was 
created and it didn't consider them to be new. I wound up having to 
fiddle with the criteria, changing it briefly to exclude all of the 
messages. When I changed back the rule fired and archived all of the 
messages that'd reappeared in the smart mailbox.


Benny, thanks so much for this feature. I was able to create a rule that 
automatically archives New Relic alert emails when the corresponding 
alert-ended email arrived. It made my day.


Eric___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] Rules to archive mail? (How to trigger rule-processing?)

2014-02-14 Thread Benny Kjær Nielsen

On 13 Feb 2014, at 11:19, Benny Kjær Nielsen wrote:


On 12 Feb 2014, at 11:55, Ingo Lantschner wrote:

I just created a rule, that mails whose date is not within the last 
120 days should be moved to an other servers mailbox (a local 
IMAP-server). But nothing happend - even after restarting MailMate.


When/how are rules triggerd?


Rules with date-based conditions only work for messages becoming a 
part of a mailbox for a different reason (initial arrival, mailbox 
move, tag change, ...). It currently does not work in cases like what 
you describe here.


There is no workaround I believe (other than me improving how date 
conditions are handled).


And that's what I did. The latest test release should have working date 
based smart mailboxes (if my changes work as expected). I've also 
expanded the condition options to include hours and even minutes 
(seconds seemed to be taking it too far). This also fixes some other 
date-related bugs, e.g., if any mailboxes were based on a mailbox using 
date-conditions.


Important note: This only works with rules if you create a separate 
smart mailbox matching the messages you want to move (the rule of this 
mailbox is then just the move-action). Since you move the messages then 
this mailbox is always going to be empty, but this is how it works now. 
It'll require a special event type to make it work without the separate 
mailbox. That might be useful for other purposes as well, but it's not 
yet implemented.


And no, I have not yet implemented “today”, “yesterday”, “this 
week”, etc.


--
Benny
___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] Rules to archive mail? (How to trigger rule-processing?)

2014-02-13 Thread Benny Kjær Nielsen

On 12 Feb 2014, at 11:55, Ingo Lantschner wrote:

I just created a rule, that mails whose date is not within the last 
120 days should be moved to an other servers mailbox (a local 
IMAP-server). But nothing happend - even after restarting MailMate.


When/how are rules triggerd?


Rules with date-based conditions only work for messages becoming a part 
of a mailbox for a different reason (initial arrival, mailbox move, tag 
change, ...). It currently does not work in cases like what you describe 
here.


There is no workaround I believe (other than me improving how date 
conditions are handled).


--
Benny
___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] Rules to archive mail? (How to trigger rule-processing?)

2014-02-13 Thread Mike Brasch

On 13 Feb 2014, at 11:19, Benny Kjær Nielsen wrote:

Rules with date-based conditions only work for messages becoming a 
part of a mailbox for a different reason (initial arrival, mailbox 
move, tag change, ...). It currently does not work in cases like what 
you describe here.


There is no workaround I believe (other than me improving how date 
conditions are handled).


Feature Request: a button or menu entry to enforce rules. I often wished 
such a feature after creating a rule.


--
Gruß
Mike
___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate


Re: [MlMt] Rules to archive mail? (How to trigger rule-processing?)

2014-02-13 Thread Benny Kjær Nielsen

On 13 Feb 2014, at 11:25, Mike Brasch wrote:

Feature Request: a button or menu entry to enforce rules. I often 
wished such a feature after creating a rule.


It's been on the todo for a while. I would have liked to be able to 
easily apply a specific mailbox rule, but for now I've added a 
“Mailbox ▸ Apply Rules” (⌥⌘L) menu item which applies the 
rules of the currently selected mailbox to the currently selected 
messages. There is also a `applyRules:` for users wanting a different 
shortcut.


(This could also be used as a manual workaround for re-applying date 
related rules which are currently not triggered automatically.)


A test version is not out yet.

--
Benny
___
mailmate mailing list
mailmate@lists.freron.com
http://lists.freron.com/listinfo/mailmate