Re: attachments when using IMAP

2000-07-16 Thread Joe Abley

My god, a flurry of self-replies. Sorry about the noise. Won't happen
again.

On Sat, Jul 15, 2000 at 09:25:32AM +1200, Joe Abley wrote:
 On Sat, Jul 15, 2000 at 08:41:12AM +1200, Joe Abley wrote:
  Aaah, I see. So here's the thing:
  
  1. I want folder={maggie.automagic.org}INBOX when I do a "c" to change
 folders;
  
  2. I want folder=~ when I do an "a" to add an attachment to a message.
  
  I had a brief moment of clarity and tried this:
  
  macro index c ":set folder={maggie.automagic.org}INBOX^M:change-folder^M"
  macro index escc ":set 
folder={maggie.automagic.org}INBOX^M:change-folder-readonly^M"
  macro compose a ":set folder=~^M:attach-file"
  
  but it doesn't seem to work (:change-folder isn't something that mutt
  seems to understand). Anybody give me a hand?
 
 I read the manual a bit more and did this instead, which is at least
 understood:
 
   # change folder according to whether I'm browsing folders or files
   macro index c ":set folder={maggie.automagic.org}INBOX\nchange-folder"
   macro index escc ":set 
folder={maggie.automagic.org}INBOX\nchange-folder-readonly"
   macro compose a ":set folder=~\nattach-file"
 
 This doesn't seem to make any difference to the use of "a?" in the
 compose menu, though -- I still get presented with a list of IMAP
 folders.

Not any more I don't. Weird. I'm not sure what I changed, but it works
now. Thanks to all concerned for your help.

# built on mutt 1.2.4i

# look-and-feel
unset confirmappend
set ascii_chars=yes
set beep_new=yes
set delete=yes
set fast_reply
set mime_forward="ask-yes"
unset markers
unset mbox
unset menu_scroll
unset move
set pager_context=4
set pager_index_lines=4
set pager_stop
unset mark_old
unset strict_threads
set autoedit=yes
set fast_reply=yes
set edit_headers=yes
folder-hook . set sort=threads
bind index x sync-mailbox

# imap
set imap_user="jabley"
set folder={maggie.automagic.org}INBOX
set spoolfile={maggie.automagic.org}INBOX
mailboxes {maggie.automagic.org}INBOX

# change folder according to whether I'm browsing folders or files
macro index c ":set folder={maggie.automagic.org}INBOX\nchange-folder"
macro index escc ":set folder={maggie.automagic.org}INBOX\nchange-folder-readonly"
macro compose a ":set folder=~\nattach-file"

# multiple personality disorder
set 
alternates="jabley@(tsnz.net|patho.gen.nz|automagic.org|quicksilver.co.nz|2day.com)"

folder-hook . \
  my_hdr "fcc: {maggie.automagic.org}INBOX.out.general"
folder-hook . \
  my_hdr "From: Joe Abley [EMAIL PROTECTED]"

folder-hook (in|out).netlink \
  my_hdr "fcc: {maggie.automagic.org}INBOX.out.netlink"
folder-hook (in|out).netlink \
  my_hdr "From: Joe Abley [EMAIL PROTECTED]"

folder-hook (in|out).qsi \
  my_hdr "fcc: {maggie.automagic.org}INBOX.out.qsi"
folder-hook (in|out).qsi \
  my_hdr "From: Joe Abley [EMAIL PROTECTED]"

folder-hook (in|out).2day \
  my_hdr "fcc: {maggie.automagic.org}INBOX.out.2day"
folder-hook (in|out).2day \
  my_hdr "From: Joe Abley [EMAIL PROTECTED]"

folder-hook list.mutt-users \
  my_hdr "From: Joe Abley [EMAIL PROTECTED]"

folder-hook list.mutt-dev \
  my_hdr "From: Joe Abley [EMAIL PROTECTED]"

# aliases
set alias_file="~/.mutt-aliases"
source "~/.mutt-aliases"




attachments when using IMAP

2000-07-14 Thread Joe Abley

I have folder and spooldir set to an IMAP-type path, since I don't keep
any mail locally. This works very nicely (mmm, 1.2.4i good) except that
if I try to add a local attachment to a message I'm composing, mutt
looks for the file on the IMAP server rather than looking on the local
filesystem.

This kind of sucks :)

Am I doing something stupid? Or is this really a problem?

Build is stock 1.2.4i with --with-imap on OpenBSD 2.7/i386; muttrc
below.


Joe


# $Id:$
#
# built on mutt 1.2.4i

