From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.240.136 with SMTP id la8cs145311icb; Thu, 10 Feb 2011 07:05:54 -0800 (PST) Received: by 10.236.108.41 with SMTP id p29mr8494557yhg.21.1297350353692; Thu, 10 Feb 2011 07:05:53 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id u21si195229vcr.188.2011.02.10.07.05.53; Thu, 10 Feb 2011 07:05:53 -0800 (PST) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id E4FE9185837B; Thu, 10 Feb 2011 10:05:52 -0500 (EST) Received: from plecavalier.com (plecavalier.com [64.40.149.83]) by rubyforge.org (Postfix) with ESMTP id 7BF1C1858378 for ; Thu, 10 Feb 2011 09:44:22 -0500 (EST) Received: (qmail 13460 invoked from network); 10 Feb 2011 08:44:20 -0600 Received: from xplr-142-46-160-183.xplornet.com (HELO localhost) (142.46.160.183) by plecavalier.com with (DHE-RSA-AES128-SHA encrypted) SMTP; 10 Feb 2011 08:44:20 -0600 From: Philippe LeCavalier To: sup-talk Date: Thu, 10 Feb 2011 09:44:18 -0500 Message-Id: <1297346751-sup-70@plc.intranet.plecavalier.com> User-Agent: Sup/0.12.1 Subject: [sup-talk] best method for before-add-message.rb X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org Hi All. I'm still working on my initial labeling/hooks and best choices thereof. I'm torn between a few options. i)external file reference (would be my preferred method) -can't list anything other than full email addresses in the file @domain.com, wildcards...etc. would be nice -can't comment in the file. It would be nice to weed out comments -is it possible that when an address has a subdomain the example in the wiki breaks? ie list@list.domain.com none of my hooks for these types of addresses seem to work -is Sup caching the referenced file? if not, I presume this option significantly slows things down ii)not using an external file makes the hook file lengthy. However it seems to be the only safe way of adding multiple labels - which I feel crucial to making a strong searchable system. Perhaps a label(s)-markread-archive would be nice :) -using this method I find myself writing a ton of rules for the same thread. a)label the thread from a particular community/client/area b)label the thread from a particular person within said community/clientel/area c)label it something useful ie (not)important/archive/redirect/bounce(hehe)...etc. I'm assuming my difficulties spring from a few basic assumptions; I can't write any code let alone Ruby, if my life depended on it. The wiki has solid working examples for those who can work with Ruby. Again I don't speak Ruby. And mostly, I come form a world where things get filtered to folders :-( I'm really trying to keep an open mind and I know I'll get there but my inbox now has thousands of mails in it and I'm the type that kept a strict 0 count. In order for me to move to Sup I had to get *real* disorganized before getting *real* organized ;-) All that to say that for types like me, it's all about copying other, less ruby-challenged, peoples work. So for the past three weeks I've been living in the wiki....It's a pretty lonely place out there! In keeping an open mind about all this, I'm open to hearing examples of how others handle there workflow that are achieving the same goal I have in mind. ie label everything with individual labels and archive it all using the least/simplest/most efficient code possible. This way I can search for clients,client A,reports,after:tue-jan-18(I think the latter is prob. wrong but feel like looking up chronic's standards at the moment:-) ) My mail is really important to me so if the only response I get from this is "learn Ruby you lazy-ass-bastard!" I'll get the message(lousy pun eh?) ;-) -- Thanks, Phil _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk