Composing a draft?

2000-10-14 Thread Anthony Liu

Hi everyone,

Is there a way to tell mutt that I am composing a draft without
finishing the editing and do the postpone action?  If this is
possible, I would like to spawn another terminal (or even an X-based editor)
for the editor so I can read other mails while composing a draft?  In other
words, I  prefer the editor not to tie up mutt while composing mail.

Any ideas?



Re: How can I use mutt on disconnected laptops?

2000-10-14 Thread Conor Daly

On Fri, Oct 13, 2000 at 11:31:03PM -0700 or thereabouts, Claus Fischer wrote:
 I have a laptop which is sometimes disconnected from my main PC.
 I want to use mutt alternatingly on both systems, for the same
 inbox and mail folders.
 
 Does anyone have a proven method of doing that?
 
 Like that:
  work on main PC
  synchronize
  disconnect
  work on laptop
  connect
  synchronize
  ... [ start over ]

There's a few interesting issues here...  Differences arise depending on
whether your main PC connects to the internet while the laptop is
disconnected or not.  If there's no internet connection happening, you could
do something as simple as copy the more recent file over the older version
in either direction.  OTOH, if the main PC is receiving mail while the
laptop's away, you,ll need a more sophisticated solution.  I'd be thinking
of something along the lines of a combination of pop, procmail and formail.  
For example, you could do something like

cat ~/mbox | /usr/bin/formail -D 8192 msgid.cache  laptop:~/mbox
cat laptop:~/mbox | /usr/bin/formail -D 8192 msgid.cache  ~/mbox

