Отправляет email-рассылки с помощью сервиса Sendsay

Бюллетень "Lotus Notes CodeStore"

  Все выпуски  

LO53546: ADMIN CLIENT CRASHES WITH NNOTESWS.CSELECTIONMANAGER::ISCOMMANDENABLED


Рассылку ведет: Программист на Lotus NotesLotus CoderВыпуск No 376 от 2010-08-18
рассылка о программировании на Lotus Notes/Domino
Обсуждения на форумах, блогах. Примеры программного кода на LotusScript,@formula, Java

рассылка:выпускархивлентаблогсайт

Бюллетень "Lotus Notes CodeStore" Выпуск 13 от 21.04.2008

comp.soft.prog.lotuscodesrore

CodeStore. Примеры кодов

I've created a LotusScript agent and view action button that reports spam to an email address similarly to how you would do it manually (View | Source... and Forward... ) You may use this however you want (GPL and/or Apache v2, see below) but please share your changes. Some improvements can be made (see todo in comment header), but it works well enough with 3rd party spam filters I've used. --- Copyright 2005 Ryan Benech
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License --- ======= BEGIN CODE ======= (select text below this line) Sub Initialize
'Notes Agent: name=ReportAsSpam, trigger=onEvent, Action menu selection, target=All selected docs
'forwards the selected message(s) with full header to a spam reporting email address
'moves message from inbox to junk mail and appends "[Spam]" to the subject line
'requires: Function walkmime (mime As notesmimeentity) As String
'to-do: prevent reporting of whitelisted messages, prevent report of local domain addresses
'created 12/10/2005 by Ryan Benech Const SPAMREPORTADDRESS = "spam@domain.com" 'the email address used to report spam, uncomment to go live
'Const SPAMREPORTADDRESS = "YourFullyQualified/NotesNameGoesHere" 'uncomment this line to debug messages Dim sess As New NotesSession
Dim ws As New NotesUIWorkspace Dim db As NotesDatabase
Dim memo As NotesDocument, doc As NotesDocument
Dim col As NotesDocumentCollection
Dim mime As NotesMIMEEntity
Dim rtitem As NotesItem
Dim temp As Variant 'to get info from non-ASCII data
Dim i As Integer 'to count messages Dim uiview As NotesUIView 'to update the inbox after messages have been moved
Dim mail As NotesRichTextItem 'the sent message
Dim item As NotesItem 'to process fields with multiple items (i.e. recieved) sess.ConvertMime = False 'init mime conversion
Set db = sess.CurrentDatabase
Set col = db.UnprocessedDocuments
Set doc = col.GetFirstDocument()
If doc Is Nothing Then Exit Sub 'sanity check to abort early Print "Reporting " + Cstr( col.Count ) + " selected documents as Spam to " + SPAMREPORTADDRESS + ". Please wait..."
i = 1 While Not(doc Is Nothing)
Set memo = db.CreateDocument
Set mail = New NotesRichTextItem( memo, "Body" ) Set mime = doc.GetMIMEEntity
If Not(mime Is Nothing) Then
Forall header In mime.HeaderObjects
Call mail.AppendText( walkmime ( mime ) ) 'calls required function walkmime
End Forall
Call doc.CloseMIMEEntities 'allow clean switch to using items memo.subject = doc.subject(0)
Call memo.Send( False, SPAMREPORTADDRESS) 'forward spam report message Print "Successfully reported message " Cstr(i) + " of " + Cstr( col.Count ) +" ("+ doc.Subject(0) + ")"
Else
Print "No MIME content found in message, not sending spam report. (the internet message may have been converted to Notes Format) " End If If Instr( doc.Subject(0), "[SPAM]" ) = 0 Then
Call doc.ReplaceItemValue("Subject", "[SPAM] " + doc.Subject(0) ) 'remove [spam]
End If Call doc.Save(True,True)
Call doc.PutInFolder( "($JunkMail)" ) 'swap ($JunkMail) for ($Inbox) to perform a "not spam" action
Call doc.RemoveFromFolder( "($Inbox)" ) 'vice versa for this line... :-) Call sess.UpdateProcessedDoc( doc )
Set doc = col.GetNextDocument(doc)
i = i +1 'increment counter
Wend Set uiview = ws.CurrentView
Call uiview.DeselectAll 'to prevent UI bugs
sess.ConvertMime = True 'revert mime conversion
Beep
Print "Done reporting " + Cstr( col.Count ) + " document(s) as Spam."
End Sub Function walkmime (mime As notesmimeentity) As String
'returns string of complete mime message
'created: 12/10/05 by Ryan Benech
'closely based on code contributed by Kim Dowds from Lotus Sanbox: "SpamAssassin for Notes" Dim mime2 As notesmimeentity 'for walking mime tree
walkmime = "" 'init string While Not (mime Is Nothing)
walkmime = walkmime & Chr(10) _
& mime.Headers & Chr(10) _
& mime.ContentAsText Set mime2 = mime.GetFirstChildEntity 'get first child: If mime2 Is Nothing Then 'none? then get next sibling
Set mime2 = mime.GetNextSibling
End If If mime2 Is Nothing Then 'none? then get aunt/uncle : Set mime2 = mime.GetParentEntity
If Not (mime2 Is Nothing) Then
Set mime2 = mime2.GetNextSibling
End If
End If Set mime = mime2
Wend
End Function ======= END CODE ======= (select text above this line)
Еще примеры:
Больше кодов на сайтах:

