From: Uwe Brauer <oub@mat.ucm.es>
To: ding@gnus.org
Subject: Re: BUG: ngnus-0.10 can't send messages
Date: Wed, 25 Jun 2008 13:33:32 +0200 [thread overview]
Message-ID: <87y74tycj7.fsf@mat.ucm.es> (raw)
In-Reply-To: <b4m8wwuxu36.fsf@jpl.org>
>>>>> "Katsumi" == Katsumi Yamaoka <yamaoka@jpl.org> writes:
>>>>> Reiner Steib wrote:
>> Fix it to handle non-nil ALL correctly.
> Yup, it's exactly the solution. Maybe those advices can be
> simply replaced with:
> (defadvice mail-extract-address-components (after capitalize first activate)
> "Capitalize names."
> (dolist (adrs (if (ad-get-arg 1)
> ad-return-value
> (and ad-return-value (list ad-return-value))))
> (if (car adrs)
> (setcar adrs (capitalize (car adrs))))))
> (defadvice mail-extract-address-components (after capitalize-mc last activate)
> "Fix capitalization of \"Mc\" names, e.g. \"Mcdonald\" -> \"McDonald\"."
> (let ((case-fold-search nil)
> full-name start)
> (dolist (adrs (if (ad-get-arg 1)
> ad-return-value
> (and ad-return-value (list ad-return-value))))
> (when (setq full-name (car adrs))
> (setq start 0)
> (while (string-match "\\<Mc\\([^aeiou]\\)" full-name start)
> (aset full-name (match-beginning 1)
> (upcase (aref full-name (match-beginning 1))))
> (setq start (match-end 0)))))))
Thanks for that code.
Uwe
prev parent reply other threads:[~2008-06-25 11:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87od60tp06.fsf@mat.ucm.es>
2008-06-18 18:05 ` Reiner Steib
[not found] ` <87hcbpkcb7.fsf@mat.ucm.es>
2008-06-23 17:57 ` Reiner Steib
2008-06-24 9:57 ` Uwe Brauer
2008-06-24 11:40 ` Katsumi Yamaoka
2008-06-24 13:37 ` Uwe Brauer
2008-06-24 17:29 ` Reiner Steib
2008-06-24 23:59 ` Katsumi Yamaoka
2008-06-25 11:33 ` Uwe Brauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y74tycj7.fsf@mat.ucm.es \
--to=oub@mat.ucm.es \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).