Re: [Mairix-users] imap url baffle me

2017-12-23 Thread Kim Vandry

On 2017-12-21 21:14, Bob Bernstein wrote:
I have a shell account with a unix isp (lucky me). Problem: my imap 
mail folders are on a different server (but same isp) than the actual 
login shell. That is:


Shell login: mambo.duckman.com
  Imap dirs:   charles.duckman.com

My limited goal at this initial stage is to get a working 'base=' 
statement in my .mairixrc, which of course is on mambo.


I suppose that I ought to start with a line that looks something like 
this:

base=imap://charles.duckman.com/[some folder spec],


Hi Bob,

The IMAP client doesn't use a URL-style specification like imap://stuff.

base= is not used at all for IMAP, only for local folders. (The 
documentation says "common parent directory of all your maildir 
folders". It really should say maildir, mh, and mbox. But not IMAP.) If 
you use only IMAP folders that base= can be set to anything at all, even 
a non-existent directory. I believe it does have to be set to something 
though, just for mairix to work.


The IMAP server is specified with the imap_* parameters. For example 
like this:


imap_server=charles.duckman.com
imap_username=your_username
imap_password=your_password

Yes, in this mode you have to write your password in the clear in the 
configuration file. That's not very good. That's part of why imap_pipe 
exists. You can use imap_pipe if you can arrange a passwordless IMAP 
login proxy, for example by reaching the IMAP server over SSH with 
public key authentication. That's out of scope for this answer though.


After that, you can specify IMAP folders to index with imap=, which is 
analogous to the maildir=, mh=, and mbox= options.


-kv

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users


Re: [Mairix-users] imap login

2017-10-28 Thread Kim Vandry

On 2017-10-04 21:43, Stephen Isard wrote:

Hello,

It is great to be able to index imap folders in mairix.  However, I am 
very uncomfortable with the idea of storing a password in clear text 
in the .mairixrc file.  The imap server that I use lets me connect 
without a password using a kerberos ticket and gssapi from (al)pine 
and heirloom mailx.  Could mairix do the same?  At first glance, it 
doesn't look as if it would be too difficult to incorporate or adapt 
the code from the mailx imap_gssapi.c file. 


Hi Stephen,

It's probably not difficult, but I haven't got an IMAP server with 
Kerberos support or a Kerberos client to test it with, so I would have 
some difficulty implementing it.


I understand the concern about putting a plaintext password into the 
.mairixrc file and I wouldn't do that myself: I use the imap_pipe 
directive to launch the IMAP server as a subprocess (over an SSH 
connection, optionally), in which mode it doesn't ask for a password.


-kv

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users


Re: [Mairix-users] Support of non-ASCII search patterns

2017-09-18 Thread Kim Vandry

Hello Christos,

On 2017-09-14 16:57, Christos Chryssochoidis wrote:

Hello,

Does mairix support searching emails for non-ASCII patterns, e.g. Greek letters?


No, unfortunately. There is a wishlist request open about it: 
https://github.com/rc0/mairix/issues/15


-kv

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users


[Mairix-users] New version of mairix: 0.24

2017-08-13 Thread Kim Vandry
Hello mairix users,

I would to announce version 0.24 of mairix, just released.

This release contains a few new features and bug fixes since the last
one. I am declaring this release as a rollup to include these few years'
worth of changes, but also and mainly because we have recently changed
maintainers for the project.

The original author, Richard P. Curnow, hasn't had a lot of time to
dedicate to the project recently, so I have agreed to take this on for
now instead. I believe I can speak for the community in thanking Richard
very much for writing this very useful piece of software in the first
place and keeping it up to date for a long time.

mairix version 0.24 can be downloaded here:

Release page:
  https://github.com/vandry/mairix/releases/tag/0.24

Source tarball:
  https://github.com/vandry/mairix/releases/download/0.24/mairix-0.24.tar.gz

PGP signature for source tarball:
  
https://github.com/vandry/mairix/releases/download/0.24/mairix-0.24-tar-gz-asc.txt

NEW IN VERSION 0.24
===
* Support fancy Content-Disposition
* RFC5987-compliant headers
* Support for remote IMAP folders
* Fix string overrun bugs in nvp.c
* Option to follow symlinks to mboxes in rc file
* Minor parsing improvements, documentation fixes, and small bug repairs.

-kv


signature.asc
Description: Digital signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users


Re: [Mairix-users] mairix maintenance

2017-08-13 Thread Kim Vandry

On 2017-08-08 08:32, Per Marker Mortensen wrote:

I have been a very happy user of mairix for a number of years now. I
think it would be nice if you volunteer to put some time into keeping
mairix up to date.

I would like to point you towards

http://www.mail-archive.com/mairix-users@lists.sourceforge.net/msg00071.html

I have been very happy with this patch, that implements

"-c   : try file name completion if maildir flags have changed\n"


Hi Per,

I am interested in including your changes. The main change I would make 
before including them is to consider not having a command line flag for 
this, but rather to do it automatically: this renaming thing is a 
property of the Maildir format and there's no reason the user should 
have to add an extra flag just to have their mailbox format supported 
correctly.


That being said, I am going to put this off until the next release, 
because right now I'd like to release the bits and pieces from the past 
several years.


So as not to forget, I've filed an issue:
https://github.com/vandry/mairix/issues/4

-kv

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users


Re: [Mairix-users] mairix maintenance

2017-07-09 Thread Kim Vandry

On 2017-07-04 13:14, Stephane Chazelas wrote:

Hi Kim, you should consider pulling
https://github.com/rc0/mairix/pull/17/commits/3bebacd27ce72702873089101222b670f189e833
as that addresses (what I believe is) a security vulnerability.

That addresses:

https://github.com/rc0/mairix/issues/14
https://github.com/rc0/mairix/issues/7
https://github.com/rc0/mairix/issues/5


Hi Stephane,

Hey, when I said I should take over maintenance of mairix, I didn't mean 
I wanted to do any actual work! No, I'm kidding :)


Thanks for bringing these to my attention. That is indeed a security 
vulnerability.


I implemented my own fix instead of pulling the one you suggest:
https://github.com/vandry/mairix/commit/1305fc13311c09c12c0f71c4a741c1ae5a4d0ebd

-kv

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users


[Mairix-users] mairix maintenance

2017-07-03 Thread Kim Vandry

Richard,

I know that you have moved on to other projects in life since the days 
when you wrote mairix. I've hinted before that I can take over support 
for mairix, such as it is. I just received a pull request on my fork 
which I am reviewing now and I could release that as well as the small 
number of other updates. I see also that there are some pull requests on 
your fork which I could address as well. I wonder if I could trouble you 
for an hour or two on formalities to transfer maintainership over to me? 
For instance, it might be good to install a redirect on the website 
leading to a new home, plus maybe grant me commit access to your copy.


Please let us know if you have the chance.

-kv

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users


Re: [Mairix-users] Mairix 0.22: Out of memory (at rfc822.c:459, -1168 bytes)

2016-12-11 Thread Kim Vandry
On 2016-12-11 09:26 , Eric Wong wrote:
> Edward Burns  wrote:
>> I'll send you a scrubbed version of the file under separate cover.  This
>> file gives the "Out of memory" error every time.  If you could use it to
>> improve Marirx, I'd greatly appreciate it.
> Sorry, short on time/resources here, maybe others on the list
> can handle it.
>
> Would you mind if I hosted it publically for others to download?

+1 to making it available for additional diagnostics. I had a brief look 
at the source code the other day to see if anything stood out, but it 
would be easier if it could be reproduced.

Since I touched the source code last and the original author has no more 
time or motivation to take care of mairix, I was hoping to take over the 
project anyway (still no word from Richard on making this official, 
handing over the web site, etc...). Therefore I am interested in fixing 
this issue.

-kv

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
___
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users


Re: [Mairix-users] Unread Messages

2016-03-12 Thread Kim Vandry
On 2016-03-06 22:19, famfop wrote:
> Hello,
> I've just set up mairix. But still, i could not find anything in regard
> to my following
> problem (I'm using mutt as my mail client).
> Basically after syncing (and [of course] indexing) my mail I want to
> have all 'unread'
> messages to be linked to my mfolder. So far, this is working well. I'm
> doing it by
> running '$(mairix F:-s)'.
> Now the problem:
> When I enter the folder from within mutt and reading messages, I want
> the original
> message to be flagged as 'read' and after exiting the message to have
> the symlink
> deleted.
> How can I solve this problem with mairix? Or, is it possible to solve
> this problem with
> mairix? Right now, the flag of the "real" message is not changed and
> this way, when
> running the above command, the already read message is again an unread
> message.
> Btw, I'm only using maildir.

Hi famfop,

Unfortunately mairix cannot do this for you. Since it runs as a 
completely separate process, it cannot control what Mutt does to the 
messages, and Mutt has no concept of its own of messages that exist in 
multiple folders at the same time anyway.

You could write a script that you run after exiting Mutt that updates 
all of the matched messages to become read in the original folder by 
reading the symlinks and renaming files.

Normally I would suggest something like the virtual folders supported by 
Dovecot for this type of feature.

http://wiki2.dovecot.org/Plugins/Virtual

With that feature, you can configure a virtual folder that contains only 
the unread messages from another folder. When messages flags get changed 
in the virtual folder, they also get instantly changed in the underlying 
folder, and vice versa. It's fully dynamic. (In fact, for this specific 
use case it's a little *too* dynamic and probably won't work: as soon as 
you read a message in the virtual folder its status will change from 
unread to read and consequently it will instantly disappear, giving you 
no chance to actually read it. However, if you do this based on some 
other flag, such as the message's Flagged or "starred" status, it will 
work great.)

-kv

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
___
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users


Re: [Mairix-users] one index for two IMAP servers?

2016-01-22 Thread Kim Vandry
On 2015-12-29 02:12, Janusz S. Bień wrote:
> It would be convenient for me to use single search (in Gnus) for the
> mail from two servers. Should it be possible?

Janusz,

Sorry for the delay in responding.

No, I never considered the case of multiple IMAP servers in the same 
mairix configuration and I don't support it.

Actually it would be fairly difficult to support. mairix uses only one 
folder for the search results, and, when using IMAP, matching messages 
are copied server-side from the various source folders to the results 
folder (no message contents are downloaded from the IMAP server during 
matching, only during indexing). If there were multiple IMAP servers 
then one could not copy messages server-side across different servers.

> When I tried to specify both servers in the configuration file
>
> imap=Inbox
> imap_server=[server 1]
> ...
>
> imap=Inbox
> imap_server=[server 2]
> ...
>
>
> I've got the message
>
> Finding all currently existing messages...
> Message list contains duplicates - check your 'folders' setting
>

I think it's examining the same folders twice on the same server rather 
than examining both servers as you had intended to do. I'm sorry, your 
use case is not going to work.

-kv

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
___
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users


Re: [Mairix-users] IMAP support in mairix

2015-12-17 Thread Kim Vandry
Hi Janusz,

On 2015-12-17 23:20, Janusz S. Bien wrote:
> I have now another problem:

We're making progress!

> STARTTLS: server name "zjb.waw.pl" != certificate common name "*.home.pl"

That seems like a legitimate error. It's the same error you get if you 
connect to a secure web site using your web browser and the security 
certificate does not match the host name. In this case, your have a 
wildcard certificate that is valid for any server name ending in 
"home.pl" but your IMAP server's name is in a different domain.

Does your IMAP server have an alternative host name (alias) that is 
.home.pl? If yes, you should be able to connect to it with 
that host name and the certificate name will match and the connection 
will proceed.

-kv

--
___
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users


Re: [Mairix-users] IMAP support in mairix

2015-12-17 Thread Kim Vandry
On 2015-12-17 14:25, Janusz S. Bien wrote:
> I get only
>
> * OK domains020.home.pl IdeaImapServer v0.80 ready

Thank you, Janusz, that's what I needed to know.

Your IMAP server does not send its capability list in the initial 
greeting. Clients have to ask for it specifically (as you demonstrated 
in your next email). There's nothing wrong with your server: the IMAP 
RFC does not require servers to send the capability list in the initial 
greeting. Unfortunately my code assumed that the server does do it, so 
it doesn't work.

I have modified the code so that it supports this kind of server.

https://github.com/vandry/mairix/commit/15777bd1fdcaf92c2c7c376c253fe26cc5f788fb

-kv

--
___
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users


Re: [Mairix-users] IMAP support in mairix

2015-12-16 Thread Kim Vandry
On 2015-12-17 04:08, Janusz S. Bień wrote:
> On Fri, Sep 05 2014 at 21:12 CEST, van...@tzone.org writes:
>> On 2014-09-05 10:50, Kim Vandry wrote:
>> My changes for the IMAP feature can be found here:
>>
>> https://github.com/vandry/mairix
>
> I've used it without problems for months, but recently I've bought my
> own domain and got my own IMAP server. The mail works OK on my Android
> smartfon but running mairix results in the fatal error:
>
> IMAP client cannot find capabilities list
>
> I would appreciate very much your suggestions how to diagnose and solve
> the problem.

Hello Janusz,

Finding the capability list from the IMAP server's greeting is one of 
the first things the IMAP client does after connecting. There may be a 
problem with the connection to the IMAP server or with the greeting it 
sends. Try connecting to your IMAP server manually from the command line 
to see what the greeting looks like. Use, for example, "telnet 
 143" or "nc  143". The greeting 
should include a cpability list. Here's my server's greeting for comparison:

* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE 
IDLE STARTTLS LOGINDISABLED] Dovecot ready.

