History log of /haiku/src/apps/mail/MailWindow.cpp
Revision Date Author Comments
# a7ee73c8 30-Oct-2023 Humdinger <humdinger@mailbox.org>

Mail: Fix "Save address" as new Person file

If a Person file with the selected email address doesn't exist yet,
launch the People app with a BMessage "M_LAUNCH_PEOPLE" that triggers
the People app to create a new Person file.
The message includes "META:email" and "META:name" for email address
and contact name. The contact name may be empty, if it wasn't included
in the mail's from/to/cc etc. field.

Don't show error alert, if People was already running.

Fixes #14766

Change-Id: Id4f7ae50aa1ea283974f2fa067ac9e199f369db5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/7084
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 623fc35a 06-Jul-2023 Humdinger <humdingerb@gmail.com>

Mail: Slightly improved attachment handling, layout, strings

* In case the dropped file is a symlink, attach the actual file instead.
* Don't add a file, if it's already in the list of attachments.
* Add file size in brackets after the filename in the list of attacments.
* Add some spacing before the "Attachments" label.
* Consistently use "attachment" instead of the mixed in "enclosure".
"Attachment" also seems a more common term for this.

Change-Id: Id36d900216ce25c96ac1815889b8c7b6ec0e5f2c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6699
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# a8030ece 06-Jul-2023 Humdinger <humdingerb@gmail.com>

Mail: Accept dropped files on window

Currently only files dropped on the mail contents view are added as
attachments. Since dropped text files get inserted into the contents,
it only worked for non-text files.

With this change, the header area and the empty space of the tool bar
react to file drops as well.

* Accept dropped files on the whole window area
* Forward dropped files on the address text controls to the
main window (if they aren't people files)

Change-Id: Ia92f1e34aaf98a3089b318947668f3df41af00ce
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6697
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 9fe85f96 03-Apr-2023 Zach Dykstra <dykstra.zachary@gmail.com>

mail: automatically scale toolbar icons

Change-Id: I756122de2f4ee99883a53d0d2163004328660c85
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6305
Tested-by: Automation <automation@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 457e5ee2 03-Apr-2023 Zach Dykstra <dykstra.zachary@gmail.com>

mail: switch 'Set to' window to use layout lib

'File -> Close and -> Set to' used a hard-coded window size and
control/button layout. Switch this to use the layout library for proper
scaling.

Change-Id: Ieeed93da82fb6bdcca852e3bb2f5a3315222ec27
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6303
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# e76f360a 14-Mar-2023 Augustin Cavalier <waddlesplash@gmail.com>

Mail: Refactor the Attachments (Enclosures) views to use layouts.

This does not fix all the problems with their appearance,
but it does fix some of them, and paves the way for further fixes
to be made.


# 6023f2a6 22-Sep-2020 Murai Takashi <tmurai01@gmail.com>

mail: Remove dead code

Pointed out by clang static analyzer.

Change-Id: I911c6e664ca043ee49f9343b034b0c6ed78b0178
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3270
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 24cc0d5a 26-Jul-2020 Emir SARI <bitigchi@me.com>

[Mail] Add ALT+, settings keyboard shortcut

Change-Id: I9af6ddf32dbaad5cf451ced5380ac63cf0eca3e6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3095
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 66d438d1 17-Sep-2019 Humdinger <humdingerb@gmail.com>

Mail: change keyboard shortcuts / labels

1) People normally don't change their email account and Mail settings
often after the initial setup and short tweaking period. Using
keyboard shortcuts on those menu items is wasteful. Let's remove
them.

2) OTOH, I need to in/decrease the quoting level rather often (Mail
could probably be more intelligent here, too...).
Also, the current shortcuts for this ALT+' and ALT+SHIFT+' are awkward
and in some keymaps (German, for example) unreachable.
With the change in 1), ALT +/- becomes available, which is easily
reched with many keymaps AFAIK, and the numpad.

3) Rename the menu items "Quote" and "Remove quote" to
"Increase quote level" and "Decrease quote level", which is much
more correct. Also ties n nicely with the +/- shortcuts.

4) Rename the BMessage constants for consistency.

Change-Id: I2da21ed3aa465c30d09b2520288b64dea70feeec
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1868
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 85779906 05-Sep-2019 Humdinger <humdingerb@gmail.com>

Mail: Better placement of signature menu

When clicking the "Signature" button in the toolbar, no mouse
coordinates are available. The current hack is to open the menu
in the center of the tool bar, which is normally no way near
where the user has clicked the button. Not nice.

Change that to find the button coordinates and place the menu a bit
to the left of its center (so chances are the menu pops up already
under the mouse).

Fall back to the old hack, if the signature button wasn't found for
some reason...

Change-Id: I8fb5dbe4e2d394768a685fda0dc71d3cb2c5961d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1836
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# f36398cd 06-Sep-2019 Humdinger <humdingerb@gmail.com>

Mail: fix translations in "Queries" menu


# 29536b4c 31-Aug-2019 Augustin Cavalier <waddlesplash@gmail.com>

Mail: Don't use strtok.

That seems like a bad idea...


# 947124d1 10-Dec-2018 Humdinger <humdingerb@gmail.com>

Mail: Add queries for same subject, sender, recipient

In the "Queries" menu, add three items at the top to start a query
for the same recipient/sender/subject as the current email. Move the
separator and "Edit queries..." item to the bottom of the menu.

The temporarily created queries are put into B_USER_CACHE_DIRECTORY/Mail/.
The data in those queries might be private, therefore not in system /tmp.

The queries use the DefaultQueryTemplates for x-email, if that exists. This
is done by copying all the template's attributes. Code for that borrowed from
'copyattr'.

When creating a query for the same subject, use the MAIL:thread text for
the search, as that doesn't contain stuff like "Re: Re: Fwd: Re...". Do
the query for MAIL:subject though, because sent emails don't have a
MAIL:thread attribute.

Change-Id: I23b46f3ec07760d17b076d8b8aa8839c5f88963f
Reviewed-on: https://review.haiku-os.org/768
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# 81805393 04-Jan-2016 Axel Dörfler <axeld@pinc-software.de>

IMAP: setting flags, and body fetching works now.

* The direct methods in BMailProtocol now forward the request to the
looper; it's no longer the mail_daemon's responsibility to know
anything about that protocol.
* It's in desperate need of refactoring, but it doesn't hurt to add
it to the repository as is.


# 28da8a4c 16-Nov-2015 Axel Dörfler <axeld@pinc-software.de>

Mail: corrected spacing after window spacing change.

* The button panel shouldn't be indented at all.
* The header panel was intented twice, once by the surrounding layout,
once by its own.


# 3c5208e4 07-Nov-2015 Humdinger <humdingerb@gmail.com>

Improve/fix layout

Some tweaks to the layout of apps/prefs in the course of using
B_USE_WINDOW_SPACING.


# 9ed8f484 02-Sep-2015 Axel Dörfler <axeld@pinc-software.de>

Mail: show icons only setting works again.

* It will show the label as tool tip when the labels are hidden.