Форумы.Свежи темы и обсуждения

Добрый день! Такая проблема - на машине (Windows Server 2003) стоял клиент 6.5 Rus, Снес его, потом решил поставить заново, все инсталлится, но при запуске появляется окно и сразу тухнет...Пошел смотреть notes.ini - оказывается он вообще отстутствует, так же как и файл names.nsf....Прочитал, что это возможно, если на компе, в частности в C:/WINDOWS, хранятся другие notes.ini....Все почистил, удалил все инишные файлы, деисталлировал клиент, удалил всю папку lotus, ставлю заново - та же ерунда, ни notes.ini, ни names.nsf нету. Что это может быть?
привет всем, задача такая: что бы все пользователи могли через веб интерфейс могли зайти и проверять документы
веб интерфейс хочу реализовать на ASP.NET. использую лотусовые СОМ объекты
но что бы до database добраться, надо lotussession иниалицизировать.
А ID-шка ни у всех )))
а можно ли как нить без инициализаций достучаться до БД ???
Интересные темы:
Список форумов:

Tips. Советы

Victor Toal finally found something capable of crashing his Notes client on Linux. The problem is, now he can't figure out how to keep it from crashing. If you have suggestions, Victor would like to hear from you.

Read | Permalink


WANT THE TOP LOTUS EXPERTS BY YOUR SIDE WITHOUT PAYING HEFTY CONSULTING FEES? LOOK NO FURTHER.
Like having a team of consultants by your side -- ones who have all the answers and never make mistakes -- THE VIEW gives you immediate access to field-tested instruction, guidance, and best practices from the brightest Lotus professionals around.

See the new instruction, advice, and best practices added to THE VIEW this week.

Gavin Bollard has a Domino cluster. For some reason users are connecting to the "wrong" servers. Gavin has posted some more information and hopes you can explain why this is happening.

Read | Permalink
Keith Brooks will be presenting a session on DDM at MWLUG and he'd like a few more "real life" examples of the wonderfully vague warnings you might have gotten from your systems.

Read | Permalink
Chris Miller has posted information on two upcoming webcasts. On August 18 Kathy Brown will be offering "Going Beyond Deploy and Pray" and on August 25, Tom Duff and Marie Scott cover "Sametime: A Users Perspective". Registration is required.

Read | Permalink


NEW! LEARN NOTES AND DOMINO 8 AT YOUR PLACE AND PACE!
Try a free course at www.tlcc.com/dompower8

Paul Mooney says Bluewave, in Dublin, is looking for an Notes developer. If you have two or more years experience, and can work in Ireland, contact him.

Read | Permalink
The Lotus Technical & Education Team has created a simplified interface, for the Lotus and WebSphere wikis, to use with web-enabled mobile devices. The team would like you to try the new Mobile Wiki and let them know how you like it.

Read | Permalink
Chris Toohey is working on a new mashup and would like to add a few more participants to his sample database so he can write an article.

Read | Permalink

