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/)
搬瓦工最新优惠码优惠码:BWH3HYATVBJW,节约6.58%,全场通用!搬瓦工关闭香港 PCCW 机房通知下面提炼一下邮件的关键信息,原文在最后面。香港 CN2 GIA 机房自从 2020 年上线以来,网络性能大幅提升,所有新订单都默认部署在香港 CN2 GIA 机房;目前可以免费迁移到香港 CN2 GIA 机房,在 KiwiVM 控制面板选择 HKHK_8 机房进行迁移即可,迁移会改变 IP...
Hostodo商家算是一个比较小众且运营比较久的服务商,而且还是率先硬盘更换成NVMe阵列的,目前有提供拉斯维加斯和迈阿密两个机房。看到商家这两年的促销套餐方案变化还是比较大的,每个月一般有这么两次的促销方案推送,可见商家也在想着提高一些客户量。毕竟即便再老的服务商,你不走出来让大家知道,迟早会落寞。目前,Hostodo有提供两款大流量的VPS主机促销,机房可选拉斯维加斯和迈阿密两个数据中心,且都...
百纵科技:美国云服务器活动重磅来袭,洛杉矶C3机房 带金盾高防,会员后台可自助管理防火墙,添加黑白名单 CC策略开启低中高.CPU全系列E52680v3 DDR4内存 三星固态盘列阵。另有高防清洗!百纵科技官网:https://www.baizon.cn/联系QQ:3005827206美国洛杉矶 CN2 云服务器CPU内存带宽数据盘防御价格活动活动地址1核1G10M10G10G38/月续费同价点击...
zzz13.com为你推荐
云爆发什么是蒸汽云爆炸?要具备那些条件?中老铁路老挝磨丁经济特区的前景如何?psbc.com95580是什么诈骗信息不点网址就安全吧!丑福晋爱新觉罗.允禄真正的福晋是谁?他真的是一个残酷,噬血但很专情的一个人吗?百度关键词分析如何正确分析关键词?www.228gg.comwww.a8tb.com这个网站该如何改善www.5ff.comhttp://www.940777.com/网站,是不是真的网投六合haole10.comwww.qq10eu.in是QQ网站吗www.zhiboba.com上什么网看哪个电视台直播NBAbaqizi.cc和空姐一起的日子电视剧在线观看 和空姐一起的日子全集在线观看
www二级域名 vps教程 樊云 Dedicated linkcloud gitcafe 好玩的桌面 hnyd 国外代理服务器软件 美国在线代理服务器 100mbps 1元域名 成都主机托管 电信宽带测速软件 免费稳定空间 hdsky 密钥索引 碳云 百度新闻源申请 cc加速器 更多