Re: Email Style (was: Re: Election Manifestos)

2001-05-24 Thread Paul Makepeace

On Wed, May 23, 2001 at 06:51:26PM -0400, David H. Adler wrote:
   map g !G perl -MText::Autoformat -eautoformat CR
   map z !G perl -MText::Autoformat -e 'autoformat{ all = 1 }' CR
 
 ...shamelessly stolen, lock stock and barrel from Damian's article in
 the new TPJ. :-)

Cool, thanks. Actually I think I saw that at TPC too.

Minor problemette is, when 1.0.4 is called at the end of the file:
Can't call method signature on an undefined value at
/usr/local/share/perl/5.6.0/Text/Autoformat.pm line 779.

Paul, having thoughts about using nvi with its embedded perl interpreter
to speed that up a bit...



Re: Email Style (was: Re: Election Manifestos)

2001-05-24 Thread Damian Conway

Damian is so cool...

The next version of Text::Autoformat (which should be out before TPC5)
will also leave header lines and sigs unmolested, making it truly useful
for email tidying.

   
Now if he'd just stop blaming me for stuff like DWIM.pm... ;-)

Well, I would if you'd just stop putting those evil thoughts in my head...

;-)

Damian





Re: Email Style (was: Re: Election Manifestos)

2001-05-24 Thread Damian Conway

Minor problemette is, when 1.0.4 is called at the end of the file:
Can't call method signature on an undefined value at
/usr/local/share/perl/5.6.0/Text/Autoformat.pm line 779.

Noted and fixed for the next release.

Damian





Re: Email Style (was: Re: Election Manifestos)

2001-05-24 Thread Leon Brocard

Paul Makepeace sent the following bits through the ether:

 Have you integrated into a mail server (module, procmail, whatever)

.muttrc:
set editor=/home/acme/bin/autoformat %s; xemacs -nw %s

Leon
-- 
Leon Brocard.http://www.astray.com/
Iterative Software...http://www.iterative-software.com/

... Hey! Who took the cork off my lunch?



Re: Email Style (was: Re: Election Manifestos)

2001-05-24 Thread Mark Fowler

On Thu, 24 May 2001, Leon Brocard wrote:

 Paul Makepeace sent the following bits through the ether:

  Have you integrated into a mail server (module, procmail, whatever)

 .muttrc: set editor=/home/acme/bin/autoformat %s; xemacs -nw %s

 Leon


in PINE

S SETUP - C Config

display-filters: ~mark/bin/autoformat

where autoformat is simply

perl

#!/usr/bin/perl
use strict;
use Text::Autoformat;

$_ = ;

# don't process the headers
if (/^Subject/)
{
 print;
 print while ();
 exit;
}

# slurp in text and process
my $foo = $_;
$foo .= $_ while ();
$_ = autoformat($foo, {all = 1});

# begon disclaimers
s/The information contained in this communication.*//si;

print;

/perl

Later

Mark

--
 My other mail program has a .muttrc




Re: Email Style (was: Re: Election Manifestos)

2001-05-24 Thread Simon Cozens

On Thu, May 24, 2001 at 09:21:08AM +1000, Damian Conway wrote:
 Well, I would if you'd just stop putting those evil thoughts in my head...

Evil Ideas BOF at TPC. ISAGN.

-- 
God Save the Queen!
And let Satan take the Prime Minister...
- Tanuki, in the monastery.



Re: Email Style (was: Re: Election Manifestos)

2001-05-24 Thread Piers Cawley

Damian Conway [EMAIL PROTECTED] writes:

 Damian is so cool...
 
 The next version of Text::Autoformat (which should be out before TPC5)
 will also leave header lines and sigs unmolested, making it truly useful
 for email tidying.

Huzzah!

-- 
Piers Cawley
www.iterative-software.com




Re: Email Style (was: Re: Election Manifestos)

2001-05-24 Thread David H. Adler

On Thu, May 24, 2001 at 09:21:08AM +1000, Damian Conway wrote:

 Now if he'd just stop blaming me for stuff like DWIM.pm... ;-)
 
 Well, I would if you'd just stop putting those evil thoughts in my head...

The David made me do it!??

:-)

dha
-- 
David H. Adler - [EMAIL PROTECTED] - http://www.panix.com/~dha/
Take myself, subtract films, and the remainder is zero
 - Akira Kurosawa



