Re: [Evolution-hackers] Can Camel/Evo allow on demand downloads for attachments?

2002-05-15 Thread Shawn Walker

Jeff,

Thanks for the pointer.

It would have been a lot easier to have a HOWTO documents that explains how to write a 
plugin for evolution.  Reading the code isn't the best way to figure out what to do 
because you have to look at all the source code just to try to find something to do 
and that can be very time consuming.

Shawn

On 5/15/2002 at 12:42 AM Jeffrey Stedfast wrote:

Re-read the IMAP code. You'll find that it does NOT download all parts,
it gets a BODY (very similar to a BODYSTRUCTURE) and constructs empty
parts based on that. When the mailer requests the contents of a MIME
part, if that part's contents are 'offline' it goes out and fetches
them.

Please see camel-data-wrapper.c:camel_data_wrapper_is_offline()

Jeff

On Wed, 2002-05-15 at 00:22, Shawn Walker wrote:
 Hrmm? I don't recall seeing in the IMAP provider code to only download
the mime parts until a user click on the icon in the message window to
either save/view the attachment.  From what I could see is that when
imap_get_message(), it downloads all the mime parts and return them to
camel.
 
 So, it sounds like from what your saying is that Camel can call back
into your provider to get a specific mime part.  What callback are those?
 
 On 5/15/2002 at 12:08 PM Not Zed wrote:
 
 Its upto the provider.  IMAP does this.
 
 On Wed, 2002-05-15 at 11:57, Shawn Walker wrote:
  Is there a way to have the camel/evolution to call into the provider
 plugin to get a attachment to download from the server instead of having
 the provider download all the attachments in get_message() callback?
  
  
  
  ___
  evolution-hackers maillist  -  [EMAIL PROTECTED]
  http://lists.ximian.com/mailman/listinfo/evolution-hackers
 
 
 
 
 ___
 evolution-hackers maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/evolution-hackers





___
evolution-hackers maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution-hackers



Re: [Evolution-hackers] Can Camel/Evo allow on demand downloads for attachments?

2002-05-14 Thread Shawn Walker

Hrmm? I don't recall seeing in the IMAP provider code to only download the mime parts 
until a user click on the icon in the message window to either save/view the 
attachment.  From what I could see is that when imap_get_message(), it downloads all 
the mime parts and return them to camel.

So, it sounds like from what your saying is that Camel can call back into your 
provider to get a specific mime part.  What callback are those?

On 5/15/2002 at 12:08 PM Not Zed wrote:

Its upto the provider.  IMAP does this.

On Wed, 2002-05-15 at 11:57, Shawn Walker wrote:
 Is there a way to have the camel/evolution to call into the provider
plugin to get a attachment to download from the server instead of having
the provider download all the attachments in get_message() callback?
 
 
 
 ___
 evolution-hackers maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/evolution-hackers




___
evolution-hackers maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution-hackers



Re: [Evolution-hackers] How To Create a Camel Mime/Content Info?

2002-05-11 Thread Shawn Walker

I'm trying to use the header that I already have and it's being stored into the camel. 
 Whenever somebody click on a message then I retrieve the body.  The body is being 
displayed but no header is in the preview pane.

On 5/11/2002 at 5:25 PM Not Zed wrote:

you just build the message from the raw stream.

nntp and pop dont do anything special, only imap does because of being
able to retrieve parts individually.

On Sat, 2002-05-11 at 13:36, Shawn Walker wrote:
 I have been trying to figure out how to get Camel to display the header
of the message but I haven't been able to see what I need to call to
either give the header to camel or is there something that I have to do. 
I do see that Camel is parsing the header of the message.  All I see in
the header is Subject but, it's blank and the Date, but it's the wrong
date.
 
 When I look at the source that is under camel/providers it seems like
that you are letting the Camel take care of the dirty work (well, except
imap and nntp).  But for imap, it's actually parsing the attachments and
setting up build a CamelMessageContentInfo.
 
 I already have the summary being displayed and the message being show in
the preview pane. Bug, I'm stumped on what I need to do to get the header
to display.
 
 
 ___
 evolution-hackers maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/evolution-hackers




___
evolution-hackers maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution-hackers



Re: [Evolution] Bynari's InsightConnector

2002-05-06 Thread Shawn Walker