If the capabilities list includes "STARTTLS" then you can also test 
encrypted connections to the IMAP server because that's what the mairix 
IMAP client will do. Use this command:

openssl s_client -CApath /etc/ssl/certs -host  -port 
143 -starttls imap

Look for something like this in the last few lines of the output, 
especially the "ok" verify return code:

 Verify return code: 0 (ok)
---
. OK Pre-login capabilities listed, post-login capabilities have more.

-kv

--
___
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users


Re: [Mairix-users] Is mairix still a "going concern"

2015-07-13 Thread Kim Vandry
On 2015-07-11 20:27, Richard Curnow wrote:
> On 9 July 2015 at 05:31, Kim Vandry  wrote:
>
>>
>> The comments were generally when I announced these changes on this
>> mailing list 10 months ago, but I would still like to hear from the
>> original author about whether my changes could be merged upstream.
>> Richard Curnow has not been seen here for a very long time, ...
>
> I'm still very much around!  However, mairix is a very long way down
> the list of things competing for my attention nowadays.
>
> Realistically, I'm not going to be doing anything with mairix for the
> foreseeable future so it can be considered as orphaned.  If anyone
> wants to take it over, feel free.  The last sources I bothered with
> are on github and the website has been defunct for several years.

Hi Richard,

Thank you for the update, and for your past efforts on this software.

