FetchAccount Object

This section contains scripts that hMailServer has contributed with. hMailServer 4 is needed to use these.
Post Reply
gingercat
Normal user
Normal user
Posts: 34
Joined: 2008-02-12 23:59

FetchAccount Object

Post by gingercat » 2009-01-19 05:22

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?

User avatar
martin
Developer
Developer
Posts: 6834
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Re: FetchAccount Object

Post by martin » 2009-01-19 11:00

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

cappie
New user
New user
Posts: 7
Joined: 2010-05-04 11:49

Re: FetchAccount Object

Post by cappie » 2010-05-06 09:43

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?

User avatar
mattg
Moderator
Moderator
Posts: 20549
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: FetchAccount Object

Post by mattg » 2010-05-06 09:49

http://www.hmailserver.com/documentatio ... tchaccount

Yes I think that the above post is still accurate, I don't believe that this has changed
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

sven117
New user
New user
Posts: 1
Joined: 2016-09-29 12:33

Re: FetchAccount Object

Post by sven117 » 2016-09-29 12:42

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

User avatar
mattg
Moderator
Moderator
Posts: 20549
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: FetchAccount Object

Post by mattg » 2016-09-29 13:58

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
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

User avatar
jimimaseye
Moderator
Moderator
Posts: 8308
Joined: 2011-09-08 17:48

Re: FetchAccount Object

Post by jimimaseye » 2016-09-29 14:13

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).
5.7 on test.
SpamassassinForWindows 3.4.0 spamd service
AV: Clamwin + Clamd service + sanesecurity defs : https://www.hmailserver.com/forum/viewtopic.php?f=21&t=26829

User avatar
mattg
Moderator
Moderator
Posts: 20549
Joined: 2007-06-14 05:12
Location: 'The Outback' Australia

Re: FetchAccount Object

Post by mattg » 2016-09-29 14:47

And done
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation

Post Reply