lotus怎么清理邮件啊

好久没上 2005-04-20 08:22:46
我现在接到个任务,就是对系统内所有帐号2004/3/31之前的邮件进行清理(我会出公告告诉系统用户这件事),谁能告诉我怎么清理吗?我觉得这也算是个典型问题吧
...全文
257 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
eino 2005-04-27
  • 打赏
  • 举报
回复
删除之后记得要压缩数据库
否则硬盘空间不释放
好久没上 2005-04-26
  • 打赏
  • 举报
回复
。。。
whang1980 2005-04-24
  • 打赏
  • 举报
回复
关注
our307 2005-04-24
  • 打赏
  • 举报
回复
时间限制很简单啊,用的search就可以把某一时间中的文档选中,然后在删除,这些要看具体应用了.
tcmcq 2005-04-22
  • 打赏
  • 举报
回复
选择文档的时候。我觉得应该设计一个规则文档。在代理运行的时候,从规则文档读取日期等信息。
好久没上 2005-04-22
  • 打赏
  • 举报
回复
要限日期之前的删除的话,在哪里修改
好久没上 2005-04-21
  • 打赏
  • 举报
回复
有没高手啊
our307 2005-04-21
  • 打赏
  • 举报
回复
把这个代理放到管理员的邮件库中,执行就可以删除所有人的所有邮件,如果需要的话拟还可以在修改细致些,这个的能力过于强大了.

Sub Initialize
Dim session As New notesSession
Dim curdb As notesDatabase
Dim db As notesDatabase
Dim doc As notesDocument
Dim view As NotesView
Dim ndir As notesdbdirectory
Dim collection As NotesDocumentCollection

Msgbox "start"
Set curdb = session.CurrentDatabase
servername = curdb.Server
curDbPath =curdb.filepath
curDbName =curdb.filename
m = Instr(1,curDbPath,curDbName)
curDbpath =Left(curDbPath,m-1)
curDbPath =servername+"!!"+curDbPath
Set ndir =New notesdbdirectory(servername)

Set db = ndir.GetFirstDatabase( DATABASE )
i=0
While Not(db Is Nothing)
DbPath=db.filepath
DbName=db.filename
n = Instr(1,DbPath,DbName)

DbPath=Left(DbPath,n-1)
'Msgbox "curDbPath is ----"+curDbPath
'Msgbox "DbPath is ----"+DbPath

If curDbPath=DbPath Then

Call db.open("","")
'Set view=db.getView("($All)")

'Set doc =view.getfirstdocument
'While Not(doc Is Nothing)
' Call doc.Remove( True )
' Set doc=getnextDocument
'Wend
Set collection = db.AllDocuments
Call collection.removeAll(True)
i=i+1
End If

Set db=ndir.getnextdatabase
Wend




Print "<p align='center'>所有用户邮件已被清空。</font></p>"


End Sub
pengl 2005-04-21
  • 打赏
  • 举报
回复
在邮箱模板里写程序,当用户打开邮箱或关闭时,执行此程序.

这个一定可以,因为我们就用此方法强行删邮件的.
chenmengliang 2005-04-20
  • 打赏
  • 举报
回复
用管理员身份写一个代理,用于删除2004/3/31之前的邮件,把这个代理放到邮箱模板中,刷新用户邮箱设计,让每个用户执行一下这个代理
cnhxjtoa 2005-04-20
  • 打赏
  • 举报
回复
只能通过用户自己删除邮件
当然也可以通过程序
如果通过程序删除那你只有通过更换邮件的模板,写代理或操作按钮,距离服务器一年的时间的邮件全部删除.
因为管理员也是没有办法访问一般用户的邮件的,所以只能更换邮件数据库的模板.
好久没上 2005-04-20
  • 打赏
  • 举报
回复
哦,程序复杂不复杂
freyild1979 2005-04-20
  • 打赏
  • 举报
回复
对邮件管理不是很熟,好像没有直接清理的方法,
写个程序,遍历所有用户的邮箱数据库,搜索该日期以前的文档,然后删除。
好久没上 2005-04-20
  • 打赏
  • 举报