For about 10 years now I've used (and recommended friends use) Pipex broadband. Over that time I've had only a handful of problems and always been happy. So happy that for the last couple of years I've been paying over the odds (50 pounds a month) for "business broadband" (20:1 contention).

Despite knowingly paying too much, I'm still happy, as, when it comes to my internet connection, it's a definite case of "If it ain't broke, don't fix it". You can't put a price on reliability when it comes to something as essential your internet connection.

I had a nasty reminder of how much I rely on that internet connection this weekend.

Pipex have been bought out by TalkTalk and are now known as Opal. Despite lots of emails reassuring me nothing would change I found myself without internet on Sunday afternoon. After trying all the logical things I called their 24hr tech-support number to find out my account was "on hold" for "billing reasons", but I couldn't find out why or do anything about it until 9am the next day.

Roll on Monday morning and I call Opal to find out that, unlike Pipex, they don't accept recurring card payments. Just Direct Debits. So my account hadn't been paid for two months and they'd gone on to disconnected me. When I asked "At what point were you going to tell me about this change in payment policy before you go and cut me off?!" the weary, but polite, phone-bod told me their "credit control" department claimed to have told all customers of this. Although he told me he sided with the hundreds of annoyed customers he'd since dealt with.

Anyway, I then paid up to date and had my account re-opened within the hour.

So, dear TalkTalk, if you're going to take over companies here are a couple of tips on how to keep their existing customers:

  • Even if you did send an email (I'm sure you didn't!) this is something that should have been explained in a letter in the post!
  • If you are going to disconnect me, please do it when your offices are open. Better still send me some advance notification. I am paying for business broadband. That should tell you something about how important the connection is to me.
  • If you realise you've made a mistake and disconnected lots of customers without any warning, why not reconnect them all, explain what happened and then contact them like you should have done in the first place.

TalkTalk/Opal are now on their first written warning from me. If there's any whiff of an issue in the near future then I'm off elsewhere!

I can no longer recommend "Pipex". Can anybody in the UK recommend the most reliable broadband provider? Not bothered about price or speed. I just want reliability.

Click here to post a response

Еще советы:
Смотри советы на сайтах:

Блоги. Что обсуждают и пишут

Author: Michael Tassati
Tags: lotus university school license
Idea:
Students are the next generation for IT customers. Experiences of education will be first step of careers in companies and future innovations. Training with IBM Lotus Notes, iNotes, Quickr, Connections and Sametime will be a multiplier for use of this products.
All IBM Lotus Software products should have a license model for free use in education companies for teachers and students.

Author: Michael Tassati
Tags: license entry lotus connections
Idea:
there should be a license model of IBM Lotus Notes/Domino includes components Activies and Profiles - like Sametime Entry or Quickr Entry

Author: David Schiffer
Tags: xpage view full-text sort
Idea:
In XPages you can easily filter views by using an ftsearch.
Sadly after searching the result is not longer sorted (it sorted by notes-relevance, but nobody knows what that means).
 
Make this result sortable if the view columns are sortable, like in the notes client, where I can click the option "remain sorted" ...
 
Please!

Author: David Schiffer
Tags: domino java servlet
Idea:
Please give Domino an up-to-date servlet engine, so we could do really cool things like embedding liferay or ...
No I do not want websphere.
 
Domino has already an servlet engine but it is very very very old - so why not an update?
David

Author: Foua Vang
Tags: lotusphere
Idea:
After reading these posts and the blog post from one of the top innovators...I just wonder...but no matter what, for me I have gained knowledge in both admin and dev from the ideas and comments that are found and shared here...so I do find value in participating...
 
http://www.wiseman.la/web/cpwblog.nsf/dx/ideajam-rocks-buy-it.-now-why-im-not-a-top-contributor-anymore.

http://ideajam.net/IdeaJam/P/ij.nsf/0/931DF482E0814A0A86257591005DE5B4?OpenDocument

http://ideajam.net/IdeaJam/P/ij.nsf/0/1984FD88E2D42C5586257537003AA51F?OpenDocument#votinganc

However, the reason I started to post ideas, comments, and participate in this Idea Jam was because I thought that this was/is the place to provide this kind of feedback...after all, this was the place that I was told to come and post my suggestions and ideas at Lotusphere...