# look-and-feel
unset confirmappend
set ascii_chars=yes
set beep_new=yes
set delete=yes
set fast_reply
set mime_forward="ask-yes"
unset markers
unset mbox
unset menu_scroll
unset move
set pager_context=4
set pager_index_lines=4
set pager_stop
unset mark_old
unset strict_threads
set autoedit=yes
set fast_reply=yes
set edit_headers=yes
folder-hook . set sort=threads
bind index x sync-mailbox

# imap
set imap_user="jabley"
set folder={maggie.automagic.org}INBOX
set spoolfile={maggie.automagic.org}INBOX
mailboxes {maggie.automagic.org}INBOX

# multiple personality disorder
set 
alternates="jabley@(tsnz.net|patho.gen.nz|automagic.org|quicksilver.co.nz|2day.com)"

folder-hook . my_hdr "fcc: {maggie.automagic.org}INBOX.out.general"
folder-hook . my_hdr "From: Joe Abley [EMAIL PROTECTED]"

folder-hook in.netlink my_hdr "fcc: {maggie.automagic.org}INBOX.out.netlink"
folder-hook in.netlink my_hdr "From: Joe Abley [EMAIL PROTECTED]"

folder-hook in.qsi my_hdr "fcc: {maggie.automagic.org}INBOX.out.qsi"
folder-hook in.qsi my_hdr "From: Joe Abley [EMAIL PROTECTED]"

folder-hook in.2day my_hdr "fcc: {maggie.automagic.org}INBOX.out.2day"
folder-hook in.2day my_hdr "From: Joe Abley [EMAIL PROTECTED]"

# aliases
set alias_file="~/.mutt-aliases"
source "~/.mutt-aliases"




Re: attachments when using IMAP

2000-07-14 Thread Ben Beuchler

On Sat, Jul 15, 2000 at 01:27:21AM +1200, Joe Abley wrote:

 I have folder and spooldir set to an IMAP-type path, since I don't keep
 any mail locally. This works very nicely (mmm, 1.2.4i good) except that
 if I try to add a local attachment to a message I'm composing, mutt
 looks for the file on the IMAP server rather than looking on the local
 filesystem.

Yeah.  That's expected behavior.  If you specify an absolute path, it
looks for it locally.  Ie: ~/downloads/mutt.5.0.tgz will grab it from
you local system rather than the remote server.

Ben

-- 
Ben Beuchler [EMAIL PROTECTED]
Hostmaster/Postmaster (612)-321-9290 x101
Bitstream Underground   www.bitstream.net



Re: attachments when using IMAP

2000-07-14 Thread Kai Blin

On Sat, Jul 15, 2000 at 01:27:21AM +1200, Joe Abley wrote:
 I have folder and spooldir set to an IMAP-type path, since I don't keep
 any mail locally. This works very nicely (mmm, 1.2.4i good) except that
 if I try to add a local attachment to a message I'm composing, mutt
 looks for the file on the IMAP server rather than looking on the local
 filesystem.

Mine isn't. See later.
 
 # imap
 set imap_user="jabley"
 set folder={maggie.automagic.org}INBOX

Mine's set folder = ~/Mail

 set spoolfile={maggie.automagic.org}INBOX
 mailboxes {maggie.automagic.org}INBOX

Since I'm using IMAP, too, this doesn't seem to pose a problem. Of course I
don't store my mail on the server where I have a quota. :)
Perhaps you could change your $folder variable if you want to send an
attachment.
 
 # multiple personality disorder
 set 
alternates="jabley@(tsnz.net|patho.gen.nz|automagic.org|quicksilver.co.nz|2day.com)"

:) sounds familiar

Kai

-- 
x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x
Kai Blin(mailto:[EMAIL PROTECTED])  Webmaster
Inst. of Human Genetics Dept. of Molecular Genetics
Wilhelmstr 27   phone (49)7071-2974890
D 72074 Tuebingen, Germany  fax   (49)7071-295233
http://www.uni-tuebingen.de/uni/thm/molgen/molgen.html

Do molecular biologists wear designer genes?
x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x




Re: attachments when using IMAP

2000-07-14 Thread Joe Abley

On Fri, Jul 14, 2000 at 05:17:21PM +0200, Kai Blin wrote:
 On Sat, Jul 15, 2000 at 01:27:21AM +1200, Joe Abley wrote:
  I have folder and spooldir set to an IMAP-type path, since I don't keep
  any mail locally. This works very nicely (mmm, 1.2.4i good) except that
  if I try to add a local attachment to a message I'm composing, mutt
  looks for the file on the IMAP server rather than looking on the local
  filesystem.
 
 Mine isn't. See later.
  
  # imap
  set imap_user="jabley"
  set folder={maggie.automagic.org}INBOX
 
 Mine's set folder = ~/Mail
 
  set spoolfile={maggie.automagic.org}INBOX
  mailboxes {maggie.automagic.org}INBOX
 
 Since I'm using IMAP, too, this doesn't seem to pose a problem. Of course I
 don't store my mail on the server where I have a quota. :)

I never keep mail locally. I read mail from the imap server from about
a hundred different places, and I need to keep everything central.
Anything stored locally is effectively lost :)

 Perhaps you could change your $folder variable if you want to send an
 attachment.

Aaah, I see. So here's the thing:

1. I want folder={maggie.automagic.org}INBOX when I do a "c" to change
   folders;

2. I want folder=~ when I do an "a" to add an attachment to a message.

I had a brief moment of clarity and tried this:

macro index c ":set folder={maggie.automagic.org}INBOX^M:change-folder^M"
macro index escc ":set folder={maggie.automagic.org}INBOX^M:change-folder-readonly^M"
macro compose a ":set folder=~^M:attach-file"

but it doesn't seem to work (:change-folder isn't something that mutt
seems to understand). Anybody give me a hand?

Thanks :)


Joe



Re: attachments when using IMAP

2000-07-14 Thread Joe Abley

On Sat, Jul 15, 2000 at 08:41:12AM +1200, Joe Abley wrote:
 Aaah, I see. So here's the thing:
 
 1. I want folder={maggie.automagic.org}INBOX when I do a "c" to change
folders;
 
 2. I want folder=~ when I do an "a" to add an attachment to a message.
 
 I had a brief moment of clarity and tried this:
 
 macro index c ":set folder={maggie.automagic.org}INBOX^M:change-folder^M"
 macro index escc ":set 
folder={maggie.automagic.org}INBOX^M:change-folder-readonly^M"
 macro compose a ":set folder=~^M:attach-file"
 
 but it doesn't seem to work (:change-folder isn't something that mutt
 seems to understand). Anybody give me a hand?

I read the manual a bit more and did this instead, which is at least
understood:

  # change folder according to whether I'm browsing folders or files
  macro index c ":set folder={maggie.automagic.org}INBOX\nchange-folder"
  macro index escc ":set 
folder={maggie.automagic.org}INBOX\nchange-folder-readonly"
  macro compose a ":set folder=~\nattach-file"

This doesn't seem to make any difference to the use of "a?" in the
compose menu, though -- I still get presented with a list of IMAP
folders.

Sorry about the noise. It's just that this is the only thing stopping
me discarding the bloated walrus of pine, so I'm keen to get it working.


Joe



Re: Attachments when using IMAP

2000-03-23 Thread Thomas Roessler

Sounds like a problem with the browser...  However, typing
in a local directory and pressing tab twice should help.

On 2000-03-23 01:21:01 -0600, Ben Beuchler wrote:

 I use mutt 1.1.9i at work to connect via IMAP to a
 server at home.  If I attempt to attach a file, it only
 finds files on the IMAP server instead of in my home
 directory on the machine from which I am running mutt.
 So, I usually end up scp-ing the file over to my mail
 server and attaching it to the message from there.

 Did I screw something up or did I find a bug?

-- 
http://www.guug.de/~roessler/





Re: Attachments when using IMAP

2000-03-23 Thread Brendan Cully

You should be able to get into your local home directory by starting
your attachment name with "~/". This is what I regularly
do. I think this happens when you set $folder to a remote path - we
don't currently have split remote/local current directories, just
"current directory".

Maybe we should just start out in local cwd (I hadn't worried about
it). In that case we probably just need a minor tweak in
mutt_enter_string or mutt_complete - I can take a look...

On Thursday, 23 March 2000 at 10:47, Thomas Roessler wrote:
 Sounds like a problem with the browser...  However, typing
 in a local directory and pressing tab twice should help.
 
 On 2000-03-23 01:21:01 -0600, Ben Beuchler wrote:
 
  I use mutt 1.1.9i at work to connect via IMAP to a
  server at home.  If I attempt to attach a file, it only
  finds files on the IMAP server instead of in my home
  directory on the machine from which I am running mutt.
  So, I usually end up scp-ing the file over to my mail
  server and attaching it to the message from there.
 
  Did I screw something up or did I find a bug?
 
 -- 
 http://www.guug.de/~roessler/
 

 PGP signature


Attachments when using IMAP

2000-03-22 Thread Ben Beuchler

I use mutt 1.1.9i at work to connect via IMAP to a server at home.  If I
attempt to attach a file, it only finds files on the IMAP server instead
of in my home directory on the machine from which I am running mutt.  So,
I usually end up scp-ing the file over to my mail server and attaching it
to the message from there.

Did I screw something up or did I find a bug?

Thanks,
Ben

-- 
"There is no spoon"
-- The Matrix