I think I would be willing to take it over. As the traffic on this 
mailing list shows, there would be little to do. I would resurrect the 
web site (most likely, just make Github the project home), merge my 
changes, ask anyone else if they have issues I could look into, release 
a new version, and ask Debian to upgrade to the new version. That would 
be enough for what I would personally want.

-kv

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users


Re: [Mairix-users] Is mairix still a "going concern"

2015-07-08 Thread Kim Vandry
On 2015-07-04 04:54, Peter Jeremy wrote:
> I occasionally run into issues where mairix mis-parses mail - but they
> are mostly spams that I haven't deleted.  Otherwise, I am basically
> happy with mairix.  I see it as mature software that doesn't need
> regular maintenance.

Hi Peter,

I did make a couple of small fixes in mairix' mail parsing function 
during the course of writing the IMAP support almost a year ago. See here:

https://github.com/vandry/mairix/commit/5d4a21590de6961e03dc48718fe220d175ae70db

and here:

https://github.com/vandry/mairix/commit/5f8f33980fa4f0865e841b777e86aba9063c78cd

I don't know if those changes would help with the parding of your 
"mostly spam".

The comments were generally when I announced these changes on this 
mailing list 10 months ago, but I would still like to hear from the 
original author about whether my changes could be merged upstream.
Richard Curnow has not been seen here for a very long time, but he did 
tweet a few days ago:

https://twitter.com/rc0rc0/status/618144013770731521

-kv

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users


Re: [Mairix-users] IMAP support in mairix

2014-09-05 Thread Kim Vandry
On 2014-09-05 10:50, Kim Vandry wrote:
> I have added an IMAP client to mairix so that it supports indexing and
> searching messages found on an IMAP server and placing search results in
> a folder on the same IMAP server. Both features are optional, so that
> you can also index remote messages and store the results locally, or
> index local folders and store the results on IMAP.

My changes for the IMAP feature can be found here:

https://github.com/vandry/mairix

Here are some brief instructions on how to use it.

Previously you had three ways of specifying the source folders in the 
mairixrc file:

maildir=folder1:folder2
mh=folder1:folder2
mbox=folder1:folder2

Now you have a fourth option:

imap=folder1:folder2

That's for source folders. If you want to place the search results in an 
IMAP folder too (recommended), you can do it like this:

mformat=imap

Of course you need to tell mairix how to connect to the IMAP server:

imap_server=mail.example.com

And the IMAP server probably needs for you to log in too, so this:

imap_username=myusername
imap_password=mypassword

If you have shell access to the same system that runs your IMAP server, 
you may be able to connect directly to the IMAP server without using a 
TCP/IP connection and it will know who you are so you don't have to give 
it a username and password. In that case, you can use the following 
option instead of imap_server, imap_username, and imap_password:

imap_pipe=/usr/lib/dovecot/imap


If you want to switch all your source folders from non-IMAP to IMAP (or 
vice versa), you might want to consider deleting mairix's database file 
and starting over from scratch because mairix will have to reindex all 
of your mail anyway.

I have tested all of this with my own email and it seems to work so far. 
Please let me know if you try it out and encounter any problems.

Happy weekend,

-kv

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users


[Mairix-users] IMAP support in mairix

2014-09-05 Thread Kim Vandry
Hello mairix users,

I have been using mairix as the primary tool for searching my mailbox 
for many years and I have been very happy with it.

Following a Dovecot upgrade on the server where my mail is located, my 
whole mailbox will soon be in Dovecot's proprietary dbox format, which 
of course mairix does not support (my mailbox is presently in maildir 
format). I would hate to give up mairix so...

I have added an IMAP client to mairix so that it supports indexing and 
searching messages found on an IMAP server and placing search results in 
a folder on the same IMAP server. Both features are optional, so that 
you can also index remote messages and store the results locally, or 
index local folders and store the results on IMAP.

My changes are made up of about 8 patches.

I would like to know if you would be interested in accepting this 
feature upstream. Please let me know.

Thanks

-kv

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Mairix-users mailing list
Mairix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mairix-users