Maybe it would be nice if at Lotusphere, there could be a session (BOF?) that IBM could respond to the top 10+ ideas that the community voted for that have not been implemented...these top 10+ ideas may be repost to get a vote to see if this is one of the ideas that the community wants to include in this list for a response from IBM, etc...

Author: David Hablewitz
Tags: sessions marketing community
Idea:
Hold an "Ask the Management" session similar to the "Ask the Developers" session.  The panel would include top brass.  Ed Brill should not be the only one on the panel either.

Author: Michael Tassati
Tags: lotus domino designer calendar application
Idea:
If you have any lotus notes application with an calendar view it would be nice to use calendar overlay in personal calendar (for schedule and planning..).
But to use all features of that you need some documenation.

Author: Michael Tassati
Tags: sametime lotusscript
Idea:
a very nice notifiaction for "new mail in office box" or "you have a new todo in application xyz" will be able with Lotus Sametime announcements. But it is not very easy to create a working code for that (what to do when somebody is not available, expand group membership, api differences of ibm lotus sametime in versions) For interaction with Lotus Notes there should be a supported class.
 
This will bring big benefit for Lotus Sametime and less mail notifications to every client.
 

Author: Michael Tassati
Tags: installer notes client embedded
Idea:
for ibm lotus symphony should be an update installer for ibm lotus notes (8.5.x) like the update installer of ibm lotus sametime (8.5.x)
or: if is possible to update symphony by using the "Eclipse Update Site" this should be documented in the readme and install instructions

One of the most requested features in the IdeaJam was an activeness indicator to differentiate active projects from projects that are not further continued. While it is good to know whether a project is still active, the same indicator can be used to ...
Author: Michael Tassati
Tags: support lotus notes desktop cache workspace bookmark
Idea:
sometimes there are mystery problems in Notes client. IBM Support and other informations tell you some steps like this:
1. delete desktop8.nkd
2. delete cache.ndk
3. delete bookmark.nsf
4. clean notes.ini
5. remove workspace directory
......
there should be a button or notes.ini entry or something like that to run a cleanup process

Author: Michael Tassati
Tags: lotus notes widget
Idea:
widgets are very helpful and every company should use this feature. first time you create a widget, you say "show in right sidebar" but if you close the widget and reopen it at "my widgets" with double click, it will be opend as new window. i'm searching a function to "open always in right sidebar" for a widget (currently options like that in the xml file, doesn't work).

Author: Michael Tassati
Tags: inbox mail sorting order
Idea:
newest message/mail first -  please resort inbox folder by default. and there is a problem in 8.5.x standard if you change this settings with Domino Designer: if you have changed default sort-order in inbox and remove mails, it deletes other documents (focus is not selection).

Author: Michael Tassati
Tags: xpage view categorizing lotus notes web
Idea:
show twisty (expand/collapse) item for categorized views in xpages. also a "expand/collapse all"-funktion, and other customizing options for categorized views.

Еще записи:
Интересные блоги специалистов:

Статьи и Документация

When searching in a view in the Domino Administrator client, after not finding any results the focus is kept in the search
Server crashing on imap task. There are Dpool corruption messages reported in NSD.
Accelerated Replicas are not supported. It takes at least 8 hours to switch the request from accelerated to create normal
From the NSD:
Submit button in a Xpages with custom control does not work properly
Draft Meetings can be deleted using the delete button on the keyboard or using the Menu Edit - Delete
The Domino server crashes on the HTTP process due to excessive memory handles allocated by the iNotes Forms cache
Server hung becase of deadlock between "Database Semaphore" and "NSF buffer pool container" semaphore
Domino server crashes on the function NLSCCSTR.RuleBasedCollator::safeClone with HTTP and AMGR tasks. These types of crashes have been reported on Domino 6 and 7.
LDAP Users are seeing delay in login when using Domino LDAP 8.5.1 server.
The Local Allocator (BLK_LOCAL_BLOCK) is a per-thread allocator designed for small, transient allocations. This block is used for allocations over 64KB in size; such allocations are sub-allocated directly from low level DPOOLs.
In Lotus Domino 8.5.1, when one SMTP outbound message is rejected with a permanent error, such as "user not known", subsequent messages queued for the same destination are also rejected.
Также почитатай:
Найти документацию можно на сайтах:

В избранное