Use SEARCH HEADER command to search for X-* header fields

This is a discussion on Use SEARCH HEADER command to search for X-* header fields within the IMAP forums in Other Technologies category; Hi, Is it possible to search for X-* header fields, e. g. X-Enigmail-Version? I'm trying with Googlemail and had no luck so far. My command looks like this: 6 UID SEARCH HEADER "X-Enigmail-Version" "0.95.6" The server should report 2 hits, but is reporting 0. I tried other header fields starting with "X-" as well and always get 0 hits. If I search for e. g. "Delivered-To", I get the expected results. Am I doing something wrong? Is searching for header fields starting with "X-" not allowed by the IMAP protocol? Or is Googlemail just not supporting it? Timo -- www.TimoSoft-Software.de ...

Go Back   Application Development Forum > Other Technologies > IMAP

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 04-24-2008, 01:23 PM
Timo Kunze
Guest
 
Default Use SEARCH HEADER command to search for X-* header fields

Hi,

Is it possible to search for X-* header fields, e. g.
X-Enigmail-Version? I'm trying with Googlemail and had no luck so far.
My command looks like this:
6 UID SEARCH HEADER "X-Enigmail-Version" "0.95.6"
The server should report 2 hits, but is reporting 0. I tried other
header fields starting with "X-" as well and always get 0 hits. If I
search for e. g. "Delivered-To", I get the expected results.

Am I doing something wrong? Is searching for header fields starting with
"X-" not allowed by the IMAP protocol? Or is Googlemail just not
supporting it?

Timo
--
www.TimoSoft-Software.de - Unicode controls for VB6
"Those who sacrifice freedom for safety deserve neither."
Reply With Quote
  #2  
Old 04-24-2008, 03:24 PM
Mark Crispin
Guest
 
Default Re: Use SEARCH HEADER command to search for X-* header fields

On Thu, 24 Apr 2008, Timo Kunze posted:
> Is it possible to search for X-* header fields, e. g. X-Enigmail-Version?


In IMAP, yes.

> I'm
> trying with Googlemail and had no luck so far. My command looks like this:
> 6 UID SEARCH HEADER "X-Enigmail-Version" "0.95.6"


Sadly, Googlemail's IMAP server is (still) not compliant with the IMAP
specification. Google even acknowledges this particular part of
non-compliance.

> Am I doing something wrong? Is searching for header fields starting with "X-"
> not allowed by the IMAP protocol? Or is Googlemail just not supporting it?


It is allowed by the IMAP protocol, but the current non-compliant
Googlemail implementation does not support it.

I hope that Google will make their server comply with the IMAP
specification. Until that happens, this lack of compliance makes it
impossible for me to recommend it.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
Reply With Quote
  #3  
Old 04-24-2008, 06:07 PM
Timo Kunze
Guest
 
Default Re: Use SEARCH HEADER command to search for X-* header fields

Hi Mark,

Many thanks for your quick answer. I noticed other servers don't support
this as well. But good to know it is supported by the IMAP protocol, so
maybe I can remove my work-around one day.

Regards
Timo
--
www.TimoSoft-Software.de - Unicode controls for VB6
"Those who sacrifice freedom for safety deserve neither."
Reply With Quote
  #4  
Old 04-24-2008, 06:28 PM
Mark Crispin
Guest
 
Default Re: Use SEARCH HEADER command to search for X-* header fields

On Fri, 25 Apr 2008, Timo Kunze posted:
> Many thanks for your quick answer. I noticed other servers don't support this
> as well. But good to know it is supported by the IMAP protocol, so maybe I
> can remove my work-around one day.


UW imapd, Cyrus imapd, and Dovecot certainly support header searching

I can think of several others which probably do so as well.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:43 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.