Page 1 of 1

FetchAccount Object

Posted: 2009-01-19 05:22
by gingercat
I'm writing a script to add new accounts and also external accounts for fetching. Everything is working fine.

Is there a property to enable "Delete Messages Immediately"? or Are messages deleted immediately by setting the DaysToKeepMessages to 0?

Re: FetchAccount Object

Posted: 2009-01-19 11:00
by martin
What do you think "User contributedd scripts" mean? :) Did you contribute with a script in your post?

Delete immediately: DaysToKeepMessages=-1
Never delete: DaysToKeepMessages=0

Re: FetchAccount Object

Posted: 2010-05-06 09:43
by cappie
martin wrote:What do you think "User contributedd scripts" mean? :) Did you contribute with a script in your post?

Delete immediately: DaysToKeepMessages=-1
Never delete: DaysToKeepMessages=0
Sorry to dig up a post like this, but I'm left with a few questions after reading the documentation of the COM API:

Is the above information about the behavior still valid? If so, then why isn't it covered in the API documentation, or did I just overlook it somehow?

Re: FetchAccount Object

Posted: 2010-05-06 09:49
by mattg
http://www.hmailserver.com/documentatio ... tchaccount

Yes I think that the above post is still accurate, I don't believe that this has changed

Re: FetchAccount Object

Posted: 2016-09-29 12:42
by sven117
Helpe me people!!!!
I need someone example script to add FetchAccount.
really need with parametrs "delete messages immediately"
I haven't seen that in COM API

Re: FetchAccount Object

Posted: 2016-09-29 13:58
by mattg
Exactly (STILL after 7 years) the same as Martin posted in 2009.
https://www.hmailserver.com/documentati ... tchaccount
martin wrote:Delete immediately: DaysToKeepMessages=-1
Never delete: DaysToKeepMessages=0

Re: FetchAccount Object

Posted: 2016-09-29 14:13
by jimimaseye
mattg wrote:Exactly (STILL after 7 years) the same as Martin posted in 2009.
https://www.hmailserver.com/documentati ... tchaccount
martin wrote:Delete immediately: DaysToKeepMessages=-1
Never delete: DaysToKeepMessages=0
@MAtt

Could you update the documentation reflecting this? (It doesnt say anything about the -1 and 0 options and what they mean - it just says it exists and its a 'long' type).

Re: FetchAccount Object

Posted: 2016-09-29 14:47
by mattg
And done