Subject: [sup-talk] Sup with Microsoft Exchange 2007

From: [email-masked] (Bryan Richardson)
Date: Mon, 20 Apr 2009 15:52:24 -0600

BUMP!!!

So... no one uses Sup with Microsoft Exchange?!  :(

--
Bryan

On 4/14/09, Bryan Richardson <btricha at gmail.com> wrote:
> Hello all,
>
> Has anyone had success using Sup with Microsoft Exchange 2007?  I'm able to
> download email no problem, and I'm also able to send email through my
> exchange server.  However, my problem lies in the fact that when I send an
> email from Sup, it doesn't show up in the Sent Items folder of my exchange
> account.  I'm not that familiar with IMAP, but I'm guessing this is maybe
> due to the fact that I haven't subscribed to the Sent Items folder in Sup.
> In response to this, another hurdle I'm trying to get over is how to even
> tell what folders are available on my exchange account for subscribing to.
> Is there a way to use Sup to query for available folders?
>
> Thanks in advance!
>
> --
> Bryan
>

---

From: [email-masked] (Mark Alexander)
Date: Mon, 20 Apr 2009 15:54:57 -0700

> So... no one uses Sup with Microsoft Exchange?!  :(

Unfortunately, we use Exchange at work.  But I hide that unpleasant
fact from myself by using fetchmail and postfix on a Linux box.  I
have never used Outlook or the web interface that Exchange provides.
Instead, I've always used mutt -- and more recently, sup.  So I have
no idea if I'm having the same problem you are.  Sorry!

---

From: [email-masked] (William Morgan)
Date: Tue, 21 Apr 2009 06:02:35 -0700

Hi Bryan,

Reformatted excerpts from Bryan Richardson's message of 2009-04-20:
> Is it possible to specify where my sent mail gets saved?  I'd like to
> be able to specify that it gets saved in one of my IMAP folders ('Sent
> Items' in my Microsoft Exchange account).  This way, if for some
> reason I do ever have to access my mail via Microsoft Exchange Web
> Access, I'll still have access to all my sent emails.

This is currently not possible with Sup, which as a rule doesn't play
nicely with other mail clients. It wouldn't be terribly hard to add if
you were so inclined (we have an IMAP library in there already) and I'd
be happy to point you in the right direction, but it's not on my
near-term list of things to do.
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Andrew Pimlott)
Date: Tue, 21 Apr 2009 06:48:39 -0700

On Tue, Apr 21, 2009 at 07:42:42AM -0600, Bryan Richardson wrote:
> One question I do have though is why my sent messages get saved to my 'Sent
> Mail' folder on my GMail account automatically (without the patch I
> mentioned above) when I use Sup with GMail...

GMail's SMTP server does this.

Andrew

---

From: [email-masked] (William Morgan)
Date: Tue, 21 Apr 2009 07:13:48 -0700

Reformatted excerpts from Bryan Richardson's message of 2009-04-21:
> First off, I want to say 'Thank You' for creating such a great
> application here.  Text-based is the way to go! :)

Glad you like it!

> As for saving sent mail in an IMAP folder, I did find a patch that I
> was able to use to provide me with this functionality.

Interesting. Would you mind reposting it here, if you get a chance? 

> One question I do have though is why my sent messages get saved to my
> 'Sent Mail' folder on my GMail account automatically (without the
> patch I mentioned above) when I use Sup with GMail...

As someone else pointed out, this is because GMail's MTA is clever.

> As a side note, does Sup have any sort of plugin architecture?  I'm
> thinking of maybe developing a text-based calendar app in Ruby at some
> point... :)

It doesn't have plugins per se. It has a pretty good hook system, but
that's probably not useful to you. What are you interested in using? The
ncurses interface? The full-text search index?
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Ben Walton)
Date: Tue, 21 Apr 2009 10:37:25 -0400

I abandoned that patch for my own use after a while.  [I moved my .sup
to local storage from nfs and now use the mbox sent folder.]  I still
like the idea, but that patch would need much work before it became
integration worthy.  If there is sufficient interest, I'd invest the
time.

William, what requirements would need to be met from your side to see
this added?

Thanks
-Ben

