cancel
Showing results for 
Search instead for 
Did you mean: 

inbound email to admin accessable folder

lessrandom
Champ in-the-making
Champ in-the-making
hello

i want emails to a site stored in a folder that is writeable to admins and readable to others.

the problem is, when the from-address corresponds to a registered user, his credentials will be taken, and if he is not admin there is an error.

to pin it down my problem is the rule 1 from
http://wiki.alfresco.com/wiki/Inbound_SMTP_Email_Server_Configuration#Groups_and_Permissions

rule 1:     If a matching user is found then the current user is the matching alfresco user.
rule 2:    If a matching user is not found, then the current user is set to the "unknownUser" specified by the email.inbound.unknownUser property.

if the from email is not registers everything workd ok, because i map email.inbound.unknownUse to admin

is there an easy way to overrule rule 1 ?
or to store all mails to site X in a Folder Mails, where the users can only read it?

kind regards

lessrandom
2 REPLIES 2

lessrandom
Champ in-the-making
Champ in-the-making
so far i tried to write a script to set permissions tulebased. i.e. when a file is added the permissions are changed

unfortunately this does nor work for ownership. i.e. creator can still delete or update the doc


document.setInheritsPermissions(false);
document.removePermission('Contributor');
document.removePermission('Collaborator');
document.removePermission('Editor');
document.setPermission('Consumer','NQZ_APH');
document.setPermission('Consumer','NQZ_KS');
document.setPermission('Consumer','NQZ_ZE');
document.setPermission("Read", "GROUP_EVERYONE");
document.setPermission("Delete", "Admin");
document.setPermission("Delete", "GROUP_ALFRESCO_ADMINISTRATORS");
var theowner = document.parent.getOwner();
document.setOwner(theowner);
document.addTag('permission5');
logger.log('set permissions5');


document.setOwner(theowner); cannot be executed as easyly

any ideas anyone

i also tried

http://forums.alfresco.com/forum/developer-discussions/alfresco-explorer-development/how-revoke-perm...

<code>
// Prevent public access to a document
// document.removePermission("Read");
document.removePermission("Write");
document.removePermission("Delete");
document.setInheritsPermissions(false);
document.setOwner("admin");
<code>

but this also will not work