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/)

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...

搬瓦工(季付46.7美元)新增荷兰(联通线路)VPS,2.5-10Gbps

搬瓦工最近新增了荷兰机房中国联通(AS9929、AS4837)线路的VPS产品,选项为NL - China Unicom Amsterdam(ENUL_9),与日本软银和洛杉矶(DC06)CN2 GIA配置一致可以互换,属于高端系列,2.5Gbps-10Gbps大带宽,最低季付46.7美元起。搬瓦工VPS隶属于老牌IT7公司旗下,主要提供基于KVM架构VPS主机,数据中心包括美国洛杉矶、凤凰城、纽...

inux国外美老牌PhotonVPS月$2.5 ,Linux系统首月半价

PhotonVPS 服务商我们是不是已经很久没有见过?曾经也是相当的火爆的,我们中文习惯称作为饭桶VPS主机商。翻看之前的文章,在2015年之前也有较多商家的活动分享的,这几年由于服务商太多,乃至于有一些老牌的服务商都逐渐淡忘。这不有看到PhotonVPS商家发布促销活动。PhotonVPS 商家七月份推出首月半价Linux系统VPS主机,首月低至2.5美元,有洛杉矶、达拉斯、阿什本机房,除提供普...

zzz13.com为你推荐
Baby被问婚变绯闻黄晓明婚礼上说baby碰他哪里最兴奋硬盘工作原理硬盘的工作原理是什么?18comic.fun有什么好玩的网站同一服务器网站同一服务器上可以存放多个网站吗?haole10.com空人电影网改网址了?www.10yyy.cn是空人电影网么百度指数词百度指数是指,词不管通过什么样的搜索引擎进行搜索,都会被算成百度指数吗?www.k8k8.com谁能给我几个街污网站我去自己学www.xvideos.com请问www.****.com.hk 和www.****.com.cn一样吗?干支论坛天干地支www.seowhy.com哪里有免费学习seo的
西安虚拟主机 域名转让网 成都主机租用 vps优惠码cnyvps 什么是域名解析 老左 美国php主机 私有云存储 php免费空间 嘉洲服务器 福建天翼加速 免费mysql qq云端 卡巴斯基破解版 服务器监测 东莞服务器 申请免费空间和域名 lamp什么意思 镇江高防 带宽测试 更多