On Mon, 2002-05-06 at 10:24, Martin-Éric Racine wrote:
 On 6 May 2002, Brian wrote:
 
  What's the deal with this Evolution plug-in (that appears to be a competing
  product for Ximian Connector) that Bynari is getting ready to release?  
  
  http://linuxtoday.com/news_story.php3?ltsn=2002-05-06-003-26-PR-SV-SW
 
 This is yet another one of Bynari's product that approaches similar problem from
 an opposite angle to Ximian's solutions.
 
 Bynari InsightConnector brings MS Outlook users closer to Linux servers, while
 Ximian Connector brings Evolution closer to MS Exchange.  Two sides of the same
 coin.  That new Bynari plug-in for Evolution aims at interfacing to Bynari's own
 flavor of groupware+mail server, Bynari InsightServer.
 
 -- 
 Martin-Éric Racine, Helsinki, Finland.
 http://www.pp.fishpool.fi/~q-funk/
 +358 41 474 0289
 
 
 
 
 
 
 ___
 evolution maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/evolution



___
evolution maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution



Re: [Evolution-hackers] Calling construct() multiply times?

2002-05-02 Thread Shawn Walker

Figured out why I kept getting called back into the construct() callback whenever I 
select a folder.  In the connect() callback, I checked to see if service-url-port is 
0, if so, set it to the port to the default port number.  I did this because I wanted 
to know what the port number whereever I'm at in the code.  That port number is 
messing it up and I haven't figured out what Camel is doing but I just #ifdef the 
code out for now and hard coded all the port number to what I need to use.

On 5/2/2002 at 10:32 AM Not Zed wrote:

It would probably be easy to point out the problems if you gave us a
pointer to the source, like we do. :)


On Thu, 2002-05-02 at 05:12, Dan Winship wrote:
 On Wed, 2002-05-01 at 13:02, Shawn Walker wrote:
  I constructed my base_url as:
  
  provider://username@server/
  
  In get_folder_info_online() I created a URL for each folder as:
  
  provider://username@server/folder1
  
  That URL is being created by camel_url_to_string().
  
  In hash_folder_name(), I get:
  
  provider://username@server/folder1;noselect=yes
 
 So you want to make sure that your hash and equals functions don't
 consider the path to be part of the URL.
 
  but, I don't get ;noselect=yes for all the folders, just some (I
  haven't looked into what ;noselect=yes means).
 
 It means evolution-mail thinks the folder is not selectable, which has
 to do with what fields you did and didn't fill in in the CamelFolderInfo
 in get_folder_info.
 
 -- Dan
 
 
 ___
 evolution-hackers maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/evolution-hackers




___
evolution-hackers maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution-hackers



[Evolution-hackers] Calling construct() multiply times?

2002-05-01 Thread Shawn Walker

Why is Camel keep calling my construct() routine multiple times?  I have the callback 
setup to call into my connect() function and I do my own connection, return TRUE. 
Camel then calls my get_folder_info() and I return the folder tree.  I select a folder 
that I want to show the messages, Camel then calls my construct() and connect() again 
when I already have a connection.  What do I need to tell Camel since I don't need 
another connection, I already have it.

Note, I'm not using any of Camel connection calls to establish the connection to the 
server, I'm doing it.


___
evolution-hackers maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution-hackers



Re: [Evolution-hackers] Calling construct() multiply times?

2002-05-01 Thread Shawn Walker

I constructed my base_url as:

provider://username@server/

In get_folder_info_online() I created a URL for each folder as:

provider://username@server/folder1

That URL is being created by camel_url_to_string().

In hash_folder_name(), I get:

provider://username@server/folder1;noselect=yes

but, I don't get ;noselect=yes for all the folders, just some (I haven't looked into 
what ;noselect=yes means).

I'm not including any port number for the URL.

I should also mention that when I get called into my construct() the first time, the 
path is set to /, but when I click on a folder and it called construct(), the path 
is now /folder1.

On 5/1/2002 at 10:53 AM Dan Winship wrote:

On Wed, 2002-05-01 at 09:28, Shawn Walker wrote:
 Why is Camel keep calling my construct() routine multiple times?  I
 have the callback setup to call into my connect() function and I do
 my own connection, return TRUE. Camel then calls my
 get_folder_info() and I return the folder tree.  I select a folder
 that I want to show the messages, Camel then calls my construct()
 and connect() again when I already have a connection.

Most likely, the URLs you're returning from get_folder_info do not
compare as equal to the URL that was used to build the folder tree, and
so it's creating a new store object.

Eg, if the URL you configured in the config dialog is
foobar://server:999, and get_folder_info returns
foobar://server/folder1, foobar://server/folder2, etc, and your url
hash and compare functions look at the port number, then it would create
a new store foobar://server to fetch the folders from. Likewise with
the other URL components.

-- Dan


___
evolution-hackers maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution-hackers



___
evolution-hackers maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution-hackers



Re: [Evolution-hackers] Sharing mailboxes with windows

