X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Tue, 15 May 2007 18:40:57 +0200 From: Michelle Konzack To: djgpp AT delorie DOT com Subject: Re: How to count the occurance of a character in a string? Message-ID: <20070515164057.GC1818@freenet.de> References: <20070511181210 DOT GT3209 AT freenet DOT de> <20070512111553 DOT GO1881 AT freenet DOT de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E39vaYmALEf/7YXx" Content-Disposition: inline In-Reply-To: X-Message-Flag: Improper configuration of Outlook is a breeding ground for viruses. Please take care your Client is configured correctly. Greetings Michelle. X-Disclaimer-DE: Eine weitere Verwendung oder die Veroeffentlichung dieser Mail oder dieser Mailadresse ist nur mit der Einwilligung des Autors gestattet. Organisation: Michelle's Selbstgebrautes X-Operating-System: Linux michelle1.private 2.4.27-2-386 X-Uptime: 22:34:41 up 2 days, 43 min, 5 users, load average: 0.08, 0.09, 0.08 X-Homepage-4: http://freenet-homepage.de/dos4michelle/ User-Agent: Mutt/1.5.9i Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk --E39vaYmALEf/7YXx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am 2007-05-12 12:00:42, schrieb Cesar Rabak: > Michelle, >=20 > Let's see what we have so far: you need a way of finding the dot=20 > character in about 1000 strings, you said IIRC. >=20 > What exactly do you mean by "split the Courier-imap folder hierarchie"? ------------------------- END OF REPLIED MESSAGE ------------------------- In Courier-Imap, you have no real folders like ~/Maildir/ .ML_devel/ .djgpp/ instead, each level has a full path like ~/INBOX/ ~/INBOX.ML_devel/ ~/INBOX.ML_devel.djgpp/ So if you have a Mailprogram, you need to split the FullPath, where the "." DOT is the separator... My program is using under Linux GTK+ 2.8 but can run on the console with GtkPixbuff (framebuffer) or as fallback with ncurses. Since I have the need to run the program under DOS too, the solution I am searching for must work on Linux AND Dos. I think, no big deal. The problem is the routine, which create the directory tree, which then can be used in a GtkTreeView and in the ncurses interface. I need something like 0 /INBOX/ 1 /INBOX.ML_devel/ 2 /INBOX.ML_devel.djgpp/ which mean, one DOT is level 1, two DOT is level 3, ... Greetings Michelle Konzack --=20 Linux-User #280138 with the Linux Counter, http://counter.li.org/ ##################### Debian GNU/Linux Consultant ##################### Michelle Konzack Apt. 917 ICQ #328449886 50, rue de Soultz MSN LinuxMichi 0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com) --E39vaYmALEf/7YXx Content-Type: application/pgp-signature; name="signature.pgp" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFGSeKYXnHp6ejAnVoRAuGbAJwKcX3uGxtWQFqFrPmjk0VSWhNJBgCeMmqY 0bOSaTNTFNxx1LzLXk7l1qY= =kZVZ -----END PGP SIGNATURE----- --E39vaYmALEf/7YXx--