# 50d381e8 02-Sep-2015 Axel Dörfler <axeld@pinc-software.de>

Mail: use layout version of BMenuBar.

* Fixes layout issue: the minimal size was incorrect.
* Moved variable declaration to where it is actually used.


# 31c65be1 02-Sep-2015 Axel Dörfler <axeld@pinc-software.de>

Mail: fixed crash on resend.

* Seems to have been there for quite some time. Probably a good
reason to remove that feature altogether.


# 7bdee8be 31-Aug-2015 Axel Dörfler <axeld@pinc-software.de>

BEmailMessage: added missing const, Date() returns time_t.

* Added missing const to some getter methods.
* Date() now tries to parse the date of the mail, and return it as
a time_t; you can still retrieve the actual string via
HeaderField("Date") if you have to.
* Mail now shows the time in the local time zone, and with the
current locale.


# 8b1aaf34 31-Aug-2015 Axel Dörfler <axeld@pinc-software.de>

Mail: properly disable prev/next buttons without Tracker.

* The prev/next buttons will only work when invoked via an actual
mail file from Tracker.


# df946869 30-Aug-2015 Axel Dörfler <axeld@pinc-software.de>

Mail: work in progress to use the layout API.


# b20d210d 17-Aug-2015 Axel Dörfler <axeld@pinc-software.de>

Mail: minor cleanup.


# 990a73c2 22-Jul-2015 Augustin Cavalier <waddlesplash@gmail.com>

Mail: Use BToolBar and vector icons.

Fixes #9519. Partially using the patch there, but most of this
is my own work.


# bcf60bbb 30-Oct-2012 Axel Dörfler <axeld@pinc-software.de>

Fixed Mail build.

* The former kMsgBodyFetched (now B_MAIL_BODY_FETCHED, following the other
message constant names in AppDefs.h) must be public.


# 3aeed660 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# 3042958b 31-Jan-2014 John Scipione <jscipione@gmail.com>

Mail: Change quote and unquote shortcuts

to Cmd+' (quote) and Cmd+Shift+'

This should also work better for International users who don't have
ready access to the [ and ] keys.


# 9f7f92dd 11-Jan-2014 John Scipione <jscipione@gmail.com>

Mail: Make quote work with B_OPTION_KEY too.

This is for AZERTY keymaps that don’t have ready access to
[ and ] in the normal map.


# 2a644034 11-Jan-2014 John Scipione <jscipione@gmail.com>

Mail: Tiny style fix


# c40938ad 10-Jan-2014 John Scipione <jscipione@gmail.com>

Mail: update quote shortcuts.

