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

Hostodo(年付$34.99), 8TB月流量 3个机房可选

Hostodo 算是比较小众的海外主机商,这次九月份开学季有提供促销活动。不过如果我们有熟悉的朋友应该知道,这个服务商家也是比较时间久的,而且商家推进活动比较稳,每个月都有部分活动。目前有提供机房可选斯波坎、拉斯维加斯和迈阿密。从机房的地理位置和实际的速度,中文业务速度应该不是优化直连的,但是有需要海外业务的话一般有人选择。以前一直也持有他们家的年付12美元的机器,后来用不到就取消未续约。第一、开...

TTcloud:日本独立服务器促销活动,价格$70/月起,季付送10Mbps带宽

ttcloud怎么样?ttcloud是一家海外服务器厂商,运营服务器已经有10年时间,公司注册地址在香港地区,业务范围包括服务器托管,机柜托管,独立服务器等在内的多种服务。我们后台工单支持英文和中文服务。TTcloud最近推出了新上架的日本独立服务器促销活动,价格 $70/月起,季付送10Mbps带宽。也可以跟进客户的需求进行各种DIY定制。点击进入:ttcloud官方网站地址TTcloud拥有自...

BGPTO独服折优惠- 日本独服65折 新加坡独服75折

BGPTO是一家成立于2017年的国人主机商,从商家背景上是国内的K总和有其他投资者共同创办的商家,主营是独立服务器业务。数据中心包括美国洛杉矶Cera、新加坡、日本大阪和香港数据中心的服务器。商家对所销售服务器产品拥有自主硬件和IP资源,支持Linux和Windows。这个月,有看到商家BGPTO日本和新加坡机房独服正进行优惠促销,折扣最低65折。第一、商家机房优惠券码这次商家的活动机房是新加坡...

zzz13.com为你推荐
www.hao360.cn每次打开电脑桌面都出现以下图标,打开后链接指向www.hao.360.cn。怎么彻底删除?百度关键词分析百度关键字分析是什么意思?sss17.comwww.com17com.com是什么啊?mole.61.com谁知道摩尔庄园的网址啊789se.comwuwu8.com这个站长是谁?avtt4.comwww.5c5c.com怎么进入斗城网女追男有多易?喜欢你,可我不知道你喜不喜欢我!!平安夜希望有他陪我过www.36ybyb.com有什么网址有很多动漫可以看的啊?我知道的有www.hnnn.net.很多好看的!但是...都看了!我想看些别人哦!还有优酷网也不错...66smsm.com【回家的欲望(回家的诱惑)大结局】 回家的诱惑全集66 67 68 69 70集QOVD快播观看地址??javlibrary.comSSPD-103的AV女主角是谁啊1!!!!求解
虚拟主机评测 济南域名注册 网站实时监控 福建天翼加速 建立邮箱 中国电信宽带测速网 华为云盘 河南移动梦网 登陆qq空间 国外网页代理 卡巴斯基官网下载 googlevoice hosting24 塔式服务器 weblogic部署 德国代理ip 主机响 56折扣网 网易轻博客 大容量存储控制器 更多