On Tue, Apr 21, 2009 at 10:32 AM, Bryan Richardson <btricha at gmail.com> wrote:
> The patch for what the author (Ben Walton) calls 'Flexible Sent Source' can
> be found at the following URL.? It would be nice to have this integrated
> into the official Sup source code... :)
>
> http://www.nabble.com/-PATCH--flexible-sent-source-td16960901.html#a16960901
>
> One more question: I noticed when I use Sup with my Exchange account that it
> marks all my messages on the Exchange server as read when it syncs.? Is this
> normal?
>
> On Tue, Apr 21, 2009 at 8:29 AM, Bryan Richardson <btricha at gmail.com> wrote:
>>
>> Yeah, I'll find the patch and post it here.
>>
>> As for the calendaring app, I figured having it integrated with Sup might
>> be kinda cool.? The search index might help too. :)
>>
>> On Tue, Apr 21, 2009 at 8:13 AM, William Morgan <wmorgan-sup at masanjin.net>
>> wrote:
>>>
>>> > application here. ?Text-based is the way to go! :)
>>>
>>> Glad you like it!
>>>
>>> > As a side note, does Sup have any sort of plugin architecture? ?I'm
>>> _______________________________________________
>>> sup-talk mailing list
>>> sup-talk at rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/sup-talk
>>
>
>
> _______________________________________________
> sup-talk mailing list
> sup-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/sup-talk
>
>

-- 
---------------------------------------------------------------------------------------------------------------------------
Ben Walton <bdwalton at gmail.com>

"With or without religion, good people can behave well and bad people
can do evil; but for good people to do evil?that takes religion. "
-Steven Weinberg
---------------------------------------------------------------------------------------------------------------------------

---

From: [email-masked] (William Morgan)
Date: Wed, 29 Apr 2009 15:45:29 -0700

> William, what requirements would need to be met from your side to see

As far as I'm concerned, if it works, I'll add it. I'd love to have this
functionality in Sup, and it is frequently requested.
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Ben Walton)
Date: Thu, 30 Apr 2009 10:07:57 -0400

On Wed, Apr 29, 2009 at 6:45 PM, William Morgan
> functionality in Sup, and it is frequently requested.

Ok.  I started cleaning up the original patch last night.  I think it
was decent for the most part.  The bad parts were the integration into
sup-config.  I'll have something ready in a day or two, hopefully.

Since I'm back into mucking with this bit, are you open to having the
maildir scanning code move messages from new/ to cur/?  This could
help with the unique id vs directory scanning issue.

-Ben

---

From: [email-masked] (William Morgan)
Date: Mon, 04 May 2009 05:59:49 -0700

> help with the unique id vs directory scanning issue.

Would it really help? I'd be willing if so, but I don't see how. Maybe
I'm missing something.

I've avoided moving new/ to cur/ because I didn't see any benefit to
Sup, and it conflicts with the hands-off philosophy, so it just seemed
like one more thing we could screw up. But if there is a real reason to
do it, I'd probably be willing.
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Ben Walton)
Date: Mon, 4 May 2009 09:41:17 -0400

> Would it really help? I'd be willing if so, but I don't see how. Maybe

Scan both folders (cur/, new/) on startup or sup-sync.  After that,
scan only new.  Since mail is moved out of new/ into cur/ after
detection, the time stamp stuff could be dropped since it would be
redundant anyway.  I think I'd confused myself about the id generation
issue, so it wouldn't likely be of benefit there.

> do it, I'd probably be willing.

Sup would be a better Maildir citizen, since this is the intended way
to access/use a maildir source.

-Ben

---

From: [email-masked] (William Morgan)
Date: Mon, 04 May 2009 09:22:45 -0700

Reformatted excerpts from Ben Walton's message of 2009-05-04:
> redundant anyway.

Crap, I think you're right. Polling will be trivial and no more messing
around with timestamps.

In fact I don't even have to scan cur/ on startup; I can just assume
it's unchanged. If you screw with the Maildir via another MUA you have
to run sup-sync --changed, just like with every other source.

For this to work, the "offset" for each message will have to be its
filename. I wonder how many implicit assumptions that will violate.
-- 
William <wmorgan-sup at masanjin.net>