and similarly for other folders (I don't know what the "8192" bit means above, 
I just copied it blindly from Telsa's .procmailrc).  If you create a new 
folder on one machine, a script like the following should duplicate it on the 
other one.

#!/bin/bash

# Synchronise mail folders on two machines
# We'll assume that somehow (NFS?) the user's laptop $HOME directory has
# been mounted as $HOME/laptop on the desktop machine

# First we process the mail on the desktop machine
cd ~/
for MAIL_FOLDER in (./mbox `echo Mail/*`); do
cat ~/$MAIL_FOLDER | /usr/bin/formail -D 8192 $MAIL_FOLDER.msgid.cache  
~/laptop/$MAIL_FOLDER
done

# Next we process the laptop
cd ~/laptop
for MAIL_FOLDER in (./mbox `echo Mail/*`); do
cat ~/laptop/$MAIL_FOLDER | /usr/bin/formail -D 8192 $MAIL_FOLDER.msgid.cache  
~/$MAIL_FOLDER
done

# That's it.  It's up to the user now to keep the mail folders trim to avoid
# lots of old messages from being reprocessed!

This should synchronise all mail folders in either direction and duplicate
new folders also at the cost of reprocessing *every* email message in your
possession!  

Note: usual disclaimers apply, this has not been tested.  If it breaks, you
get to keep both pieces.  The "formail -D" bit should be properly researched
before using it on your valuable email.
 
 3. I need to guarantee that mutt isn't running while I do the
rsync, otherwise something will be corrupted.
 
Is it possible to gracefully terminate a running mutt?
 
   killall -QUIT mutt
   mutt:
   - kill editor
   - postpone currently composed message
   - do a `quit' (including expunge)
   - remove pid file
   - exit(0)
   wait for pid file to go away and rsync
   [ just dreaming ]
 
I don't know if it's necessary to kill mutt using this method.  I'm
certainly running mutt when new mail arrives and gets added to the currently
open mailbox.  I think, since formail and mutt are used to getting along,
there's no need to worry.  That's nice because it means you can set up a
cron job to keep the machines synchronised or maybe have something in the
user's .login and .logout to check if the two machines are connected and if
so, synchronise!
 
 If someone has experience with that situation I would
 appreciate scripts or comments; otherwise I'll experiment
 and perhaps report back.
Experiment won't you...
 
 Regards,
 
 Claus
 
Waiting to hear what happened... :-)

-- 
Conor Daly 
Met Eireann, Glasnevin Hill, Dublin 9, Ireland
Ph +353 1 8064217 Fax +353 1 8064275




Re: How can I use mutt on disconnected laptops?

2000-10-14 Thread Dan Boger

On Sat, Oct 14, 2000 at 02:35:24PM +, Conor Daly wrote:
 cat ~/mbox | /usr/bin/formail -D 8192 msgid.cache  laptop:~/mbox
 cat laptop:~/mbox | /usr/bin/formail -D 8192 msgid.cache  ~/mbox
 
 and similarly for other folders (I don't know what the "8192" bit means above, 
 I just copied it blindly from Telsa's .procmailrc). 

the 8192 is the size of the cache for the IDs - if you're processing a large
mailbox though, (say, more than 10-20 messages) you'd defenitly want this
larger...  at least 64k, if not more...

another way to go at it, and this also works only if there's only one machine
that is getting the mail, is just put the mailfolder (or the maildir) in an
nfs share...

Dan

 PGP signature


Re: Composing a draft?

2000-10-14 Thread Bob Bell

On Sat, Oct 14, 2000 at 06:56:40PM +0800, Anthony Liu [EMAIL PROTECTED] wrote:
 Is there a way to tell mutt that I am composing a draft without
 finishing the editing and do the postpone action?  If this is
 possible, I would like to spawn another terminal (or even an X-based editor)
 for the editor so I can read other mails while composing a draft?  In other
 words, I  prefer the editor not to tie up mutt while composing mail.

Just open another mutt session.  Unlike many mail editors, you can
have multiple instances of mutt running at the same time.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "Microsoft has never been an innovator - it's a fast follower.  And
  when you're as big and dominant as Microsoft, and growing at 30 or 40
  percent a year, it gets harder and harder to find people to be fast
  followers of."
   -- Paul Saffo, Institute for the Future



Re: pgp signatures

2000-10-14 Thread David T-G

Darrin --

...and then Darrin Mison said...
% 
[LookOut! problem description snipped]
% 
% know a way to correct this apart from surgically removing outlook ;-) 

Well, that's definitely the right way, but you might look into
pgp_create_traditional to do in-line signatures.  There was also an
Outhouse-specific patch posted here recently which might be of use; check
the archives.


% 
% --
% Darrin Mison
% -- 
% Life is a series of rude awakenings.
% -- R.V. Winkle


:-D
-- 
David T-G   * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.


 PGP signature


newbie? How to view mutt error messages.

2000-10-14 Thread Rod Pike

Greetings,

Newbie question

When I start ( and quit ) mutt there are sometimes error messages a the
bottom of the screen that flash up and then are gone.  Is there a log
that I can look at that contains these messages so I can debug my setup?

Cheers,
Rod





Re: How can I use mutt on disconnected laptops?

2000-10-14 Thread Bruce DeVisser

On Sat, Oct 14, 2000 at 01:45:51PM -0400, Dan Boger wrote:
 the 8192 is the size of the cache for the IDs - if you're
 processing a large mailbox though, (say, more than 10-20
 messages) you'd defenitly want this larger...  at least
 64k, if not more...

The cache is merely a set of null-terminated message IDs. On
my box, a 256k cache holds about 6500 msgids, in other words
the msgids are averaging about 40 bytes each. Adjust the
cache size accordingly.

-- 
- Bruce



Gnu Privacy Guard 1.0.3

2000-10-14 Thread Charles Curley

For those folks who use Gnu Privacy guard, gpg 1.0.3 is now available at
the usual place, http://www.gnupg.org/. This version incorporates code for
the RSA encryption methods. I found out that everything you need to build
an RPM is included in the tarball; just follow the instructions in the
file INSTALL.

I'd make the RPMs available on my web site, but I don't need a bunch of
armed and testosterone poisoned thugs breaking my door down in the middle
of the night in case I accidentally break some export rule. Sorry.

-- 

-- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley
 PGP signature


Re: Mutt and vim enhancment

2000-10-14 Thread David T-G

Conor --

...and then Conor Daly said...
% On Fri, Oct 13, 2000 at 09:00:05AM +0800 or thereabouts, Bevan Broun wrote:
%  on Wed, Oct 11, 2000 at 12:39:46PM -0400, Peter Solodov [EMAIL PROTECTED] 
wrote:
%   
%   Is it useful for someone besides me? :-)
%  
%  Im using it. I modified the first one to include the Subject but then
...
% 
% Yes, but where do I put the function?

Have you tried putting it in your .vimrc or .exrc file?  That's where I'd
start...


% 
% TIA

HTH  HAND


% -- 
% Conor Daly 
% Met Eireann, Glasnevin Hill, Dublin 9, Ireland
% Ph +353 1 8064217 Fax +353 1 8064275
% 


:-D
-- 
David T-G   * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.


 PGP signature


Re: Composing a draft?

2000-10-14 Thread Suresh Ramasubramanian

Bob Bell proclaimed on mutt-users that: 

 Just open another mutt session.  Unlike many mail editors, you can
 have multiple instances of mutt running at the same time.
 
 However, mailbox flags get modified when you do this - especially with mbox
 folders.  A better thing to do is to use something like gvim or emacs as the
 editor (both of which pop up in different terms from the mutt window, and
 multiple sessions of which can be opened leaving your mutt xterm free)
 
 Of course, on a console, this means some tedious shifting between alt-f1,
 alt-f2 ... virtual consoles  ;)
 
-- 
Suresh Ramasubramanian + Wallopus Malletus Indigenensis
mallet @ cluestick.org + Lumber Cartel of India, tinlcI
Azh nazg durbataluk, azh nazg gimbatul,
Azh nazg thrakataluk agh burzum ishi krimpatul