Hi,
it would be useful for me (and for others tough) to have the rule "copy to IMAP folder" in addition to "move to IMAP folder"
I need to distribute the same email (digitally signed) to multple address... the rule forward breaks the digital sign; move to IMAP folder is ok, but
it can only be used once (for a single mail)
thanks
Copy to imap folder
Re: Copy to imap folder
Not quite so simple... Allthough you can use "move to IMAP folder" in a global rule executed as "administrator", it is actually executed as an "account rule" with the rights of the receiving mail account. It simply cannot see the other accounts.Conzi wrote: ↑2020-01-15 12:33Hi,
it would be useful for me (and for others tough) to have the rule "copy to IMAP folder" in addition to "move to IMAP folder"
I need to distribute the same email (digitally signed) to multple address... the rule forward breaks the digital sign; move to IMAP folder is ok, but
it can only be used once (for a single mail)
thanks
It will require some major rewriting of the Rules engine to do this.
An alternative solution is to enable public folders, create a folder, assign rights to this folder amongst the accounts in question and move the email to that folder.
Go to hMailServer Administrator -> Settings -> Protocols -> IMAP [Public folders]
Click on "Edit folders"
Right click on left pane and select "Create folder"
Type name and click on "Edit permissions"
Add accounts and set permissions.
Default folder name is "#Public" and default folder separator is "." so if you create "MailAShare" you will need to move to IMAP folder "#Public.MailAShare".
SørenR.
Woke is Marxism advancing through Maoist cultural revolution.
Woke is Marxism advancing through Maoist cultural revolution.
Re: Copy to imap folder
SorenR wrote: ↑2020-01-15 14:59Conzi wrote: ↑2020-01-15 12:33
An alternative solution is to enable public folders, create a folder, assign rights to this folder amongst the accounts in question and move the email to that folder.
Go to hMailServer Administrator -> Settings -> Protocols -> IMAP [Public folders]
Click on "Edit folders"
Right click on left pane and select "Create folder"
Type name and click on "Edit permissions"
Add accounts and set permissions.
Default folder name is "#Public" and default folder separator is "." so if you create "MailAShare" you will need to move to IMAP folder "#Public.MailAShare".
I'm already doing this way... but I would have preferred to have one public folder per user
thanks for your time
Re: Copy to imap folder
I don't understand this bit...
Can you please explain that bit in more detail
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation
https://www.hmailserver.com/documentation
Re: Copy to imap folder
with "move to imap folder" i can move the email to only one user (only one public folder, as every user has one)
but often I need to move same email to many user, sometime same email to one user, sometime to two user and so on, with rules.
I cant' user "forward" or distribution list, because breaks digital signature.
The email are downloaded via pop3 from another server, so... for every user I have to download the same emails (and duplicate the rules)
Using "copy to imap folder" repeated for the user I need (with rules) will be perfect (only one download via pop3 then copy to imap folder rules...)
Re: Copy to imap folder
Not sure how good your scripting skills are and I have no idea if this breaks digital sign but it is something I have played with as part of some code to deliver email with illegal attachments to "Postmaster" before hMailServer actually remove the attachment(s) and deliver to account... Just in case of false-positives
Code: Select all
Function CloneMail(oMessage, strRecipient, strAddress, strHeader)
'
' CloneMail(oMessage, "Wile E. Coyote", "wile.e.coyote@acme.inc", "X-hMailServer-Cloned")
'
Dim strFilename
If oMessage.HeaderValue(strHeader) = "YES" Then Exit Function
With CreateObject("hMailServer.Message")
strFilename = .Filename
With CreateObject("Scripting.FileSystemObject")
.CopyFile oMessage.Filename, strFilename, True
End With
.RefreshContent
.AddRecipient strRecipient, strAddress
.HeaderValue(strHeader) = "YES"
.Save
End With
End Function
SørenR.
Woke is Marxism advancing through Maoist cultural revolution.
Woke is Marxism advancing through Maoist cultural revolution.
Re: Copy to imap folder
Can't multiple accounts access the same #public.folder
Just 'cause I link to a page and say little else doesn't mean I am not being nice.
https://www.hmailserver.com/documentation
https://www.hmailserver.com/documentation