回复
步骤很清楚了,问题是我不会写代理啊,谁能出个方案给我啊
Duplicate Email Remover (Add-In for Microsoft Outlook 2000/XP/2003): README ============================================ Please read this file carefully (especially "Installation" chapter) before installing the program to your computer. Contents -------- Program information Company information Description Installation Copyright and license Technical support Program information ------------------- Program Archive Name: duplicate_remover.zip Program Name: Duplicate Email Remover Program Version: 2.7 Program Release Date: September 16, 2004 Program Description: Microsoft Outlook Add-In is intended for searching and processing of duplicated messages. Target OS: Windows 95, Windows 98, Windows NT 4.0, Windows 2000, Windows XP, Windows 2003 Server Software type: Shareware Company information ------------------- Company Name: MAPILab Ltd. Contact WWW URL: http://www.mapilab.com/ Contact Postal Address: Pacific Business Centre P.O. Box 34069 #381 Seattle, WA 98124-1069 USA Description ----------- This Add-In is intended for search and processing of duplicated mail messages and posts in Microsoft Outlook folders. Installation ------------ Important! If you've got Duplicate Email Remover not from our web page, but from the other source (magazine CD or some software library), please visit our home page - you'll probably find the later version; usually, we release the updates about once a month. To install Duplicate Email Remover, just run the "setup.exe" and follow the instructions. You'll need to select the target directory and the components to install. Notes for Microsoft Windows 95/98 users. If you have installed Windows Installer version 1.x, the following error message will appear during installation: error 1155: file \\INSTMSIA.EXE not found To avoid it, you should download and install Windows Installer version 2.0 or later. It can be downloaded from Microsoft web-site: - version for Windows NT 4 and Windows 2000 http://download.microsoft.com/download/WindowsInstaller/Install/2.0/NT45/EN-US/InstMsiW.exe - for Windows 95, 98, and Me http://download.microsoft.com/download/WindowsInstaller/Install/2.0/W9XMe/EN-US/InstMsiA.exe Copyright and license --------------------- See "license.rtf" file. Technical support ----------------- Our technical support service is always glad to help you and to answer any your questions. Please, keep to the following rules when contacting the technical support service: - If your query is related to erratic software operation, please provide the following information: - Version number of the software product you are using. We also recommend you to visit our web-site: probably, the problem you encountered has been already solved in a new program release available from our site. - Configuration you are using Microsoft Outlook in: as "Internet Mail" or together with Microsoft Exchange, Lotus Domino, etc. - Version number of Microsoft Outlook and of Microsoft Office and Outlook update packages installed (to find out this information, click Info/About item in the Outlook menu) - Version number of Windows and update packages installed (you can find out this information through properties of the "My Computer" item on the desktop or the "System" item in the Control Panel). - Please try to provide as much information as possible so that our experts could repeat your error in the lab. - Don't forget to provide the product registration number: this will allow faster processing of your request. You can contact the technical support service online at http://www.mapilab.com/support/. We do our best to reply to user queries in the same day we receive them; anyway, you will get the answer no later than in three business days.
网管教程 从入门到精通软件篇 ★一。★详细的xp修复控制台命令和用法!!! 放入xp(2000)的光盘,安装时候选R,修复! Windows XP(包括 Windows 2000)的控制台命令是在系统出现一些意外情况下的一种非常有效的诊断和测试以及恢复系统功能的工具。小编的确一直都想把这方面的命令做个总结,这次辛苦老范给我们整理了这份实用的秘笈。   Bootcfg   bootcfg 命令启动配置和故障恢复(对于大多数计算机,即 boot.ini 文件)。   含有下列参数的 bootcfg 命令仅在使用故障恢复控制台时才可用。可在命令提示符下使用带有不同参数的 bootcfg 命令。   用法:   bootcfg /default  设置默认引导项。   bootcfg /add    向引导列表中添加 Windows 安装。   bootcfg /rebuild  重复全部 Windows 安装过程并允许用户选择要添加的内容。   注意:使用 bootcfg /rebuild 之前,应先通过 bootcfg /copy 命令备份 boot.ini 文件。   bootcfg /scan    扫描用于 Windows 安装的所有磁盘并显示结果。   注意:这些结果被静态存储,并用于本次会话。如果在本次会话期间磁盘配置发生变化,为获得更新的扫描,必须先重新启动计算机,然后再次扫描磁盘。   bootcfg /list   列出引导列表中已有的条目。   bootcfg /disableredirect 在启动引导程序中禁用重定向。   bootcfg /redirect [ PortBaudRrate] |[ useBiosSettings]   在启动引导程序中通过指定配置启用重定向。   范例: bootcfg /redirect com1 115200 bootcfg /redirect useBiosSettings   hkdsk   创建并显示磁盘的状态报告。Chkdsk 命令还可列出并纠正磁盘上的错误。   含有下列参数的 chkdsk 命令仅在使用故障恢复控制台时才可用。可在命令提示符下使用带有不同参数的 chkdsk 命令。   vol [drive:] [ chkdsk [drive:] [/p] [/r]   参数  无   如果不带任何参数,chkdsk 将显示当前驱动器中的磁盘状态。 drive: 指定要 chkdsk 检查的驱动器。 /p   即使驱动器不在 chkdsk 的检查范围内,也执行彻底检查。该参数不对驱动器做任何更改。 /r   找到坏扇区并恢复可读取的信息。隐含着 /p 参数。   注意 Chkdsk 命令需要 Autochk.exe 文件。如果不能在启动目录(默认为 %systemroot%System32)中找到该文件,将试着在 Windows 安装 CD 中找到它。如果有多引导系统的计算机,必须保证是在包含 Windows 的驱动器上使用该命令。 Diskpart   创建和删除硬盘驱动器上的分区。diskpart 命令仅在使用故障恢复控制台时才可用。   diskpart [ /add |/delete] [device_name |drive_name |partition_name] [size]   参数 无   如果不带任何参数,diskpart 命令将启动 diskpart 的 Windows 字符模式版本。   /add   创建新的分区。   /delete   删除现有分区。   device_name   要创建或删除分区的设备。设备名称可从 map 命令的输出获得。例如,设备名称:   DeviceHardDisk0   drive_name   以驱动器号表示的待删除分区。仅与 /delete 同时使用。以下是驱动器名称的范例:   D:   partition_name   以分区名称表示的待删除分区。可代替 drive_name 使用。仅与 /delete 同时使用。以下是分区名称的范例:   DeviceHardDisk0Partition1    大小   要创建的分区大小,以兆字节 (MB)表示。仅与 /add 同时使用。   范例   下例将删除分区: diskpart /delete Device HardDisk0 Partition3 diskpart /delete F:   下例将在硬盘上添加一个 20 MB 的分区:   diskpart /add Device HardDisk0 20   Fixboot

535

社区成员

发帖
与我相关
我的任务
社区描述
企业开发 Exchange Server
社区管理员
  • 消息协作社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