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

ZJI(月付480元),香港阿里云专线服务器

ZJI是成立于2011年原Wordpress圈知名主机商—维翔主机,2018年9月更名为ZJI,主要提供香港、日本、美国独立服务器(自营/数据中心直营)租用及VDS、虚拟主机空间、域名注册业务。本月商家针对香港阿里云线路独立服务器提供月付立减270-400元优惠码,优惠后香港独立服务器(阿里云专线)E3或者E5 CPU,SSD硬盘,最低每月仅480元起。阿里一型CPU:Intel E5-2630L...

咖啡主机22元/月起,美国洛杉矶弹性轻量云主机仅13元/月起,高防云20G防御仅18元/月

咖啡主机怎么样?咖啡主机是一家国人主机销售商,成立于2016年8月,之前云服务器网已经多次分享过他家的云服务器产品了,商家主要销售香港、洛杉矶等地的VPS产品,Cera机房 三网直连去程 回程CUVIP优化 本产品并非原生地区本土IP,线路方面都有CN2直连国内,机器比较稳定。咖啡主机目前推出美国洛杉矶弹性轻量云主机仅13元/月起,高防云20G防御仅18元/月;香港弹性云服务器,香港HKBN CN...

Virmach 3.23美元可用6个月的VPS主机

Virmach 商家算是比较久且一直在低价便宜VPS方案中玩的不亦乐乎的商家,有很多同时期的商家纷纷关闭转让,也有的转型到中高端用户。而前一段时间也有分享过一次Virmach商家推出所谓的一次性便宜VPS主机,比如很低的价格半年时间,时间到服务器也就关闭。这不今天又看到商家有提供这样的产品。这次的活动产品包括圣何塞和水牛城两个机房,为期六个月,一次性付费用完将会取消,就这么特别的产品,适合短期玩玩...

zzz13.com为你推荐
哈利波特罗恩升级当爸哈利波特中的赫敏为什么要喜欢罗恩,不喜欢哈利商标注册流程及费用注册商标的流程是什么,大概需要多少费用?罗伦佐娜维洛娜毛周角化修复液治疗毛周角化有用吗?谁用过?能告诉我吗?同ip域名不同的几个ip怎样和同一个域名对应上www.119mm.comwww.kb119.com 这个网站你们能打开不?www.vtigu.com破译密码L dp d vwxghqw.你能看出这些字母代表什么意思吗?如果给你一把破以它的钥匙X-3,联想partnersonlinecashfiesta 该怎么使用啊~~woshiheida这个左下角水印woshiheida的gif出处在哪呢?急!!!!!dpscycle寻求LR 高输出宏铂金血痕“斑斑的血痕”是什么意思?
香港服务器租用99idc 域名交易网 免费动态域名 rackspace 天猫双十一秒杀 godaddy 回程路由 好看的桌面背景大图 网通代理服务器 全站静态化 腾讯云分析 新家坡 qq云端 ftp免费空间 免费cdn 谷歌搜索打不开 windowsserver2008 sonya windowsserver2008r2 建站论坛 更多