2002-04-24 Thread Shawn Walker

That won't help if the ISP only is using POP3 and they don't allow you to store your 
messages on the server for x amount days so you have to get them off.  Of course, that 
solution should be that you create your own IMAP server that fetch the mail off the 
POP3 server but how many normal users would want to spend the time and effort to do 
that?

On 4/24/2002 at 9:40 AM Cody Russell wrote:

Can't you just use IMAP or something, and store messages on the server? 

On Wed, 2002-04-24 at 02:40, Matts wrote:
 Many Linux users are Dual booters, they sometime use windows and
sometimes Linux. One problem with this is that the mail you have fetched
in windows is not available in Linux and vice versa.
 
 One solution to this is to create a utility that evolution calls upon
start and exit. On start to fetch all new items in windows
(outlook/outlook express) mailbox and insert them into proper places in
evolutions mailbox, and on exit to copy all new items in evolutions
mailbox to windows.
 
 If this is not possible, another solution is to do a windows port of
evolution. This would make it possible to have the evolution on the Linux
partition to use the mailbox of the evolution on the windows partition and
the problem is solved nicely.
 
 How hard is it to do such port ? I understand thatn Gnome2.0 shall be
multi platform. Will that make porting linux programs like evolution
easier ?
 There are already ports of gnumeric and the gimp.




___
evolution-hackers maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution-hackers




___
evolution-hackers maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution-hackers



Re: [Evolution-hackers] How to Write a Camel Provider/Store

2002-04-23 Thread Shawn Walker

GPL? Then why didn't Ximian GPL-ed the Exchange module then?

So much for me coming up with a module that I wanted to do.

On 4/24/2002 at 9:37 AM Not Zed wrote:

Simplest example is probably NNTP, its the newest (cleanest?) code,
although it isn't complete yet.

Remember they have to be mt-safe, and GPL of course.  Much of the
functionality is inherited from the base classes, so a minimal
implementation can be quite small.


On Wed, 2002-04-24 at 03:33, Jeffrey Stedfast wrote:
 The documentation is kinda lacking, but there are lots of examples, just
 look at evolution/camel/providers/*
 
 Jeff
 
 On Tue, 2002-04-23 at 09:35, Shawn Walker wrote:
  How do I write a Camel Provider/Store?  Is there any documentations
and samples?
  
  Thanks!
  
  
  ___
  evolution-hackers maillist  -  [EMAIL PROTECTED]
  http://lists.ximian.com/mailman/listinfo/evolution-hackers
  
 -- 
 Jeffrey Stedfast
 Evolution Hacker - Ximian, Inc.
 [EMAIL PROTECTED]  - www.ximian.com
 
 
 ___
 evolution-hackers maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/evolution-hackers




___
evolution-hackers maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution-hackers



Re: [Evolution-hackers] How to Write a Camel Provider/Store

2002-04-23 Thread Shawn Walker

Why should I give my ideas away?

On 4/24/2002 at 10:34 AM Not Zed wrote:

On Wed, 2002-04-24 at 11:26, Shawn Walker wrote:
 GPL? Then why didn't Ximian GPL-ed the Exchange module then?

As jeff said.

 So much for me coming up with a module that I wanted to do.

Why, what was it?


 On 4/24/2002 at 9:37 AM Not Zed wrote:
 
 Simplest example is probably NNTP, its the newest (cleanest?) code,
 although it isn't complete yet.
 
 Remember they have to be mt-safe, and GPL of course.  Much of the
 functionality is inherited from the base classes, so a minimal
 implementation can be quite small.
 
 
 On Wed, 2002-04-24 at 03:33, Jeffrey Stedfast wrote:
  The documentation is kinda lacking, but there are lots of examples,
just
  look at evolution/camel/providers/*
  
  Jeff
  
  On Tue, 2002-04-23 at 09:35, Shawn Walker wrote:
   How do I write a Camel Provider/Store?  Is there any documentations
 and samples?
   
   Thanks!
   
   
   ___
   evolution-hackers maillist  -  [EMAIL PROTECTED]
   http://lists.ximian.com/mailman/listinfo/evolution-hackers
   
  -- 
  Jeffrey Stedfast
  Evolution Hacker - Ximian, Inc.
  [EMAIL PROTECTED]  - www.ximian.com
  
  
  ___
  evolution-hackers maillist  -  [EMAIL PROTECTED]
  http://lists.ximian.com/mailman/listinfo/evolution-hackers
 
 
 
 
 ___
 evolution-hackers maillist  -  [EMAIL PROTECTED]
 http://lists.ximian.com/mailman/listinfo/evolution-hackers




___
evolution-hackers maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/evolution-hackers