* Quote goes from Cmd+→ to Cmd+]
* Unquote goes from Cmd+← to Cmd+[

This frees cmd+arrow keys up for text navigation.


# 38fa81bf 03-Oct-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Remove B_COMMON*_DIRECTORY and kCommon*Directory constants

* This does intentionally break source compatibility, so that a review
of concerned code is forced.
* Binary compatibility should be maintained in most cases. The values
of the constants for the writable directories are now used for the
writable system directories. The values for the non-writable
directories are mapped to "/boot/system/data/empty/...", an empty or
non-existent directory, so that they will simply be skipped in search
paths. Only code that explicitly expects to find something in a
B_COMMON_* directory, will fail.


# 55a4a880 04-May-2013 Jérôme Duval <jerome.duval@gmail.com>

Mail: some 64 bit fixes


# acd512e9 09-Mar-2013 Rene Gollent <anevilyak@gmail.com>

Always build the button bar. Fixes #9474.


# 776c58b2 30-Dec-2012 Humdinger <humdingerb@gmail.com>

Unifying the quit/save alerts.

Wherever I found an alert prompting to save changes, I used the
button labeling 'Cancel', 'Don't save', 'Save' with the first button
left aligned, 2nd and 3rd right aligned.

I added the shortcuts 'd' for 'Don't save, and 's' for 'Save' where
not already set.

The topic was discussed at
http://permalink.gmane.org/gmane.os.haiku.devel/23244
The discussion died down, I hope I made changes everyone can live with.


# 4b84a0b5 12-Dec-2012 Philippe Saint-Pierre <stpere@gmail.com>

Mail: don't require a subject to save a draft (#9218)

Also :
* if the body of message changes, ask to save draft when closing window
* disable save button when successfully saving draft


# 53b234eb 12-Dec-2012 Philippe Saint-Pierre <stpere@gmail.com>

Mail: Reworking of the unique filename discovery (drafts)


# 55ef15c4 12-Dec-2012 Philippe Saint-Pierre <stpere@gmail.com>

Mail: use B_FILE_NAME_LENGTH as limit when saving drafts


# ef4ed1b7 15-Aug-2012 Humdinger <humdingerb@gmail.com>

Replaced "Preferences"/"Options" with "Settings"

Replaced remaining "Preferences" and "Options" with "Settings" as
that is generally used for app settings instead of the system
preferences found in the preference panels.

Renamed Tracker's "Preferences" to "Tracker preferences" to be
similar to the entries in the Deskbar and e.g. the Media replicant
in the Deskbar tray.


# aed35104 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# 546208a5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# caacf4d9 15-Jan-2012 Siarzhuk Zharski <zharik@gmx.li>

Remove unused variable TMailWindow::fStartingText

* Looks like this variable has no functional load anymore. The last case
of filling it was dismissed by hrev43664 modification.


# 7df4b413 15-Jan-2012 Aleksas Pantechovskis <alexp.frl@gmail.com>

Improve the auto-signature insertion algorithm

* Append the signature only after the e-mail Reader thread will finish
it's work. This prevent from inserting the signature in wrong place;
* Added extra lines between original e-mail quote and the signature for
more comfortable editing of replies.
* This fix was made during GCI2011;
* This fixes #4590.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>


# 68450f5d 15-Jan-2012 Siarzhuk Zharski <zharik@gmx.li>

Remove debug syslog call.

* Remove debug code introduced by reading pos improvements. Sorry for
the noise. :-\


# cd8bd6fa 12-Jan-2012 Aleksas Pantechovskis <alexp.frl@gmail.com>

Preserve/Restore e-mail reading position

* Introduce the "MAIL:read_pos" attribute of e-mail file node to
store the latest scroll position of the mail text view;
* Fixes #4302 (Mail should store and restore scroll offset);
* This feature was implemented during completing GCI2011 task.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>


# 975f0244 09-Jan-2012 Aleksas Pantechovskis <alexp.frl@gmail.com>

Fix [Read|Unread] buttons behaviour

* Allow displaying of "Read" button only for Incoming e-mails.
Fixes #4773;
* Move to the next message after pressing "Unread" button that
is consistent with corresponding "Unread" button case.
Fixes #4774;
* Those problems were fixed during completing GCI 2011 task.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>


# a7c3ac55 09-Jan-2012 Aleksas Pantechovskis <alexp.frl@gmail.com>

"Close and Leave As ***" menu handling improved.

* Check for real e-mail status before activating corresponding
"Close and Leave as <Status>" popup menu entries and modifying them
correspondently;
* That was implemented as GCI 2011 task. Fixes #5251.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>


# 6e5af4cd 19-Apr-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Check a menu item is actually marked, just to be safe.
Remove leftover commented code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41267 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8859d46e 19-Apr-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Patch by Sean "jalopeura" Healy: save and restore account and encoding of draft mails.
This fix #4789. Thanks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41266 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8afad976 01-Apr-2011 Jonas Sundström <jonas@kirilla.com>

Unburying the bug of ticket #6721.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41163 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1ea9f437 01-Apr-2011 Jonas Sundström <jonas@kirilla.com>

Fix for #7372. Don't use an uninitialized buffer. Some BString replacement of C strings. Replace Mail's ReadAttrString() function with the BNode method. Define a B_MAIL_ATTR_BCC.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41159 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6f4b5932 31-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Workaround for ticket #6721 by using %b (line break) instead of \n for newline. (I looked into the string escaping issue in the locale kit and it appears to work as expected, so I don't know.) Simplification of some code. Addition of a default reply preamble. The name variable now results in just the name. Removal of commented out First/Last name variables, as the order of these is culture-dependent. Insert at point of selection.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41158 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 62769fc6 26-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Follow-up on r41108. Removal of About-windows and menu items.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41115 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 560ff447 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Use resource definition files instead of DoCatalogs rule. Rename B_TRANSLATE_APP_NAME and related macros to the more generic B_TRANSLATE_SYSTEM_NAME, to also fits add-ons, folders, etc, and make 'System name' its standard context. Change CodyCam and PoorMan's app signatures to match the overall x-vnd.Haiku-App pattern. Some clean-up. Make SlideShowSaver build again.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41103 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f1785f82 21-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Leave status when quit window using the control+shift+w shortcut. Fixes #7382.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41063 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a64bd564 21-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Write MAIL:name, MAIL:thread and MAIL:account attribute. The account id is now stored in MAIL:account_id. This requires to re-download all mails to write the correct attribute (sorry).
Fixes #7375.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41062 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 07bd7cf4 18-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

When iterating through mails in a tracker read query window, don't mark the old message as read before retrieving the next message. This would fail because the old message left the query.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41020 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b97c5149 15-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Making use of B_TRANSLATE_APP_NAME, BAboutMenuItem, BAboutWindow. Clean-up. Removal of some ellipsis. ('About Haiku' in Deskbar.)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40968 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4e401f81 04-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Fix crash when opening a new mail. Thanks Jonas.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40812 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b8d2bbd6 03-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

- Partial downloaded messages are now opened by Mail and not by the mail daemon. Mail request the body fetch and get notified when the daemon is done. During this time the Mail window title is showing "Downloading: subject". This fixes #7256.
- Some cleanup in Mail.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40789 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fecd4735 28-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

The read-next button was not working in a tracker query window because the message was marked as read too early. In this case the
mail left the unread query and the next message can't be retrieved from tracker.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40747 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0a0ce30e 27-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Quitting the mail window should result in a normal attribute update so remove the custom status string from the quit message. Cleanup. Fix #7290.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40730 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2ee8f3f6 25-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Bunch of localization fixes pointed out by Diver. Thanks!

Notes:
- FileTypes: The "Same as" button label separated to two entities in dependency of
context: "Same Type as ..." and "Same Application as ...";
- Tracker: The sentences like "If you do %action [...]. To do %action [...]"
now use separately translated verbs for so called
"ifYouDoAction" and "toDoAction";
- NetworkStatus: NetworkStatusView _ShowConfiguration is fixed back after previous
attempt to localize it in r37337: useless code bloating purged out,
broken quasi-header "ifaceName information:" pulled back from Hell;
- StyledEdit: Menu item "Can't undo" had different casing in some situation. Looks
like HTA cannot detect such situation, so right lines "Can't undo"
were masked by wrong one "Can't Undo" and this line stay untranslated
for most time.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40688 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 07ede888 21-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Close the mail window when marking the last message as read.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40609 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 47d780d2 21-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Don't mark read messages as seen when closing the mail window.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40603 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d773c5bf 21-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

If not in "mark automatically as read" mode mark the mail as seen. Fix selection of this option in the preference window. Fix some read/unread bugs.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40595 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9967dfd9 21-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

- Extend MarkMailAsRead to take a flag not only a bool value. Write an additional MAIL:read attribute.
- Remove some hard coded paths.
- Catch failure of FindMessage correctly. Thanks Axel.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40593 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0e657c0b 20-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Remember tracker message when downloading a partial message and open it with Mail. This is needed to get the next/previous message after downloading the body.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40575 a95241bf-73f2-0310-859d-f6bbb57e9c96


# df0ad9c1 14-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Fix account name in mail.
Work in progress: fetch next partial downloaded message.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40504 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d26fee1a 08-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Switch to the new MailProtocol and account API. Lot of other smaller adaption to the new mail server.

Remove button in the pref app removes the complete account because we don't have separate chains any more. The pref app stays a mess, needs some layout love! (I did it even look worse...)

The new account/mail settings classes know if they have been changed but the current pref panel does not use this feature very well. It always mark the settings as modified when the settings view is displayed or more precise when the settings view is detached from the pref window, this could be optimized. The according mail protocol is completely restarted when their settings changed.

Some system filters are now directly integrated in the mail protocols. Hopefully make things easier to understand.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40398 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a6aa0c5f 25-Jan-2011 Rene Gollent <anevilyak@gmail.com>

CID 91: Fix copy/paste error where the wrong variable was passed to an attribute read call, leading to unreachable code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40288 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0c19b856 21-Jan-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Removed forgotten commented-out code. Spotted by Jerome, thanks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40259 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 42ef6afd 21-Jan-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Applied patch (with small cosmetic changes) by jalopeura (see #7134):
search e-mail addresses in every volume, not just boot one.
Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40258 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4eb0cbb0 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36733 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8c9c8c0e 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36668 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a8e3f157 02-May-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Applied (part of) a patch by Kaliber, attached to ticket #5875. Thanks!
Will commit the rest later.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36577 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 43c4e123 26-Apr-2010 Stephan Aßmus <superstippi@gmx.de>

* Small style cleanups
* Fixed a warning


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36483 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 216073af 11-Apr-2010 Axel Dörfler <axeld@pinc-software.de>

* BTextView::CountLines() counts correctly in Haiku, so the BeOS work-around of
correcting it is no longer necessary. This should fix having the last line
not quoted in Mail when doing partial replies.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36157 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f2255927 25-Mar-2010 Jonas Sundström <jonas@kirilla.com>

Don't ask Haiku users to insert their BeOS CDs. Fixes #5632.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35949 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 95b368ea 21-Mar-2010 Jonas Sundström <jonas@kirilla.com>

TR()-wrapping of View menu text label. Fixes #5577.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35924 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fbc75a53 05-Mar-2010 Jonas Sundström <jonas@kirilla.com>

Partial clean-up

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35767 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4ae492eb 04-Mar-2010 Jonas Sundström <jonas@kirilla.com>

Partial clean-up.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35762 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7197f1a6 03-Mar-2010 Jonas Sundström <jonas@kirilla.com>

Partial clean-up.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35751 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d7461887 09-Jan-2010 Jonas Sundström <jonas@kirilla.com>

Humble beginnings of a code style correction.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34976 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d5430bf7 09-Jan-2010 Jonas Sundström <jonas@kirilla.com>

Removal of non-Haiku ifdefs. Rephrasing 'BeOS attributes' as 'file attributes'.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34974 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5ef42fcc 09-Jan-2010 Jonas Sundström <jonas@kirilla.com>

Sentence-cased GUI strings, adapted from patch by Humdinger in #5169.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34973 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c8767bee 08-Jan-2010 Jonas Sundström <jonas@kirilla.com>

Localization to replace the hardcoded English/Japanese. I will follow up with a Japanese translation based on the previous code. Some of the old solution lingers in parts of the code. A small amount of clean-up and removal BeOS-specifics.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34956 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dab230b2 12-Nov-2009 Jonas Sundström <jonas@kirilla.com>

Reverting addition of ellipsis for New Mail Message menu item. It wasn't in line with the intent of the interface guidelines.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34008 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fcbd30ca 10-Nov-2009 Jonas Sundström <jonas@kirilla.com>

Adding missing ellipsis in menu item, as suggested by Luroh in #4935. Thanks!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33991 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 93e60b1a 07-Nov-2009 Axel Dörfler <axeld@pinc-software.de>

* Hide() was called too early, and wasn't reverted in case the mail couldn't
be encoded, either. This fixes bug #4613.
* Ideally, the mail would automatically be changed to an encoding that can
express all characters silently. Added a TODO comment for this.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33936 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 25295d1e 17-Oct-2009 Axel Dörfler <axeld@pinc-software.de>

* Removed mail & inbox icons. Unless someone really objects; I would consider
them pretty much useless.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33616 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c679d93a 12-Oct-2009 Axel Dörfler <axeld@pinc-software.de>

* Correctly evaluate the TMailApp::ShowButtonBar() setting. This fixes bug
#4706.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33571 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7914280c 20-Sep-2009 Jonas Sundström <jonas@kirilla.com>

Less hardcoding of paths. Adding shared private OpenWithTracker().

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33207 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f5b22bcf 06-May-2009 Clemens Zeidler <clemens.zeidler@googlemail.com>

Hopefully this are all remaining read erros.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30651 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dc8a8389 26-Apr-2009 Clemens Zeidler <clemens.zeidler@googlemail.com>

Add another option to the mail app. When you switch "Automaticly mark mail as readed" off a new Read / Unread button appears and a mail is only marked as readed when you push this button. On default the old behaviour is used.

This is once again a opera feature I like very much and I haven't found in any other email client yet.
E.g. you can start a query on unreaded mails and take a short look at the mails without the mails are disappearing from the query. If you read the mail you press "Readed" and the mail is gone from the query. This is e.g an advantage if you have less time, take a look at a mail and found that the mail is very long but potentially intressting. In this case you just press next or close the window and the mail is still in the unreaded query, ready to be readed at another time. The unreaded flag becomes something like a automatic important flag. You don't have to mark / unmark the mails as important and still don't forget to process any mail. I think this is a different way how most people read mails so I hope you like the patch.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30437 a95241bf-73f2-0310-859d-f6bbb57e9c96


# aeab3755 04-Apr-2009 Axel Dörfler <axeld@pinc-software.de>

* Made the button bar no longer draw over the menu bar, and it now uses the
BControlLook to draw its bottom border instead of using a BBox, and have the
parent move it around to make it somehow fit (or not).
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29913 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ae2bf460 22-Feb-2009 Bruno G. Albuquerque <bga@bug-br.org.br>

The Spam DBM may not have the best interface in the world but it is one of the best anti-spam tool I saw so I am adding it to the image (in fact the interface with changes by darkwyrm looks worse than the original one, IMHO).



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29284 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b419343e 13-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

Do not set fSent to true in SaveAsDraft() already, since it is correctly set
in Send(), which uses SaveAsDraft(). This fixes #1020. Thanks to kaoutsis and
ksmith for their investigation!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28641 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dd76369e 15-Aug-2008 Bruno G. Albuquerque <bga@bug-br.org.br>

- Also fix references to the spa, server in Mail.
- Now marking emails as spam through the Mail app also works.

Still need to fix the Match Header filter as it seems not to be working.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26991 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 57ba13c5 23-Jun-2008 Axel Dörfler <axeld@pinc-software.de>

* Added shortcut "command-shift-q" that, analogously to "command-shift-w", quits
the app, and keeps the status of all open mails untouched.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26114 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8905dde8 23-Jun-2008 Axel Dörfler <axeld@pinc-software.de>

* Changed the window cascading to be more useful with more windows.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26113 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8f0dc0c0 23-Jun-2008 Axel Dörfler <axeld@pinc-software.de>

The "Show Header" option is no longer persistent, and will only affect the
currently shown mail when checked.
It just didn't make any sense the way it was before, and was inconsistent, too,
as it only affected mails opened after the current one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26112 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e06c7fe5 08-May-2008 Axel Dörfler <axeld@pinc-software.de>

* Added a quote_context structure that FillInQuoteTextRuns() can now optionally
use to keep track of the current context. This should not only make it faster,
but may also fix the occasionally seen bug of the previous solution.
* Added a simple diff mode coloring as well - only enabled when quote coloring
is enabled.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25364 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c9d15f8c 07-Apr-2008 Stephan Aßmus <superstippi@gmx.de>

Applied patch by Duane R. Bailey:
* Replaced occurances of "..." by B_UTF8_ELLIPSIS in the apps folder.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24851 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dca96707 30-Mar-2008 Karsten Heimrich <host.haiku@gmx.de>

* fixed crash in case one tries to print a new composed mail


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24696 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 782c2e90 19-Feb-2008 Jonas Sundström <jonas@kirilla.com>

Some rephrasing of help message.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24022 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 75998ed6 19-Feb-2008 Jonas Sundström <jonas@kirilla.com>

Added an Accounts menu item which opens the E-mail preferences.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24021 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b19e377d 17-Feb-2008 Jonas Sundström <jonas@kirilla.com>

0L constant typo? Remove menu item before deleting it.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23977 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a3aa6905 19-Nov-2007 Stephan Aßmus <superstippi@gmx.de>

* enabled status of "Save As Draft" menu item should now be correctly maintained


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22954 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5913d84e 24-Oct-2007 Stephan Aßmus <superstippi@gmx.de>

patch by "anxiety":
* added a Query menu to the main menu, giving access to some
email queries
I refactored the patch a little and added monitoring the query folder,
so that all open Mail windows should update. However, I might not have
got it to work as intended, at least I got no entries for the query results,
even though the same query did return results when run in Tracker.

This should implement the idea in #1208, and that's also where the patch
was attached.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22702 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 55302444 30-Aug-2007 Stephan Aßmus <superstippi@gmx.de>

This fixes all the issues mentioned in #1207
* improved alignment of controls
* removed last separator from icon bar
* moved separator in sending mode so grouping of trash icon is like in
reading mode
* adjust window size constraints according to icon bar width
* fixed follow modes of menufields when resizing window (even on BeOS,
though a custom menu field is needed to take care of invalidation)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22128 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7ebe0d01 30-Aug-2007 Stephan Aßmus <superstippi@gmx.de>

first part of a big cleanup of the Mail code
* separated window, app and context menu code
* got rid of all the global variables (which were accessed completely without
locking, and the code with regards to the preference window sill needs
fixing)
* extracted some defines and helper functions to MailSupport.cpp, though I later
saw Utilities.cpp...
* got rid of the FONT_SIZE define which was used in some (but not all) controls
to override the system font size
* worked in Header.cpp to get the controls layout font sensitive with correct
alignment too, some problems remain when resizing the window


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22122 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9ed8f484983a77a3b88adfa41e4136501b6df4b3 02-Sep-2015 Axel Dörfler <axeld@pinc-software.de>

Mail: show icons only setting works again.

* It will show the label as tool tip when the labels are hidden.


# 50d381e8620a847a3cc736e4983eddbfb7d9e421 02-Sep-2015 Axel Dörfler <axeld@pinc-software.de>

Mail: use layout version of BMenuBar.

* Fixes layout issue: the minimal size was incorrect.
* Moved variable declaration to where it is actually used.


# 31c65be109011d26204e5924cd197b3ff121057c 02-Sep-2015 Axel Dörfler <axeld@pinc-software.de>

Mail: fixed crash on resend.

* Seems to have been there for quite some time. Probably a good
reason to remove that feature altogether.


# 7bdee8beab1ad3214daaf55b42c56cc3e698065f 31-Aug-2015 Axel Dörfler <axeld@pinc-software.de>

BEmailMessage: added missing const, Date() returns time_t.

* Added missing const to some getter methods.
* Date() now tries to parse the date of the mail, and return it as
a time_t; you can still retrieve the actual string via
HeaderField("Date") if you have to.
* Mail now shows the time in the local time zone, and with the
current locale.


# 8b1aaf348c30289eab0adc9799c1ce3e50473fd9 31-Aug-2015 Axel Dörfler <axeld@pinc-software.de>

Mail: properly disable prev/next buttons without Tracker.

* The prev/next buttons will only work when invoked via an actual
mail file from Tracker.


# df946869a12e27082370ec23b9bfc3f2893fe8ab 30-Aug-2015 Axel Dörfler <axeld@pinc-software.de>

Mail: work in progress to use the layout API.


# b20d210d5a7514d0bd799931c103dec954794c5b 17-Aug-2015 Axel Dörfler <axeld@pinc-software.de>

Mail: minor cleanup.


# 990a73c29aef3f7749192b796373bc5e5c086e19 22-Jul-2015 Augustin Cavalier <waddlesplash@gmail.com>

Mail: Use BToolBar and vector icons.

Fixes #9519. Partially using the patch there, but most of this
is my own work.


# bcf60bbb83484e8a2715daae55bce55d60457853 30-Oct-2012 Axel Dörfler <axeld@pinc-software.de>

Fixed Mail build.

* The former kMsgBodyFetched (now B_MAIL_BODY_FETCHED, following the other
message constant names in AppDefs.h) must be public.


# 3aeed6607cd07762c0e709633c012b3a632dbad9 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# 3042958bab30d46cd3d93af30bb2dfeaf271fc05 31-Jan-2014 John Scipione <jscipione@gmail.com>

Mail: Change quote and unquote shortcuts

to Cmd+' (quote) and Cmd+Shift+'

This should also work better for International users who don't have
ready access to the [ and ] keys.


# 9f7f92dd7f0f707f09569d94d5272906d0eca3cf 11-Jan-2014 John Scipione <jscipione@gmail.com>

Mail: Make quote work with B_OPTION_KEY too.

This is for AZERTY keymaps that don’t have ready access to
[ and ] in the normal map.


# 2a64403471db5afd6b7b2cbd49d6c59bb1b54dac 11-Jan-2014 John Scipione <jscipione@gmail.com>

Mail: Tiny style fix


# c40938ad1f14f701fc212c0d4864a60a5e34df3f 10-Jan-2014 John Scipione <jscipione@gmail.com>

Mail: update quote shortcuts.

* Quote goes from Cmd+→ to Cmd+]
* Unquote goes from Cmd+← to Cmd+[

This frees cmd+arrow keys up for text navigation.


# 38fa81bf8f0ccc37a615a9f5bd333f9b781322b3 03-Oct-2013 Ingo Weinhold <ingo_weinhold@gmx.de>

Remove B_COMMON*_DIRECTORY and kCommon*Directory constants

* This does intentionally break source compatibility, so that a review
of concerned code is forced.
* Binary compatibility should be maintained in most cases. The values
of the constants for the writable directories are now used for the
writable system directories. The values for the non-writable
directories are mapped to "/boot/system/data/empty/...", an empty or
non-existent directory, so that they will simply be skipped in search
paths. Only code that explicitly expects to find something in a
B_COMMON_* directory, will fail.


# 55a4a88045ee553e36e92406200079ea13b858d6 04-May-2013 Jérôme Duval <jerome.duval@gmail.com>

Mail: some 64 bit fixes


# acd512e9c64483a56d4fbec4a46d60ac13910fe4 09-Mar-2013 Rene Gollent <anevilyak@gmail.com>

Always build the button bar. Fixes #9474.


# 776c58b2b56d8bcf33638a2ecb6c697f95a1cbf3 30-Dec-2012 Humdinger <humdingerb@gmail.com>

Unifying the quit/save alerts.

Wherever I found an alert prompting to save changes, I used the
button labeling 'Cancel', 'Don't save', 'Save' with the first button
left aligned, 2nd and 3rd right aligned.

I added the shortcuts 'd' for 'Don't save, and 's' for 'Save' where
not already set.

The topic was discussed at
http://permalink.gmane.org/gmane.os.haiku.devel/23244
The discussion died down, I hope I made changes everyone can live with.


# 4b84a0b5c8a8c87b2601a735d13cbf258a32fc92 12-Dec-2012 Philippe Saint-Pierre <stpere@gmail.com>

Mail: don't require a subject to save a draft (#9218)

Also :
* if the body of message changes, ask to save draft when closing window
* disable save button when successfully saving draft


# 53b234eb1c4b0d191c9d8c84d7801b63776f9939 12-Dec-2012 Philippe Saint-Pierre <stpere@gmail.com>

Mail: Reworking of the unique filename discovery (drafts)


# 55ef15c45a831152b1544a28c34de4aa71e151ff 12-Dec-2012 Philippe Saint-Pierre <stpere@gmail.com>

Mail: use B_FILE_NAME_LENGTH as limit when saving drafts


# ef4ed1b76b69c8775d46153501862fd4aa082dc8 15-Aug-2012 Humdinger <humdingerb@gmail.com>

Replaced "Preferences"/"Options" with "Settings"

Replaced remaining "Preferences" and "Options" with "Settings" as
that is generally used for app settings instead of the system
preferences found in the preference panels.

Renamed Tracker's "Preferences" to "Tracker preferences" to be
similar to the entries in the Deskbar and e.g. the Media replicant
in the Deskbar tray.


# aed35104852941f0f6f3d1dcc5338b5f337d0a3c 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# 546208a53940a26c6379c48a7854ade1a8250fc5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# caacf4d9e73aa5d9654bd794795d710da0bb4d95 15-Jan-2012 Siarzhuk Zharski <zharik@gmx.li>

Remove unused variable TMailWindow::fStartingText

* Looks like this variable has no functional load anymore. The last case
of filling it was dismissed by hrev43664 modification.


# 7df4b41328242918b7201d12d80a7fbc7f1e025e 15-Jan-2012 Aleksas Pantechovskis <alexp.frl@gmail.com>

Improve the auto-signature insertion algorithm

* Append the signature only after the e-mail Reader thread will finish
it's work. This prevent from inserting the signature in wrong place;
* Added extra lines between original e-mail quote and the signature for
more comfortable editing of replies.
* This fix was made during GCI2011;
* This fixes #4590.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>


# 68450f5d44372d7b9a59629e4e6433463dce6ac6 15-Jan-2012 Siarzhuk Zharski <zharik@gmx.li>

Remove debug syslog call.

* Remove debug code introduced by reading pos improvements. Sorry for
the noise. :-\


# cd8bd6fa3fd3871812cc3e4027e15ca11e1adeaa 12-Jan-2012 Aleksas Pantechovskis <alexp.frl@gmail.com>

Preserve/Restore e-mail reading position

* Introduce the "MAIL:read_pos" attribute of e-mail file node to
store the latest scroll position of the mail text view;
* Fixes #4302 (Mail should store and restore scroll offset);
* This feature was implemented during completing GCI2011 task.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>


# 975f024407b96be285833c318abab1c003770cfb 09-Jan-2012 Aleksas Pantechovskis <alexp.frl@gmail.com>

Fix [Read|Unread] buttons behaviour

* Allow displaying of "Read" button only for Incoming e-mails.
Fixes #4773;
* Move to the next message after pressing "Unread" button that
is consistent with corresponding "Unread" button case.
Fixes #4774;
* Those problems were fixed during completing GCI 2011 task.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>


# a7c3ac5527c418be35139f0a174839d79873629c 09-Jan-2012 Aleksas Pantechovskis <alexp.frl@gmail.com>

"Close and Leave As ***" menu handling improved.

* Check for real e-mail status before activating corresponding
"Close and Leave as <Status>" popup menu entries and modifying them
correspondently;
* That was implemented as GCI 2011 task. Fixes #5251.

Signed-off-by: Siarzhuk Zharski <zharik@gmx.li>


# 6e5af4cdc403297f31dabcca128cd3327f41e8c8 19-Apr-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Check a menu item is actually marked, just to be safe.
Remove leftover commented code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41267 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8859d46e56da6a752c972f9049a11f6691cabd43 19-Apr-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Patch by Sean "jalopeura" Healy: save and restore account and encoding of draft mails.
This fix #4789. Thanks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41266 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8afad97685c79074a425ebc2252649aa0b47eee6 01-Apr-2011 Jonas Sundström <jonas@kirilla.com>

Unburying the bug of ticket #6721.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41163 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1ea9f437ea2a94167c336d78136c1f043671ff72 01-Apr-2011 Jonas Sundström <jonas@kirilla.com>

Fix for #7372. Don't use an uninitialized buffer. Some BString replacement of C strings. Replace Mail's ReadAttrString() function with the BNode method. Define a B_MAIL_ATTR_BCC.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41159 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6f4b593285e89cab48225eaf17301f51cd7a1198 31-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Workaround for ticket #6721 by using %b (line break) instead of \n for newline. (I looked into the string escaping issue in the locale kit and it appears to work as expected, so I don't know.) Simplification of some code. Addition of a default reply preamble. The name variable now results in just the name. Removal of commented out First/Last name variables, as the order of these is culture-dependent. Insert at point of selection.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41158 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 62769fc6d5b7ee60cea4d6e289316a5e20e0c5d4 26-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Follow-up on r41108. Removal of About-windows and menu items.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41115 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 560ff4478d5c85455ea3e5ed5e392ef93132d545 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Use resource definition files instead of DoCatalogs rule. Rename B_TRANSLATE_APP_NAME and related macros to the more generic B_TRANSLATE_SYSTEM_NAME, to also fits add-ons, folders, etc, and make 'System name' its standard context. Change CodyCam and PoorMan's app signatures to match the overall x-vnd.Haiku-App pattern. Some clean-up. Make SlideShowSaver build again.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41103 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f1785f82fe21ac3a7504780ed13c4c8fa2660819 21-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Leave status when quit window using the control+shift+w shortcut. Fixes #7382.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41063 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a64bd5649d3aa752ef4672e72a2415861546997d 21-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Write MAIL:name, MAIL:thread and MAIL:account attribute. The account id is now stored in MAIL:account_id. This requires to re-download all mails to write the correct attribute (sorry).
Fixes #7375.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41062 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 07bd7cf4e63d6cf306c389bba3082b03b0d7acc5 18-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

When iterating through mails in a tracker read query window, don't mark the old message as read before retrieving the next message. This would fail because the old message left the query.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41020 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b97c51490af2a4e3a20d6baf7d31e59b63924e99 15-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Making use of B_TRANSLATE_APP_NAME, BAboutMenuItem, BAboutWindow. Clean-up. Removal of some ellipsis. ('About Haiku' in Deskbar.)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40968 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4e401f8153cdf2cd4a42056735b4a320f3059713 04-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Fix crash when opening a new mail. Thanks Jonas.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40812 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b8d2bbd6167a4b751f67b2a171d770695f5055ca 03-Mar-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

- Partial downloaded messages are now opened by Mail and not by the mail daemon. Mail request the body fetch and get notified when the daemon is done. During this time the Mail window title is showing "Downloading: subject". This fixes #7256.
- Some cleanup in Mail.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40789 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fecd4735be2de6146445e24edb56d9c865179bf6 28-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

The read-next button was not working in a tracker query window because the message was marked as read too early. In this case the
mail left the unread query and the next message can't be retrieved from tracker.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40747 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0a0ce30e651fd17c5c199f796f18f6fb0ec1ce13 27-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Quitting the mail window should result in a normal attribute update so remove the custom status string from the quit message. Cleanup. Fix #7290.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40730 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2ee8f3f65fdeb106272bd3a195898778c86abf27 25-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Bunch of localization fixes pointed out by Diver. Thanks!

Notes:
- FileTypes: The "Same as" button label separated to two entities in dependency of
context: "Same Type as ..." and "Same Application as ...";
- Tracker: The sentences like "If you do %action [...]. To do %action [...]"
now use separately translated verbs for so called
"ifYouDoAction" and "toDoAction";
- NetworkStatus: NetworkStatusView _ShowConfiguration is fixed back after previous
attempt to localize it in r37337: useless code bloating purged out,
broken quasi-header "ifaceName information:" pulled back from Hell;
- StyledEdit: Menu item "Can't undo" had different casing in some situation. Looks
like HTA cannot detect such situation, so right lines "Can't undo"
were masked by wrong one "Can't Undo" and this line stay untranslated
for most time.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40688 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 07ede8884c28f5ebbdbfe2ea16fd459f4a14a530 21-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Close the mail window when marking the last message as read.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40609 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 47d780d247be2df9151d720fdd790acaf3fe86c3 21-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Don't mark read messages as seen when closing the mail window.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40603 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d773c5bf4c484fb21a244b9a2fae240bc6160204 21-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

If not in "mark automatically as read" mode mark the mail as seen. Fix selection of this option in the preference window. Fix some read/unread bugs.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40595 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9967dfd9243396f9bed5f7b357451cda8cd48f26 21-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

- Extend MarkMailAsRead to take a flag not only a bool value. Write an additional MAIL:read attribute.
- Remove some hard coded paths.
- Catch failure of FindMessage correctly. Thanks Axel.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40593 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0e657c0b6c38084d9aa684515ec505a212b96bc9 20-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Remember tracker message when downloading a partial message and open it with Mail. This is needed to get the next/previous message after downloading the body.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40575 a95241bf-73f2-0310-859d-f6bbb57e9c96


# df0ad9c12a92a83718b4442e87034a8a2951efff 14-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Fix account name in mail.
Work in progress: fetch next partial downloaded message.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40504 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d26fee1afb9b3f3fdee2ca569b4944c3ad377d39 08-Feb-2011 Clemens Zeidler <clemens.zeidler@googlemail.com>

Switch to the new MailProtocol and account API. Lot of other smaller adaption to the new mail server.

Remove button in the pref app removes the complete account because we don't have separate chains any more. The pref app stays a mess, needs some layout love! (I did it even look worse...)

The new account/mail settings classes know if they have been changed but the current pref panel does not use this feature very well. It always mark the settings as modified when the settings view is displayed or more precise when the settings view is detached from the pref window, this could be optimized. The according mail protocol is completely restarted when their settings changed.

Some system filters are now directly integrated in the mail protocols. Hopefully make things easier to understand.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40398 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a6aa0c5f6df85ee2fcc158860ed09dbcbfeebae4 25-Jan-2011 Rene Gollent <anevilyak@gmail.com>

CID 91: Fix copy/paste error where the wrong variable was passed to an attribute read call, leading to unreachable code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40288 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0c19b8569d008171aa138a3da274e8abc3fbdff2 21-Jan-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Removed forgotten commented-out code. Spotted by Jerome, thanks.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40259 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 42ef6afd4e0405310cc906ab5ba7c1b425892494 21-Jan-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Applied patch (with small cosmetic changes) by jalopeura (see #7134):
search e-mail addresses in every volume, not just boot one.
Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40258 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4eb0cbb044cf538f18c0d252934a5bcaa33bfd34 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36733 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8c9c8c0e1fa2fa5881ffe1a8f4de8a182fa83861 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36668 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a8e3f15774a750d7d35b348d11ecf66fa1b5bfd5 02-May-2010 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Applied (part of) a patch by Kaliber, attached to ticket #5875. Thanks!
Will commit the rest later.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36577 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 43c4e12359bb287c857af7666c6da09d104e60d8 26-Apr-2010 Stephan Aßmus <superstippi@gmx.de>

* Small style cleanups
* Fixed a warning


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36483 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 216073afd7ace10f45df2938a99eeb35a9310e95 11-Apr-2010 Axel Dörfler <axeld@pinc-software.de>

* BTextView::CountLines() counts correctly in Haiku, so the BeOS work-around of
correcting it is no longer necessary. This should fix having the last line
not quoted in Mail when doing partial replies.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36157 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f225592730959db2a3c7832ac484fcc886f72fff 25-Mar-2010 Jonas Sundström <jonas@kirilla.com>

Don't ask Haiku users to insert their BeOS CDs. Fixes #5632.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35949 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 95b368eaf022938f1b193ad6c14ac4fb7f14fabe 21-Mar-2010 Jonas Sundström <jonas@kirilla.com>

TR()-wrapping of View menu text label. Fixes #5577.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35924 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fbc75a5372d8b28d1afabf05e2784718e5ab566a 05-Mar-2010 Jonas Sundström <jonas@kirilla.com>

Partial clean-up

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35767 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4ae492ebc99631929366aba3f2165d293c77a56c 04-Mar-2010 Jonas Sundström <jonas@kirilla.com>

Partial clean-up.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35762 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7197f1a67e57237d0beedaf70713d254c6fa70ab 03-Mar-2010 Jonas Sundström <jonas@kirilla.com>

Partial clean-up.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35751 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d74618871952e28f4550c4381bfdef3d14d6ef3f 09-Jan-2010 Jonas Sundström <jonas@kirilla.com>

Humble beginnings of a code style correction.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34976 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d5430bf75692c5d3d91279c65c8bb79b4c29be8f 09-Jan-2010 Jonas Sundström <jonas@kirilla.com>

Removal of non-Haiku ifdefs. Rephrasing 'BeOS attributes' as 'file attributes'.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34974 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5ef42fcc608129b5db7af74c0010c1e48dba45fa 09-Jan-2010 Jonas Sundström <jonas@kirilla.com>

Sentence-cased GUI strings, adapted from patch by Humdinger in #5169.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34973 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c8767bee6f595855d7c1e7f5e41f451ce21cfa8d 08-Jan-2010 Jonas Sundström <jonas@kirilla.com>

Localization to replace the hardcoded English/Japanese. I will follow up with a Japanese translation based on the previous code. Some of the old solution lingers in parts of the code. A small amount of clean-up and removal BeOS-specifics.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34956 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dab230b2e644a1ddb31270c5118d2014af6af36e 12-Nov-2009 Jonas Sundström <jonas@kirilla.com>

Reverting addition of ellipsis for New Mail Message menu item. It wasn't in line with the intent of the interface guidelines.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34008 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fcbd30cadb8baf1fa641f51b81f866cf6b90d16f 10-Nov-2009 Jonas Sundström <jonas@kirilla.com>

Adding missing ellipsis in menu item, as suggested by Luroh in #4935. Thanks!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33991 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 93e60b1a4f79a65a44ddb5e0dab782e6136e0a38 07-Nov-2009 Axel Dörfler <axeld@pinc-software.de>

* Hide() was called too early, and wasn't reverted in case the mail couldn't
be encoded, either. This fixes bug #4613.
* Ideally, the mail would automatically be changed to an encoding that can
express all characters silently. Added a TODO comment for this.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33936 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 25295d1edecfbff1f06a4fd692f053c5d71dcf09 17-Oct-2009 Axel Dörfler <axeld@pinc-software.de>

* Removed mail & inbox icons. Unless someone really objects; I would consider
them pretty much useless.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33616 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c679d93a10602c37e666be35d1a98fd08218bfe1 12-Oct-2009 Axel Dörfler <axeld@pinc-software.de>

* Correctly evaluate the TMailApp::ShowButtonBar() setting. This fixes bug
#4706.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33571 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7914280cb827ba44ae4a51bc0a2e8659bc849faf 20-Sep-2009 Jonas Sundström <jonas@kirilla.com>

Less hardcoding of paths. Adding shared private OpenWithTracker().

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33207 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f5b22bcfa8cb870675656614ec32b3e556fdd8db 06-May-2009 Clemens Zeidler <clemens.zeidler@googlemail.com>

Hopefully this are all remaining read erros.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30651 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dc8a8389a3cd8c533be97c61b592cc334d8164d8 26-Apr-2009 Clemens Zeidler <clemens.zeidler@googlemail.com>

Add another option to the mail app. When you switch "Automaticly mark mail as readed" off a new Read / Unread button appears and a mail is only marked as readed when you push this button. On default the old behaviour is used.

This is once again a opera feature I like very much and I haven't found in any other email client yet.
E.g. you can start a query on unreaded mails and take a short look at the mails without the mails are disappearing from the query. If you read the mail you press "Readed" and the mail is gone from the query. This is e.g an advantage if you have less time, take a look at a mail and found that the mail is very long but potentially intressting. In this case you just press next or close the window and the mail is still in the unreaded query, ready to be readed at another time. The unreaded flag becomes something like a automatic important flag. You don't have to mark / unmark the mails as important and still don't forget to process any mail. I think this is a different way how most people read mails so I hope you like the patch.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30437 a95241bf-73f2-0310-859d-f6bbb57e9c96


# aeab3755ee80350b09b1f5824e941a8abddd4204 04-Apr-2009 Axel Dörfler <axeld@pinc-software.de>

* Made the button bar no longer draw over the menu bar, and it now uses the
BControlLook to draw its bottom border instead of using a BBox, and have the
parent move it around to make it somehow fit (or not).
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29913 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ae2bf46029eb1c22401d8c4ab7ef9a86d738e03d 22-Feb-2009 Bruno G. Albuquerque <bga@bug-br.org.br>

The Spam DBM may not have the best interface in the world but it is one of the best anti-spam tool I saw so I am adding it to the image (in fact the interface with changes by darkwyrm looks worse than the original one, IMHO).



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29284 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b419343e896b4a7597701c86f7b44f0a3092d061 13-Nov-2008 Stephan Aßmus <superstippi@gmx.de>

Do not set fSent to true in SaveAsDraft() already, since it is correctly set
in Send(), which uses SaveAsDraft(). This fixes #1020. Thanks to kaoutsis and
ksmith for their investigation!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28641 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dd76369ea74db5ae1a6d0440a5e9ea3abe3018b8 15-Aug-2008 Bruno G. Albuquerque <bga@bug-br.org.br>

- Also fix references to the spa, server in Mail.
- Now marking emails as spam through the Mail app also works.

Still need to fix the Match Header filter as it seems not to be working.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26991 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 57ba13c507cf19ef8c1cc97db75a96e7a135dbd5 23-Jun-2008 Axel Dörfler <axeld@pinc-software.de>

* Added shortcut "command-shift-q" that, analogously to "command-shift-w", quits
the app, and keeps the status of all open mails untouched.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26114 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8905dde8200f525ee2da4e1df16d7caee1042801 23-Jun-2008 Axel Dörfler <axeld@pinc-software.de>

* Changed the window cascading to be more useful with more windows.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26113 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8f0dc0c0d8e85b8a9d3af6be8d58ea0fa0d961e4 23-Jun-2008 Axel Dörfler <axeld@pinc-software.de>

The "Show Header" option is no longer persistent, and will only affect the
currently shown mail when checked.
It just didn't make any sense the way it was before, and was inconsistent, too,
as it only affected mails opened after the current one.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26112 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e06c7fe5d89709394d0cfc4697fff78eb6e1f693 08-May-2008 Axel Dörfler <axeld@pinc-software.de>

* Added a quote_context structure that FillInQuoteTextRuns() can now optionally
use to keep track of the current context. This should not only make it faster,
but may also fix the occasionally seen bug of the previous solution.
* Added a simple diff mode coloring as well - only enabled when quote coloring
is enabled.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25364 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c9d15f8cdbe8d04eea74ac738dc6b3bb081a00f8 07-Apr-2008 Stephan Aßmus <superstippi@gmx.de>

Applied patch by Duane R. Bailey:
* Replaced occurances of "..." by B_UTF8_ELLIPSIS in the apps folder.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24851 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dca967073f8422cff0a3ac5c2317fa8c69d1be59 30-Mar-2008 Karsten Heimrich <host.haiku@gmx.de>

* fixed crash in case one tries to print a new composed mail


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24696 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 782c2e9035dba65e8b381c50e236dc651512233b 19-Feb-2008 Jonas Sundström <jonas@kirilla.com>

Some rephrasing of help message.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24022 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 75998ed61084a118264b5abf169a92b7141daf3e 19-Feb-2008 Jonas Sundström <jonas@kirilla.com>

Added an Accounts menu item which opens the E-mail preferences.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24021 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b19e377dab4c99c96b014df01298f31adee11444 17-Feb-2008 Jonas Sundström <jonas@kirilla.com>

0L constant typo? Remove menu item before deleting it.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23977 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a3aa69055faa498c7620edc5bc76200f7d3d5f6b 19-Nov-2007 Stephan Aßmus <superstippi@gmx.de>

* enabled status of "Save As Draft" menu item should now be correctly maintained


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22954 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5913d84eb885a8caf2d63e88abe81748b1b215c6 24-Oct-2007 Stephan Aßmus <superstippi@gmx.de>

patch by "anxiety":
* added a Query menu to the main menu, giving access to some
email queries
I refactored the patch a little and added monitoring the query folder,
so that all open Mail windows should update. However, I might not have
got it to work as intended, at least I got no entries for the query results,
even though the same query did return results when run in Tracker.

This should implement the idea in #1208, and that's also where the patch
was attached.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22702 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 553024440b081e4f981b57454b51025064f95aa1 30-Aug-2007 Stephan Aßmus <superstippi@gmx.de>

This fixes all the issues mentioned in #1207
* improved alignment of controls
* removed last separator from icon bar
* moved separator in sending mode so grouping of trash icon is like in
reading mode
* adjust window size constraints according to icon bar width
* fixed follow modes of menufields when resizing window (even on BeOS,
though a custom menu field is needed to take care of invalidation)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22128 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7ebe0d01cf3a65f5a5e40f64ba26682e071deb7f 30-Aug-2007 Stephan Aßmus <superstippi@gmx.de>

first part of a big cleanup of the Mail code
* separated window, app and context menu code
* got rid of all the global variables (which were accessed completely without
locking, and the code with regards to the preference window sill needs
fixing)
* extracted some defines and helper functions to MailSupport.cpp, though I later
saw Utilities.cpp...
* got rid of the FONT_SIZE define which was used in some (but not all) controls
to override the system font size
* worked in Header.cpp to get the controls layout font sensitive with correct
alignment too, some problems remain when resizing the window


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22122 a95241bf-73f2-0310-859d-f6bbb57e9c96