Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Thunderbird attachments information from message header
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Teemu Hautala  
View profile  
 More options Apr 14 2009, 4:54 pm
Newsgroups: mozilla.dev.extensions
From: Teemu Hautala <teemu.haut...@gmail.com>
Date: Tue, 14 Apr 2009 23:54:39 +0300
Local: Tues, Apr 14 2009 4:54 pm
Subject: Thunderbird attachments information from message header
Hi,

I see that this has been asked bunch of times here already, but couldn't
find an answer to the problem as of yet.

Simply put, I need to get information if an arriving message has
attachments without selecting it through the UI, and then get some basic
info about the attached file. I have the message header through the
nsIFolderListener and already do bunch of stuff with it.. but there is
no information about possible attachments in it yet. Only a method for
marking that the message has an attachment.

nsIMsgAttachment seems to be for message composing, as previously mentioned.

Is there really no way to do this other than through UI? I noticed that
there isn't even a filter option that lets you parse for attachments.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Teemu Hautala  
View profile  
 More options Apr 14 2009, 6:54 pm
Newsgroups: mozilla.dev.extensions
From: Teemu Hautala <teemu.haut...@gmail.com>
Date: Wed, 15 Apr 2009 01:54:55 +0300
Local: Tues, Apr 14 2009 6:54 pm
Subject: Re: Thunderbird attachments information from message header

If there is no way of getting attachment information neatly without
loading the message in the UI, I'm thinking of implementing my own
parser for it if I could just get the raw message source somehow. I
searched a bit and this seems to be equally difficult though =(

Any advice is greatly appreciated.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Teemu Hautala  
View profile  
 More options Apr 15 2009, 4:26 pm
Newsgroups: mozilla.dev.extensions
From: Teemu Hautala <teemu.haut...@gmail.com>
Date: Wed, 15 Apr 2009 23:26:23 +0300
Local: Wed, Apr 15 2009 4:26 pm
Subject: Re: Thunderbird attachments information from message header
Hi again.

I finally managed to find a way to get the raw message, by following
instructions in here:

http://simon-cozens.org/programmer/articles/thunderbird-js.pod

It works beautifully, but now I have a new problem: because I need to
use the streamlistener to get the raw message for IMAP mails, I lose the
message header object during the process. I need it to process the
message further, along with the raw message body.

Thus, I need one of the following:

1. Pass the message header object to the StreamListener
2. Wait for the raw message body in my function which starts the
messageService.CopyMessage(...) request
3. Somehow generate the header object from the raw message body

I guess number one is out... unless I use some kind of global variable
to store the header (which infact, I will try now =)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Neil  
View profile  
 More options Apr 16 2009, 7:13 am
Newsgroups: mozilla.dev.extensions
From: Neil <n...@parkwaycc.co.uk>
Date: Thu, 16 Apr 2009 12:13:05 +0100
Local: Thurs, Apr 16 2009 7:13 am
Subject: Re: Thunderbird attachments information from message header

Teemu Hautala wrote:
> Pass the message header object to the StreamListener

Just set the header as a property on your user-defined stream listener.

--
Warning: May contain traces of nuts.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrew Sutherland  
View profile  
 More options Apr 20 2009, 7:49 am
Newsgroups: mozilla.dev.extensions
From: Andrew Sutherland <sombr...@alum.mit.edu>
Date: Mon, 20 Apr 2009 04:49:06 -0700
Local: Mon, Apr 20 2009 7:49 am
Subject: Re: Thunderbird attachments information from message header
On 04/14/2009 01:54 PM, Teemu Hautala wrote:

In Thunderbird 3, there is better support for this.  See:

http://mxr.mozilla.org/comm-central/source/mailnews/db/gloda/modules/...

And the unit test:

http://mxr.mozilla.org/comm-central/source/mailnews/db/gloda/test/uni...

Andrew


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »