Re: [VM] VM is awesome (was vm-save-buffer) (Hugo Geir)

2015-11-18 Thread Uday Reddy
Robert P. Goldman writes:

> Is there any way to have VM open multiple inboxes upon startup?  E.g., I
> have a work IMAP account and a personal IMAP account.  Can I have VM
> start up with both of them open, ideally in different tabs?

You can define little elisp functions to do whatever you want. Here is a
sample function that I use to open the vmrocks account (via a virtual folder
that includes both its INBOX and Sent folders):

(defun vmrocks ()
  (interactive)
  (vm-visit-virtual-folder "vmrocks")
  (vm-get-new-mail))

or you could use more simply

(defun vmrocks ()
  (interactive)
  (vm-visit-imap-folder-other-frame
"imap-ssl:imap.gmail.com:993:INBOX:login:usr.vm.rocks:*")
  )

You can try doing it with multiple visits and see if it works. 

Cheers,
Uday



Re: [VM] VM is awesome (was vm-save-buffer) (Hugo Geir)

2015-11-18 Thread kh

Uday Reddy   wrote:

>> >You can set `vm-imap-max-message-size' to 0 to avoid loading message bodies.
>> 
>> So, what, VM still keeps a local disk copy of the folder but puts only
>> headers in it?  Which would mean that variable is the maximum size of
>> the body, not the whole message?
>
>Indeed. The headers are needed to generaty the summary. So they are always
>loaded.
>
>It would be possible to keep only selected header fields necessary for the
>summary and refetch the others as needed. But that would need some delicate
>programming that I didn't have the stomach for.

Sure, saving partial headers would be a lot of trouble for almost no
gain.  The win -- in some cases -- would be not to use disk at all.


Re: [VM] VM is awesome (was vm-save-buffer) (Hugo Geir)

2015-11-16 Thread Uday Reddy
Kurt Hackenberg writes:

> >You can set `vm-imap-max-message-size' to 0 to avoid loading message bodies.
> 
> So, what, VM still keeps a local disk copy of the folder but puts only
> headers in it?  Which would mean that variable is the maximum size of
> the body, not the whole message?

Indeed. The headers are needed to generaty the summary. So they are always
loaded.

It would be possible to keep only selected header fields necessary for the
summary and refetch the others as needed. But that would need some delicate
programming that I didn't have the stomach for.

Cheers,
Uday





Re: [VM] VM is awesome (was vm-save-buffer) (Hugo Geir)

2015-11-16 Thread Uday Reddy
Kurt Hackenberg writes:

> >You can set `vm-imap-max-message-size' to 0 to avoid loading message bodies.
> 
> So, what, VM still keeps a local disk copy of the folder but puts only
> headers in it?  Which would mean that variable is the maximum size of
> the body, not the whole message?

Indeed. The headers are needed to generaty the summary. So they are always
loaded.

It would be possible to keep only selected header fields necessary for the
summary and refetch the others as needed. But that would need some delicate
programming that I didn't have the stomach for.

Cheers,
Uday




Re: [VM] VM is awesome (was vm-save-buffer) (Hugo Geir)

2015-11-13 Thread Kurt Hackenberg

Uday Reddy   wrote:

>> It might be good to have a second IMAP client, or an option to the
>> existing one, that doesn't keep a local copy of the IMAP folder.  Of
>> course, it should use IMAP's ability to fetch only message headers,
>> without bodies, to generate the summary.  I think it would only have
>> to fetch one message body at a time, when the user looks at it.  It
>> could cache, in memory, about the last three or so messages.
>
>You can set `vm-imap-max-message-size' to 0 to avoid loading message bodies.

So, what, VM still keeps a local disk copy of the folder but puts only
headers in it?  Which would mean that variable is the maximum size of
the body, not the whole message?


Re: [VM] VM is awesome (was vm-save-buffer) (Hugo Geir)

2015-11-13 Thread Uday Reddy
Robert P. Goldman writes:

> I moved to Thunderbird when VM's IMAP interface was very limited.
> 
> I'd like to come back to VM, but have felt like I could not because
> AFAICT it doesn't support my current mode of operation, which involves
> simultaneously keeping open two IMAP inboxes for two different accounts.

This was never a serious problem really. The only reason it wasn't easy to
do earlier was that the VM buffers were named after the IMAP folder name. It
would still be tricky to visit multiple folders with the same name. But for
INBOX, I now name the VM buffers by the IMAP account name. So it works fine.

Please try the version 8.2.0b from the Launchpad site.

