Re: Mail status characters in list view

Sam Varshavchik <[email protected]> Tue, 11 Sep 2018 20:57:07 -0400
Newsgroups gmane.mail.cone
Message-ID <[email protected]>
This is a MIME GnuPG-signed message.  If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--===============7092666025681269654==
Content-Type: multipart/signed;
    boundary="=_monster.email-scan.com-34998-1536713827-0001";
    micalg=pgp-sha1; protocol="application/pgp-signature"

This is a MIME GnuPG-signed message.  If you see this text, it means that
your E-mail or Usenet software does not support MIME signed messages.
The Internet standard for MIME PGP messages, RFC 2015, was published in 1996.
To open this message correctly you will need to install E-mail or Usenet
software that supports modern Internet standards.

--=_monster.email-scan.com-34998-1536713827-0001
Content-Type: text/plain; format=flowed; delsp=yes; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Roel van Meer writes:

> Hi Mr Sam,
>
> first of all, thanks for your continued work on the cone mail client! I've  
> been using it since 2005 now and nothing else has ever come close to being  
> as fast and efficient as cone.
>
> I have a small question: I recently updated cone to the most recent version,  
> and now the message status characters in the list view have changed (unread  
> mail used to be shown with an 'N', now it's a diamond character).
>
> Where in the code do you define these characters? I'd like to patch them  
> back to what they were.

It's the first order of business in main(), to check if the locale can  
represent the various unicode characters. This one will fallback to an "N"  
if the locale's character set doesn't have it.

		ucbuf[0]=9830;

		s=unicode::iconvert::convert(ucbuf, unicode_default_chset(), err);

		if (s.size() > 0 && !err)
			strncat(unew, s.c_str(), sizeof(unew)-1);
		else
			strcpy(unew, _("N"));

Just always initialize unew with "N".


--=_monster.email-scan.com-34998-1536713827-0001
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iQIcBAABAgAGBQJbmGRjAAoJEGs6Yr4nnb8lhmQP/2cFfIPuQryR/0IExgcqOxJP
Van00wL8w4AFcBM3Gx66fFPVzkp/KuW6Y/ZM0Af6dLATHCPAOAoSeC0Lay+aL8Lk
nRvRbShRwXtk6qZgwcKTBCYkJdc5nJJTXqMVz6sw7d8w+gfb5yxo8/wNan0VubpR
K/sJGG3RDTqle9i384dGCq5z/WO/LnPmQK5RgBgXoKrqWOuXlWLbQpFHVahc2tuo
RFtkSMBGXtOgAurgZ+aIKz7cwHqOARv25tEufgzorGus4wp/HPGoCWX8xKrVK3uN
FglBa4G3G2T6ZpYBjLCAkirErQ3WMcMbPO5/f8E6tIJMyQ5bxPJcrektZR/ziLs2
GvvJdik8QpZf5RJWvNsC/14/AFsgLml5fSHzcIRBQBZAnECwit8e3NVy4Gs2eZzT
lzRJbASHf1oq90Ay1PeLCJ/UuuNMSza8IY9asEuQyEIpx2A/s6YCuI9Ihs/JOqFb
6GIavzHDdb06j8+WtWo/nxLmOFn5GSuBtD1XVrtI9ZpWCOZQT/sd7DAb3BARlAKE
ukfmeL3uPAFzPE+9mbUIOlyI1//zWJhNVGEpgHQMl26mQV4LMbhA7fRDbbE19MTy
ADXCgJ8oShGE2q1XeAZaKgCQt21rfs45kaM7sZjLqEDpUAZE8yxyVmCwBiZ1qGtv
jvaC6+I8hzrTl7yZgQCl
=D1Fi
-----END PGP SIGNATURE-----

--=_monster.email-scan.com-34998-1536713827-0001--


--===============7092666025681269654==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============7092666025681269654==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

--===============7092666025681269654==--