Re: Email Style (was: Re: Election Manifestos)

2001-05-24 Thread Greg McCarroll

* David H. Adler ([EMAIL PROTECTED]) wrote:
 On Thu, May 24, 2001 at 09:21:08AM +1000, Damian Conway wrote:
 
  Now if he'd just stop blaming me for stuff like DWIM.pm... ;-)
  
  Well, I would if you'd just stop putting those evil thoughts in my head...
 
 The David made me do it!??
 

just wrap more tin foil around your head and everything will be ok 

-- 
Greg McCarroll  http://www.mccarroll.uklinux.net



Re: Email Style (was: Re: Election Manifestos)

2001-05-23 Thread Niklas Nordebo

On Wed, May 23, 2001 at 02:52:39PM +0100, Dominic Mitchell wrote:
 However, the cool futuristic stuff like CORRECT BLOODY WORK WRAPPING is

I generally avoid this issue by not working so much that it needs wrapping.

-- 
Niklas Nordebo -- [EMAIL PROTECTED] -- +447966251290
 The day is seven hours and fifteen minutes old, and already it's
crippled with the weight of my evasions, deceit, and downright lies



Re: Email Style (was: Re: Election Manifestos)

2001-05-23 Thread David H. Adler

On Wed, May 23, 2001 at 02:52:39PM +0100, Dominic Mitchell wrote:
 On Wed, May 23, 2001 at 02:32:09PM +0100, Jonathan Peterson wrote:
  
  Much as I'd love it if everyone was to be able to post to the list from their 
favourite Unix mail client all the time, 
  
  
  Oxymoron, surely?
 
 Not in the slightest.  Now if you'd said favourite gui mail client,
 you might be correct.

No, I think that's still not a contradiction.  good gui mail client
probably is, however.

  Indeed. And some of us use display technology that doesn't have an
  overwhelming urge to be backward compatible with 1972, and can
  therefore do cool futuristic stuff like handle more than 72 columns.
 
 However, the cool futuristic stuff like CORRECT BLOODY WORK WRAPPING is
 completely beyond it, despite the fact it's been implemented correctly
 countless times before over the past 30 years or so.

You should use Damian's Text::AutoFormat.  I just used it to reformat
the bit above beginning with Indeed.  Lovely thing.

dha
-- 
David H. Adler - [EMAIL PROTECTED] - http://www.panix.com/~dha/
philosophy department 
- you don't have to be to work here, but it helps



Re: Email Style (was: Re: Election Manifestos)

2001-05-23 Thread Paul Makepeace

On Wed, May 23, 2001 at 12:23:49PM -0400, David H. Adler wrote:
 You should use Damian's Text::AutoFormat.  I just used it to reformat
 the bit above beginning with Indeed.  Lovely thing.

Have you integrated into a mail server (module, procmail, whatever)
so that it gets cleaned on the way in, or does your mail client do it,
or have you some on-demand vi/emacs macros? Do tell!

Paul



Re: Email Style (was: Re: Election Manifestos)

2001-05-23 Thread David H. Adler

On Wed, May 23, 2001 at 02:41:33PM -0700, Paul Makepeace wrote:
 On Wed, May 23, 2001 at 12:23:49PM -0400, David H. Adler wrote:
  You should use Damian's Text::AutoFormat.  I just used it to reformat
  the bit above beginning with Indeed.  Lovely thing.
 
 Have you integrated into a mail server (module, procmail, whatever)
 so that it gets cleaned on the way in, or does your mail client do it,
 or have you some on-demand vi/emacs macros? Do tell!

from my .vimrc:

map g !G perl -MText::Autoformat -eautoformat CR
map z !G perl -MText::Autoformat -e 'autoformat{ all = 1 }' CR

...shamelessly stolen, lock stock and barrel from Damian's article in
the new TPJ. :-)

The first does the current paragraph, the second does all paragraphs
down to the end of the document.

Damian is so cool...  Now if he'd just stop blaming me for stuff like
DWIM.pm... ;-)

dha

-- 
David H. Adler - [EMAIL PROTECTED] - http://www.panix.com/~dha/
If God didn't want us to eat animals, he wouldn't have made them out
of Meat.  - Phillip, Goats, 20sep99