Cheers,
Uday



Re: [VM] VM is awesome (was vm-save-buffer) (Hugo Geir)

2015-11-13 Thread Robert P. Goldman
On 11/13/15 Nov 13 -8:51 AM, Uday Reddy wrote:
> Robert P. Goldman writes:
> 
>> I moved to Thunderbird when VM's IMAP interface was very limited.
>>
>> I'd like to come back to VM, but have felt like I could not because
>> AFAICT it doesn't support my current mode of operation, which involves
>> simultaneously keeping open two IMAP inboxes for two different accounts.
> 
> This was never a serious problem really. The only reason it wasn't easy to
> do earlier was that the VM buffers were named after the IMAP folder name. It
> would still be tricky to visit multiple folders with the same name. But for
> INBOX, I now name the VM buffers by the IMAP account name. So it works fine.
> 
> Please try the version 8.2.0b from the Launchpad site.
> 
> Cheers,
> Uday
> 

Thank you so much!  I will try again this afternoon. I'm very excited to
try this again!  And I appreciate your taking the time to respond.

Best,
Robert




Re: [VM] VM is awesome (was vm-save-buffer) (Hugo Geir)

2015-11-08 Thread Kurt Hackenberg

Robert P. Goldman  wrote:

>I used to use VM and really liked it (even submitted some patches back
>in the day).
>
>I had to switch to Thunderbird because I am a heavy IMAP user.  I use
>IMAP so that I can read my email, including old filed emails, on
>multiple devices.

Everybody uses multiple computers and IMAP, don't they?  (I don't, but
that's another story.)

I've used VM for about 15 years, and generally like it.  VM strikes me
as a programmer's mail reader: powerful, flexible, extensible.
Threading, virtual folders, many folders, folders anywhere in the
filesystem, recursive display of digests  The obvious weakness is
displaying various MIME data types, since text editors don't do that.
(Emacs can display some images, but that's limited.)  There also seem
to be capacity limits.

It might be good to have a second IMAP client, or an option to the
existing one, that doesn't keep a local copy of the IMAP folder.  Of
course, it should use IMAP's ability to fetch only message headers,
without bodies, to generate the summary.  I think it would only have
to fetch one message body at a time, when the user looks at it.  It
could cache, in memory, about the last three or so messages.

Of course a local disk copy of the folder is necessary when the
network connection is intermittent, unreliable, or slow -- but that's
not always the case.  For example:

The usual corporate setup, where the IMAP server is down the hall,
across a gigabit Ethernet.  For a folder of 1000 messages, with each
message header being, oh, a couple of KB, fetching all the folder's
message headers to generate the summary would take...(mumble
mumble)...roughly a tenth of a second.  That seems plenty fast.

Even with my home setup, connected to the world at 25 mbps, that same
fetch of headers should take just a few seconds.

Another case: when the IMAP client and server are on the same
computer.  Why would you do that?  To avoid incompatibility.  Each
mail reader has its own representation of message attributes (read,
saved, forwarded, etc.), all incompatible.  But IMAP represents those
in a common form.  That way you could use more than one mail reader on
the same folder, and they'd all understand each other.  IMAP servers
handle concurrent access, too.  Obviously when the client and server
are on the same computer, making another copy of the folder is
pointless.


[VM] VM is awesome (was vm-save-buffer) (Hugo Geir)

2015-11-07 Thread Robert P. Goldman
I used to use VM and really liked it (even submitted some patches back
in the day).

I had to switch to Thunderbird because I am a heavy IMAP user.  I use
IMAP so that I can read my email, including old filed emails, on
multiple devices.

I moved to Thunderbird when VM's IMAP interface was very limited.

I'd like to come back to VM, but have felt like I could not because
AFAICT it doesn't support my current mode of operation, which involves
simultaneously keeping open two IMAP inboxes for two different accounts.

When I tried to use VM again, it seemed like I couldn't effectively keep
two IMAP servers open simultaneously, so I gave up.  Was I wrong about
that, or is it feasible?  I'd love to come back to the fold, if possible.

By the way, for readers trying alternatives, I should mention that I
experimented with mutt, but gave up on that, as well.  Moving between
folders and servers in mutt is *EXTREMELY* clunky.  Also, interacting
with large numbers of folders seemed very bad: (1) it involved a lot of
hacking of configuration files (2) the interactions to switch folders
were very clunky and (3) mutt didn't seem to be able to handle
displaying a large number of folders and letting you jump to them
interactively.