Hello Alessandro Vesely,

Am 2010-06-04 11:41:21, hacktest Du folgendes herunter:
> The user said the issue is the new-mail notifications getting 
> cluttered. I had never noticed that, as I get an inordinate amount of 
> mail. The more I think about it, the more it seems a client problem to 
> me. I filed https://bugzilla.mozilla.org/show_bug.cgi?id=569921

Hmmm...

> You mean a setup somehow like the following?
> 
>    echo '|cat - > ./Maildir/.Sent/cur/${filename},S' > .courier-sent
> 
> However, I have no idea how to set the filename. I don't think you 
> mean a maildrop script. How about hacking deliverquota? Then the setup 
> would become, e.g.
> 
>    echo '|deliverquota -S ./Maildir/.Sent' > .courier-sent
> 
> 
> Won't I break any Maildir++ assumptions delivering that way?

If I wan to mark messages as read and not let detect an IMAP client  the
new message I do in procmail:

    :0:
    <some conditions here>
    {
      TRAP='${HOME}/bin/move_mail_to_seen ; :'
      :0
      .Sent/
    }


and the script is:

----[ '~/bin/move_mail_to_seen' ]---------------------------------------
#!/bin/bash

MSG_SIZE=$(wc --bytes <${LASTFOLDER})

MSG_NAME=$(basename ${LASTFOLDER})
MSG_DIR=$(dirname   ${LASTFOLDER}} |sed -e 's|/new/$||')

MSG_SAVE="${MSG_NAME},S=${MSG_SIZE}:2,S"

MSG_LAST=$(head -n1 ${MSG_DIR}/courierimapuigdb |cut -d ' ' -f3)
MSG_NEW=$((MSG_LAST+1))

DATE_NOW=$(date +%s)

echo "1 ${DATE_NOW} ${MSG_NEW}"          >${MSG_DIR}/courierimapuigdb.tmp
sed '1,1d' <${MSG_DIR}/courierimapuigdb >>${MSG_DIR}/courierimapuigdb.tmp
echo "${MSG_LAST} ${MSG_SAVE}"          >>${MSG_DIR}/courierimapuigdb.tmp

mv -f ${MSG_DIR}/courierimapuigdb.tmp ${MSG_DIR}/courierimapuigdb
mv ${LASTFOLDER} ${MSG_DIR}/cur/${MSG_SAVE}
------------------------------------------------------------------------

And yes, YOU MUST LOCK the delivery recipe and  YOU  MUST  RE-WRITE  the
courierimapuigdb because otherwise you will run into some weird results.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack

-- 
##################### Debian GNU/Linux Consultant ######################
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsyst...@tdnet France EURL       itsyst...@tdnet UG (limited liability)
Owner Michelle Konzack            Owner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz                 Kinzigstraße 17
67100 Strasbourg/France           77694 Kehl/Germany
Tel: +33-6-61925193 mobil         Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

<http://www.itsystems.tamay-dogan.net/>  <http://www.flexray4linux.org/>
<http://www.debian.tamay-dogan.net/>         <http://www.can4linux.org/>

Jabber linux4miche...@jabber.ccc.de
ICQ    #328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/

Attachment: signature.pgp
Description: Digital signature

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to