Subjectzzz13.com

zzz13.com  时间:2021-03-22  阅读:()
CopyrightIBMCorporation2004TrademarksCleaningupyoursubjectlinesPage1of8CleaningupyoursubjectlinesAndreasArningJuly12,2004RemovethosepeskyFw:'sandRe:'sfromyourmailmessageswiththeclickofabutton.
ThisarticledescribeshowtocreateaprivateviewandaSmartIconthatremovesprefixesfromyourmailmessagesubjectlinesusingtheNotesformulalanguage.
Editor'sNote:ThecodeinthisarticleincludesEnglishandGermanabbreviations(forwardsandreplies).
Modifythecodeasneeded.
Inalongemailthread,youmayfindmoreFw:'sandRe:'sthanactualwordsinthesubjectline,makingitdifficulttofindtheemail'ssubject.
Youmayalsofindthatyou'reunabletolocaterelatedmessagessortingbysubject.
Tomakereadingeasier,youcanusetheinformationinthisarticletostripawayprefixes,suchasFw:andRe:,tocreatecleanersubjectlines.
Inthisarticle,wedescribehowtoimplementthissolutionintwoparts.
First,youcreateaprivateviewbasedontheAllDocumentsviewthatincludesanextracolumnforthestrippedsubject.
Youusethisfieldtosortyouremailmessages.
Itcontainsaruleforstrippingawaytheexcesstextfromyoursubjectlines.
Second,youcreateaSmartIconthatdeterminesthesubjectlineofacurrentlyopenorselectedemailmessage.
TheSmartIconcomputesacleanversionofthesubjectlineusingtherulesdefinedfortheprivateview.
ThisarticleassumesthatyouhavesomefamiliaritywiththeNotesFormulaLanguage;however,experiencewiththeFormulaLanguageisn'trequired.
CreatingaprivateviewTheprivateviewdisplaysmessageswhosesubjectlineshavebeencleaneduptodisplaytheoriginalsubject.
Tocreatetheprivateview,followthesesteps.
1.
IntheNotesclient,openyourInbox.
2.
ChooseCreate-View.
developerWorksibm.
com/developerWorks/CleaningupyoursubjectlinesPage2of8Figure1.
CreateViewdialogbox3.
Enteraviewname.
4.
IntheViewtypefield,selectPrivate.
5.
KeepthedefaultAlldocumentsfortheCopystylefromfield.
6.
ClicktheCustomizebutton.
Figure2.
Programmer'sPane7.
Right-clicktheSubjectcolumnandselectCopyfromthemenu.
8.
Right-clickthecolumnagainandselectPastetocreateasecondcolumnlabeledSubject.
9.
Right-clickthesecondSubjectcolumn,andselectColumn-Properties.
10.
InthefirsttaboftheColumnPropertiesbox,enteranewtitleforthecolumn,suchasStrippedSubject.
ibm.
com/developerWorks/developerWorksCleaningupyoursubjectlinesPage3of8Figure3.
ColumnPropertiesbox11.
SelecttheSorttabinthepropertiesboxandspecifythefollowingvalues:Sort:AscendingType:StandardFigure4.
ColumnPropertiesboxNOTE:Forallothercolumnsinthenewview,makesurethattheSortpropertyissettoNone.
12.
Closethepropertiesbox.
13.
IntheObjectspane,selectthe"StrippedSubject(Column)"object.
TheformulafortheColumnValueisdisplayedintheprogrammer'spane.
Replacethedefaultformula:@If(Form="NonDeliveryReport";"DELIVERYFAILURE:"+FailureReason;Form="DeliveryReport";_"DELIVERED:"+Subject;Form="ReturnReceipt";"RECEIVED:"+Subject;Form="ReturnNonReceipt";_"NOTRECEIVED:"+Subject;Subject)withthefollowingformula:shortsubject:=Subject;@If(@Contains(shortsubject;"Re:");@Set("shortsubject";@RightBack(shortsubject;"Re:@If(@Contains(shortsubject;"RE:");developerWorksibm.
com/developerWorks/CleaningupyoursubjectlinesPage4of8@Set("shortsubject";@RightBack(shortsubject;"RE:@If(@Contains(shortsubject;"Antwort:");@Set("shortsubject";@RightBack(shortsubject;"Antwort:@If(@Contains(shortsubject;"AW:");@Set("shortsubject";@RightBack(shortsubject;"AW:@If(@Contains(shortsubject;"WG:");@Set("shortsubject";@RightBack(shortsubject;"WG:@If(@Contains(shortsubject;"Fwd:");@Set("shortsubject";@RightBack(shortsubject;"Fwd:@If(@Contains(shortsubject;"Fw:");@Set("shortsubject";@RightBack(shortsubject;"Fw:@If(@Contains(shortsubject;"FW:");@Set("shortsubject";@RightBack(shortsubject;"FW:@If(@Contains(shortsubject;"Wtr:");@Set("shortsubject";@RightBack(shortsubject;"Wtr:REM"removeleading,trailing,anddupblanks:";@Set("shortsubject";@Trim(shortsubject));@If(Form="NonDeliveryReport";"DELIVERYFAILURE:"+FailureReason;_Form="DeliveryReport";"DELIVERED:"+Subject;Form="ReturnReceipt";_"RECEIVED:"+Subject;Form="ReturnNonReceipt";"NOTRECEIVED:"+_Subject;shortsubject)14.
Savetheformula.
15.
Saveandcloseyournewview.
Tip:Tochangetheformulalateron,opentheviewandchooseActions-ViewOptions-Design.
CreatingtheSmartIconorcustomizingyourtoolbarThissectionexplainshowtocreateaSmartIconinNotes5.
0.
x,andhowtocustomizeyourtoolbarinNotes6.
0orlater.
CreatingtheSmartIconThecodefortheSmartIconisidenticaltothecodefortheprivateview.
TheSmartIconopenstheprivateview,soyoucaneasilyseeyourmessageswithcleansubjectlines.
TocreateaSmartIconinNotes5.
0.
x,followthesesteps:1.
Openyourmaildatabase,andchooseFile-Preferences-SmartIconSettings.
2.
Selectaniconofyourchoice.
Generally,anyiconnotalreadyinuseislabeledaMacroButton.
3.
Dragtheiconfromtheleftwindowtotherightwindow.
4.
ClicktheEditIconbutton.
5.
IntheDescriptionfield,enteranameforyouricon,suchasShowmailthread.
Thisnameappearswhenyourmousehoversovertheicon.
6.
Addthefollowingformulatotheicon:shortsubject:=Subject;ibm.
com/developerWorks/developerWorksCleaningupyoursubjectlinesPage5of8@If(@Contains(shortsubject;"Re:");@Set("shortsubject";@RightBack(shortsubject;"Re:@If(@Contains(shortsubject;"RE:");@Set("shortsubject";@RightBack(shortsubject;"RE:@If(@Contains(shortsubject;"Antwort:");@Set("shortsubject";@RightBack(shortsubject;"Antwort:@If(@Contains(shortsubject;"AW:");@Set("shortsubject";@RightBack(shortsubject;"AW:@If(@Contains(shortsubject;"WG:");@Set("shortsubject";@RightBack(shortsubject;"WG:@If(@Contains(shortsubject;"Fwd:");@Set("shortsubject";@RightBack(shortsubject;"Fwd:@If(@Contains(shortsubject;"Fw:");@Set("shortsubject";@RightBack(shortsubject;"Fw:@If(@Contains(shortsubject;"FW:");@Set("shortsubject";@RightBack(shortsubject;"FW:@If(@Contains(shortsubject;"Wtr:");@Set("shortsubject";@RightBack(shortsubject;"Wtr:REM"removeleading,trailing,anddupblanks:";@Set("shortsubject";@Trim(shortsubject));@Command([OpenView];"ZZZView";shortsubject)Replacethe"ZZZView"inthelastlineoftheformulawithyourviewname.
7.
ClickOKafteraddingtheformula.
8.
ClickDoneinthedialogbox.
9.
ClickOKtosavetheicon.
CustomizingyourtoolbarTocustomizeyourtoolbarinNotes6andlater,followthesesteps:1.
Openyourmaildatabase,andchooseFile-Preferences-ToolbarPreferences.
2.
IntheToolbarPreferencesdialogbox,clicktheCustomizetab.
developerWorksibm.
com/developerWorks/CleaningupyoursubjectlinesPage6of8Figure5.
ToolbarPreferencesdialogbox3.
ClickNew,thenselectButton.
4.
IntheEditToolbarButtondialogbox,enteranameforthebuttonalongwiththepop-uphelptext.
5.
IntheFormulawindow,addthecodeabovefortheSmartIcon.
6.
Optionally,clicktheChangeIconbuttontoselectanewicongraphic.
7.
ClickOKwhendone.
8.
ClickOKintheToolbarPreferencesdialogboxtosavethenewicon.
UsingtheSmartIconandprivateviewAnytimeyouwanttocleanupyoursubjectline,selectoropentheemailmessagethatyouwanttochange,andthenclickthenewSmartIcon.
Thisactionopensyourprivateviewwheredocumentsaresortedbythecleanedupsubjectlines.
Emailswiththesamesubjectlinesaresortedbydate.
Theviewshowstheoldestdocumentwiththesubjectlinefirstandallothersdocumentsfollowing.
NOTE:MessagesinyourInboxarenotaffectedbytheSmartIcon.
TheprivateviewcodeFirst,let'slookatthecodethatcomputesthevalueoftheadditionalcolumnStrippedSubject.
Thiscodecopiesthesubjectofyourmessagetoatemporaryvariable.
Inasetofoperations,thistemporaryvariableischeckedforacertainsetofprefixesthatwewanttocleanaway(forexample,Fwd:,Re:,andsoon).
Iffound,theprefixisprunedaway.
BecausetheNotesFormulaLanguagedoesnotofferanexplicitloopconstruct,thecodelooksfortherightmostRe:andanythingbeforetheRe:isprunedaway.
Thismaypruneawaytoomuchincertaincases.
Toillustratethat,let'sconsiderthefollowingartificialsubjectline:YouareselectedforaCorporateAward,butyouhavetorespondimmediatelyRe:bytodayibm.
com/developerWorks/developerWorksCleaningupyoursubjectlinesPage7of8Inthiscase,theformulacleansthesubjectlineandremovesalltextbefore"bytoday.
"Theriskofremovingtoomuchofthesubjectlineislow,however,becauseseveralmessageswiththissubjectarestillsortedtogetherinthe"bytoday"groupofemails.
Iftheresultingstrippedsubjectlineisempty,amessageisshowntogetherwithallotheremailswithoutasubjectline.
Ifyoudonotwanttotakethisrisk,youcanaddcodethatremovesonlythesubstringinstead.
Toremoveuptoanynumberofoccurrencesofthesamesubject,repeatthecheckforthesubstringasmanytimesasyouthinkissufficient.
IfyouwanttocheckforandremoveuptothreeoccurrencesofFwd:,thenthefourthoccurrenceoftheprefixremainsinthesubjectline.
Ontheotherhand,ifyouperformthischeckfourtimesormoreforeachoftheseprefixes,thisfeaturemayconsumemorecomputerresourcesthannecessary.
TheSmartIconcodeLet'sconsiderthesamecodethatcomputesthetemporarystrippedsubjectintheSmartIconcode.
Thestrippedsubjectlinecomputedhereiskeywhenopeningyourprivateview.
Youmayhavenoticedthatthecodeisduplicatedhereagainwiththedisadvantagethatanychanges(forexample,addinganotherstringthatshouldbeignored)havetobemadeintwoplaces.
YoumaywanttoconsolidatethisusingsharedcodeavailableinNotes6andlater.
Attheriskofmakingthecodeslightlymoredifficulttounderstand,thebenefitiseasiermaintenancebecauseitisreallyimportantthatthecodeinthetwoplacesbeidentical.
(Ifnot,thestrippedsubjectlineintheviewandthecomputedkeyvalueforenteringyourprivateviewwouldnotmatch,resultinginanerrormessage.
)ComparisonwiththeDiscussionThreadsviewYoumaybefamiliarwiththediscussionthreadsview,andyoumaywonderwhetherornotthestrippedsubjectlinesolutionoffersanyadvantageoverthatview:Theanswerisyes.
Infact,therearetwodistinctadvantagesthatthestrippedsubjectlinesolutionhasoverthediscussionthreadsview.
ThefirstadvantageisthatthestrippedsubjectlinecanidentifyandmergethreadsevenifsomeoftheinvolvedpartiesusedForwardorevenForwardwithoutattachmentinsteadofReplyorReplywithHistory.
ThediscussionthreadsviewlosestheconnectionbetweenmaildocumentswhensomearecreatedbyForwardorbyForwardwithoutattachment.
Asecondadvantageinvolvesdynamicsortingdonebyclickingthetwistieinthecolumnheaders.
Inthissituation,thestrippedsubjectlinesolutionallowsyoutore-sortdocuments,whilekeepingthecurrentdocumentinfocus,whichisdifficultforthediscussionthreadsview.
ConclusionThisarticleshowsyoutwothings:Howtogetacompletelistofmessageswiththesamesubject,whileignoringthewellknownprefixesaddedduringtheReplyandForwardoperationsorbyaconfidentialflag.
Thistaskisdoneonlybysortorder,withoutaffectingthesubjectline,sothefullinformationremainsintact.
developerWorksibm.
com/developerWorks/CleaningupyoursubjectlinesPage8of8Itshowsyouhowtodisplayacompletelistofmessageswithasingleclick,whileeditingamaildocumentorwhilehavingonedocumentselectedwhenworkingwithyourInbox.
Asyoucanseebythesmallamountofcodingneeded,thisisjustonemoreexampleofthepowerfulNotesinfrastructurethatallowsahighamountofcustomizationatlowcost.
CopyrightIBMCorporation2004(www.
ibm.
com/legal/copytrade.
shtml)Trademarks(www.
ibm.
com/developerworks/ibm/trademarks/)

【IT狗】在线ping,在线tcping,路由追踪

IT狗为用户提供 在线ping、在线tcping、在线路由追踪、域名被墙检测、域名被污染检测 等实用工具。【工具地址】https://www.itdog.cn/【工具特色】1、目前同类网站中,在线ping 仅支持1次或少量次数的测试,无法客观的展现目标服务器一段时间的网络状况,IT狗Ping工具可持续的进行一段时间的ping测试,并生成更为直观的网络质量柱状图,让用户更容易掌握服务器在各地区、各线...

OneTechCloud(31元),美国CN2 GIA高防VPS月

OneTechCloud发布了本月促销信息,全场VPS主机月付9折,季付8折,优惠后香港VPS月付25.2元起,美国CN2 GIA线路高防VPS月付31.5元起。这是一家2019年成立的国人主机商,提供VPS主机和独立服务器租用,产品数据中心包括美国洛杉矶和中国香港,Cera的机器,VPS基于KVM架构,采用SSD硬盘,其中美国洛杉矶回程CN2 GIA,可选高防。下面列出部分套餐配置信息。美国CN...

CloudCone月付$48,MC机房可小时付费

CloudCone商家在前面的文章中也有多次介绍,他们家的VPS主机还是蛮有特点的,和我们熟悉的DO、Linode、VuLTR商家很相似可以采用小时时间计费,如果我们不满意且不需要可以删除机器,这样就不扣费,如果希望用的时候再开通。唯独比较吐槽的就是他们家的产品太过于单一,一来是只有云服务器,而且是机房就唯一的MC机房。CloudCone 这次四周年促销活动期间,商家有新增独立服务器业务。同样的C...

zzz13.com为你推荐
哈利波特罗恩升级当爸电影哈利波特中罗恩一家的红头发为什么后来变成金色的了www.20ren.com有什么好看的电影吗?来几个…比肩工场大运比肩主事,运行长生地是什么意思?陈嘉垣陈浩民、马德钟强吻女星陈嘉桓,求大家一个说法。www.522av.com现在怎样在手机上看AV125xx.comwww.free.com 是官方网站吗?bbs2.99nets.com让(bbs www)*****.cn进入同一个站www.hyyan.com请问我是HY了吗?在线等www.zhiboba.com网上看nbahaole012.com012.com网站真的可以挂Q升级吗?
海外服务器租用 wavecom sugarsync 国外服务器网站 香港托管 suspended 发包服务器 web服务器架设 789电视网 双线主机 中国电信宽带测速网 卡巴斯基破解版 新世界服务器 网通服务器 丽萨 atom处理器 重庆联通服务器托管 侦探online linuxvi 赵蓉 更多