]> git.cworth.org Git - sup/commit
Gmail style attachment processing
authorMarcus Williams <marcus-sup@bar-coded.net>
Tue, 29 Apr 2008 20:45:39 +0000 (21:45 +0100)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Sun, 25 May 2008 03:54:57 +0000 (20:54 -0700)
commit0cf173b0753bbe7987cb220bd6230eb25fd084bb
tree20a1f72c8836def8dc9c487a1cb529adb365bca1
parente3328775b1a2d820c39882c23a0c923f6e802c04
Gmail style attachment processing

This patch adds:

 * the search terms "filename" and "filetype"
 * hidden/reserved attachment label to track attachments
 * new flag on thread index mode to denote an attachment '@'
 * a "has:attachment" search query.

You can now search for something like "from:phil* filetype:pdf" for all
messages from a person called phil with a pdf attachment. You can also
specify a file name for the attachment with "filename:(this is a
filename with spaces.txt)". You can use wildcards in the filename
("filename:test*.pdf"). You can search for all messages from someone
with attachments using "from:someone has:attachment"

It will require sup-sync -all to work against all sources, but attempts
to be backwards compatable with non-synced sources.
lib/sup/index.rb
lib/sup/label.rb
lib/sup/message.rb
lib/sup/modes/thread-index-mode.rb