On 15/09/09 10:11, Raúl Núñez de Arenas Coronado wrote:
>
> Saluton Patrick :)
>
> Patrick Gen-Paul<[email protected]>  skribis:
[...]
>> P.S. [OT] What mailer do you use? Your signature comes out a different
>> color, not that I mind.. just curious how it's done your end.

The mailer which sent any given mail can often be determined from the 
"User-Agent" header line. Not always, though: Raúl's mail to which I'm 
replying here doesn't have such a line, though list mails sent via the 
Google Group interface usually do. Yours (Patrick's) says (a lot of 
stuff ending in) "SeaMonkey/1.1.16"; IIUC you can see the User-Agent 
line (when present) of all mails you read by setting the Boolean 
preference mailnews.headers.showUserAgent to true in about:config.

[...]
> But, whenever I edit email with Vim (this one, for example), my
> signature appears in a different color because the syntax highlighting,
> and some MUAs (mutt, Claws if I recall correctly, maybe others)

...Thunderbird, SeaMonkey, probably some more still; _not_ Outlook 
Express when last I used it. Those that do usually also remove the sig 
(i.e. the dash-dash-space and everything after it) from the quoted mail 
when you reply.

> color
> signatures differently if they detect the magic "-- " at the start of a
> line.

Not "at the start" but "as the only contents" of a line. If there is 
something on the same line after the dash-dash-space it isn't a sig 
delimiter anymore.

> Please note the space after "--", because it is part of the magic.
> If that separator is detected, the rest of the message is considered a
> signature and rendered in a different color, just like in Vim.
>
> So, no effort on my end except adding "-- " and the signature. A job
> that, by the way, is done by Vim entirely. Vim also takes the job of
> creating the salute and the attribution line automatically using the
> information contained in the original attribution line put there by
> GMail. Vim makes GMail tolerable as a MUA ;)
>

My "random" sigs are also generated by Vim (by gvim in my case), which 
(at the press of a key, which is the {lhs} of a mapping) either calls 
the "fortune" program or gets the next sig from Bram's collection, and 
places the result (preceded by a dash-dash-space line) on the clipboard 
where SeaMonkey (2.0pre, in my case) can easily paste it from. State 
info is remembered in the viminfo by means of two variables with names 
in all-caps.


Best regards,
Tony.
-- 
Disco is to music what Etch-A-Sketch is to art.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to