-2

As the titles says.

Unfortunately I'm a complete beginner with LotusScript so I have no idea myself.

However we have had for a while no max email attachment size policy in place.. and this has caused us to have lots of people sending 100mb+ files to each other via email.. sometimes multiple times.

I'm wondering if a script is possible that will search all .nsf files in the mail directory for attachments larger than {X} MB. So we can have a report to look through and deal with these files.

Thanks for any help.

Bidaum92
  • 31
  • 6
  • 1
    Just a related note: If there's a lot of email attachments, your company is using Notes/Domino 8.5 or newer with fix packs, and hasn't yet enabled DAOS, then they really should enable DAOS in the near future. It can save a lot of server disk space. – Scott Leis Feb 04 '16 at 03:14
  • Yeah we're looking at implementing DAOS as we speak :) – Bidaum92 Feb 04 '16 at 09:40

2 Answers2

1

Yes, it's definitely possible.

You need to learn about the NotesSession class and its GetDbDirectory method, the NotesDbDirectory class and it GetFirstDatabase and GetNextDatabase methods, the NotesDatabase class and its AllDocuments method, the NotesDocumentCollection class and its GetFirstDocument and GetNextDocument methods, and the NotesDocument class. From there you'd ideally want to learn how to deal with attachments, but that's not actually a trival topic. A shortcut approach would be to just look at the NotesDocument.Size property, and use that information instead of actually looking at the attachments.

Richard Schwartz
  • 14,463
  • 2
  • 23
  • 41
0

I have a LS agent like this if you want BUT, depends in which country you are living, it could be forbidden to inspect the mail box files in this manner (privacy issues)