Dave Hartburn wrote:
Can anyone offer some advice on a maildir and filter problem?

The major issue is that this problem concerns my private e-mail on a
hosted server, rather than anything I administer for work. So, I am
limited to what I can do.

The hosters have recently changed to the courier maildir format, from the
standard unix mbox. I used to use a few suffixes in my e-mail, such as
-junkmail or -work, to seperate mostly unwanted mail from everything else.

Since the helpful change over, the filters still deliver into the mbox
files, but these are unreadable by the imap server, as this looks for the
new style mailboxes.

IF you have shell access (and the rest of what should be obvious needs) you might see if you can login, fire up 'lynx' and point it to the top of your mail storage area.

It can show you the structure, the files, and can then bore-down and directly read any .<confuration> files, as well as full headers and body plain-text of either Maildir or Mbox storage.

Once you have a good picture of what is where, the appropriate selection of remote client, UID:PWD and 'subscribing' may let you read/recover whatever is lacking, and/or alter your filters to fit better with the new environment.

In any case, best to work with, not against, the box admins.

Else move off that box.

HTH,


Bill



As a test, I have set up the following in my .forward file:
if
 $header_to: contains "dave-bob"
then
 save /home/dave/mail/xxxxxxxx/dave/.bob/
 save "/home/dave/mail/xxxxxxxx/dave/dump"
endif

This should deliver two copies of mails to dave-bob, one into the maildir
format folder, .bob, and the other into the mbox file 'dump'. Bob fails,
but 'dump' works and I can not get access to the logs, which would
probably help a lot.

Testing with -bf gives:
 /usr/sbin/exim -bf ~/mail_filters <dump
Sender taken from "From " line
Return-path taken from "Return-path:" header line
Return-path = [EMAIL PROTECTED]
Sender      = [EMAIL PROTECTED]
Recipient   = [EMAIL PROTECTED]
Testing Exim filter file "/home/davidh/mail_filters"

Save message to: /home/davidh/mail/samndave.org.uk/dave/.bob/
Save message to: /home/davidh/mail/samndave.org.uk/dave/dump
Filtering set up at least one significant delivery or other action.
No other deliveries will occur.

The useful bits from the config file are:

local_delivery:
  driver = appendfile
  delivery_date_add
  envelope_to_add
  directory =
"${extract{5}{:}{${lookup{$local_part}lsearch{/etc/passwd}{$value}}}}/mail"
  maildir_format
  group = mail
  mode = 0660
  return_path_add
  user = $local_part

userforward:
#!!# filter renamed allow_filter
  driver = redirect
  allow_filter
  check_ancestor
  check_local_user
  domains = ! lsearch;/etc/userdomains
  no_expn
  file = $home/.forward
  file_transport = address_file
  pipe_transport = address_pipe
  reply_transport = address_reply
  no_verify

Is there anything anyone can suggest, keeping in mind I can not change the
config files? Conversations with the hosting sites support team suggest
they may not be happy if they realised I had been poking around so much!

Thanks

Dave Hartburn




--
## List details at http://www.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to