Re: plus addresses

Alessandro Vesely <[email protected]> Thu, 25 Jul 2024 18:48:31 +0200
Newsgroups gmane.mail.imap.courier.general
Message-ID <[email protected]>
On Thu 25/Jul/2024 14:23:52 +0200 Sam Varshavchik wrote:
> Alessandro Vesely writes:
> 
>> [...]
>>
>> Furthermore, how about having courier-foo automatically delivered to folder 
>> foo, if such a folder exists, without having to create a specific .courier? 
>> Folders can be created on an IMAP client...
> 
> I don't think it's wise to do this by default. This should be doable already, 
> with a .courier-default, and some scripting, so if someone were to do it, 
> themselves, they'll be responsible for all the consequences.
> 
> I do use folders, myself, and with a carefully-tuned .mailfilter that drops 
> mail into specific folders, that have specific purposes. Mail shouldn't go 
> there just because of the delivery address.


I'd be curious to learn the reasoning behind that point.  Both creating an address and creating a folder need a bit of thought...  What unintended consequences could happen?

The script I use for List-ID-to-folder is so ugly that only a couple of users include it.  I guess an extension-to-folder would be similar:

if (/^List-ID:[^<]*<([-_A-Za-z0-9]*)/:H)
{
         DEST=`sed -nr 's/^INBOX(\\.'"$MATCH1"')$/\\1/ip' ./Maildir/courierimapsubscribed`
         if ("$DEST")
         {
                 `test -d "./Maildir/$DEST"`
                 if ($RETURNCODE == 0)
                         to "./Maildir/$DEST";
         }
}

Isn't that ugly enough?

Best
Ale
-- 







_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users